Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
929f7f49
Commit
929f7f49
authored
Mar 26, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
6580e40e
849eb7c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
13 deletions
+23
-13
app/services/ci/destroy_pipeline_service.rb
app/services/ci/destroy_pipeline_service.rb
+2
-0
changelogs/unreleased/sh-clear-pipeline-status-cache-upon-destroy.yml
...nreleased/sh-clear-pipeline-status-cache-upon-destroy.yml
+5
-0
qa/Rakefile
qa/Rakefile
+3
-3
qa/load/artillery.yml
qa/load/artillery.yml
+10
-7
qa/qa/tools/generate_perf_testdata.rb
qa/qa/tools/generate_perf_testdata.rb
+1
-1
spec/services/ci/destroy_pipeline_service_spec.rb
spec/services/ci/destroy_pipeline_service_spec.rb
+2
-2
No files found.
app/services/ci/destroy_pipeline_service.rb
View file @
929f7f49
...
@@ -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
changelogs/unreleased/sh-clear-pipeline-status-cache-upon-destroy.yml
0 → 100644
View file @
929f7f49
---
title
:
Clear pipeline status cache after destruction of pipeline
merge_request
:
26575
author
:
type
:
fixed
qa/Rakefile
View file @
929f7f49
...
@@ -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'
)
...
...
qa/load/artillery.yml
View file @
929f7f49
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
:
6
0
-
duration
:
3
0
arrivalRate
:
1
arrivalRate
:
1
0
name
:
"
Warm
up"
name
:
"
Warm
up"
-
duration
:
12
0
-
duration
:
9
0
arrivalRate
:
1
arrivalRate
:
1
0
rampTo
:
5
0
rampTo
:
10
0
name
:
"
Gradual
ramp
up"
name
:
"
Gradual
ramp
up"
-
duration
:
6
0
-
duration
:
9
0
arrivalRate
:
5
0
arrivalRate
:
10
0
name
:
"
Sustained
max
load"
name
:
"
Sustained
max
load"
scenarios
:
scenarios
:
-
name
:
"
Visit
large
issue
url"
-
name
:
"
Visit
large
issue
url"
...
...
qa/qa/tools/generate_perf_testdata.rb
View file @
929f7f49
...
@@ -46,7 +46,7 @@ module QA
...
@@ -46,7 +46,7 @@ module QA
threads_arr
.
each
(
&
:join
)
threads_arr
.
each
(
&
:join
)
STDOUT
.
puts
"
\n
URLs:
#{
@urls
}
"
STDOUT
.
puts
"
\n
URLs:
#{
@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
"
\n
Done"
STDOUT
.
puts
"
\n
Done"
end
end
...
...
spec/services/ci/destroy_pipeline_service_spec.rb
View file @
929f7f49
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment