Commit 929f7f49 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 6580e40e 849eb7c6
...@@ -6,6 +6,8 @@ module Ci ...@@ -6,6 +6,8 @@ module Ci
raise Gitlab::Access::AccessDeniedError unless can?(current_user, :destroy_pipeline, pipeline) raise Gitlab::Access::AccessDeniedError unless can?(current_user, :destroy_pipeline, pipeline)
pipeline.destroy! pipeline.destroy!
Gitlab::Cache::Ci::ProjectPipelineStatus.new(pipeline.project).delete_from_cache
end end
end end
end end
---
title: Clear pipeline status cache after destruction of pipeline
merge_request: 26575
author:
type: fixed
...@@ -27,9 +27,9 @@ task :run_artillery_load_tests do ...@@ -27,9 +27,9 @@ task :run_artillery_load_tests do
end end
urls = YAML.safe_load(File.read(urls_file)) urls = YAML.safe_load(File.read(urls_file))
ENV['HOST_URL'] = urls[:host] ENV['HOST_URL'] = urls["host"]
ENV['LARGE_ISSUE_URL'] = urls[:large_issue] ENV['LARGE_ISSUE_URL'] = urls["large_issue"]
ENV['LARGE_MR_URL'] = urls[:large_mr] ENV['LARGE_MR_URL'] = urls["large_mr"]
end end
sh('artillery run load/artillery.yml -o report.json') sh('artillery run load/artillery.yml -o report.json')
......
config: config:
target: "{{ $processEnvironment.HOST_URL }}" target: "{{ $processEnvironment.HOST_URL }}"
http:
pool: 10 # All HTTP requests from all virtual users will be sent over the same <pool> connections.
# This also means that there is a limit on the number of requests sent per second.
phases: phases:
- duration: 60 - duration: 30
arrivalRate: 1 arrivalRate: 10
name: "Warm up" name: "Warm up"
- duration: 120 - duration: 90
arrivalRate: 1 arrivalRate: 10
rampTo: 50 rampTo: 100
name: "Gradual ramp up" name: "Gradual ramp up"
- duration: 60 - duration: 90
arrivalRate: 50 arrivalRate: 100
name: "Sustained max load" name: "Sustained max load"
scenarios: scenarios:
- name: "Visit large issue url" - name: "Visit large issue url"
......
...@@ -46,7 +46,7 @@ module QA ...@@ -46,7 +46,7 @@ module QA
threads_arr.each(&:join) threads_arr.each(&:join)
STDOUT.puts "\nURLs: #{@urls}" STDOUT.puts "\nURLs: #{@urls}"
File.open("urls.yml", "w") { |file| file.puts @urls.to_yaml } File.open("urls.yml", "w") { |file| file.puts @urls.stringify_keys.to_yaml }
STDOUT.puts "\nDone" STDOUT.puts "\nDone"
end end
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
require 'spec_helper' require 'spec_helper'
describe ::Ci::DestroyPipelineService do describe ::Ci::DestroyPipelineService do
let(:project) { create(:project) } let(:project) { create(:project, :repository) }
let!(:pipeline) { create(:ci_pipeline, project: project) } let!(:pipeline) { create(:ci_pipeline, :success, project: project, sha: project.commit.id) }
subject { described_class.new(project, user).execute(pipeline) } subject { described_class.new(project, user).execute(pipeline) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment