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
fed8e557
Commit
fed8e557
authored
Sep 03, 2021
by
Furkan Ayhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the FF ci_fix_commit_status_retried
It is enabled by default since 14.0 Changelog: other
parent
25697fb4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
65 deletions
+7
-65
app/services/ci/pipelines/add_job_service.rb
app/services/ci/pipelines/add_job_service.rb
+2
-2
config/feature_flags/development/ci_fix_commit_status_retried.yml
...eature_flags/development/ci_fix_commit_status_retried.yml
+0
-8
spec/requests/api/commit_statuses_spec.rb
spec/requests/api/commit_statuses_spec.rb
+5
-31
spec/services/ci/pipelines/add_job_service_spec.rb
spec/services/ci/pipelines/add_job_service_spec.rb
+0
-12
spec/services/projects/update_pages_service_spec.rb
spec/services/projects/update_pages_service_spec.rb
+0
-12
No files found.
app/services/ci/pipelines/add_job_service.rb
View file @
fed8e557
...
...
@@ -21,14 +21,14 @@ module Ci
Ci
::
Pipeline
.
transaction
do
yield
(
job
)
job
.
update_older_statuses_retried!
if
Feature
.
enabled?
(
:ci_fix_commit_status_retried
,
pipeline
.
project
,
default_enabled: :yaml
)
job
.
update_older_statuses_retried!
end
end
else
Ci
::
Pipeline
.
transaction
do
yield
(
job
)
job
.
update_older_statuses_retried!
if
Feature
.
enabled?
(
:ci_fix_commit_status_retried
,
pipeline
.
project
,
default_enabled: :yaml
)
job
.
update_older_statuses_retried!
end
end
...
...
config/feature_flags/development/ci_fix_commit_status_retried.yml
deleted
100644 → 0
View file @
25697fb4
---
name
:
ci_fix_commit_status_retried
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54300
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/321631
milestone
:
'
13.9'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
true
spec/requests/api/commit_statuses_spec.rb
View file @
fed8e557
...
...
@@ -345,38 +345,12 @@ RSpec.describe API::CommitStatuses do
expect
(
json_response
[
'status'
]).
to
eq
(
'success'
)
end
context
'feature flags'
do
using
RSpec
::
Parameterized
::
TableSyntax
where
(
:ci_fix_commit_status_retried
,
:ci_remove_update_retried_from_process_pipeline
,
:previous_statuses_retried
)
do
true
|
true
|
true
true
|
false
|
true
false
|
true
|
false
false
|
false
|
true
end
with_them
do
before
do
stub_feature_flags
(
ci_fix_commit_status_retried:
ci_fix_commit_status_retried
,
ci_remove_update_retried_from_process_pipeline:
ci_remove_update_retried_from_process_pipeline
)
end
it
'retries a commit status'
,
:sidekiq_might_not_need_inline
do
post_request
expect
(
CommitStatus
.
count
).
to
eq
2
it
'retries the commit status'
,
:sidekiq_might_not_need_inline
do
post_request
if
previous_statuses_retried
expect
(
CommitStatus
.
first
).
to
be_retried
expect
(
CommitStatus
.
last
.
pipeline
).
to
be_success
else
expect
(
CommitStatus
.
first
).
not_to
be_retried
expect
(
CommitStatus
.
last
.
pipeline
).
to
be_failed
end
end
end
expect
(
CommitStatus
.
count
).
to
eq
2
expect
(
CommitStatus
.
first
).
to
be_retried
expect
(
CommitStatus
.
last
.
pipeline
).
to
be_success
end
end
...
...
spec/services/ci/pipelines/add_job_service_spec.rb
View file @
fed8e557
...
...
@@ -59,18 +59,6 @@ RSpec.describe Ci::Pipelines::AddJobService do
end
end
context
'when the FF ci_fix_commit_status_retried is disabled'
do
before
do
stub_feature_flags
(
ci_fix_commit_status_retried:
false
)
end
it
'does not call update_older_statuses_retried!'
do
expect
(
job
).
not_to
receive
(
:update_older_statuses_retried!
)
execute
end
end
context
'exclusive lock'
do
let
(
:lock_uuid
)
{
'test'
}
let
(
:lock_key
)
{
"ci:pipelines:
#{
pipeline
.
id
}
:add-job"
}
...
...
spec/services/projects/update_pages_service_spec.rb
View file @
fed8e557
...
...
@@ -435,18 +435,6 @@ RSpec.describe Projects::UpdatePagesService do
expect
(
older_deploy_job
.
reload
).
to
be_retried
end
context
'when FF ci_fix_commit_status_retried is disabled'
do
before
do
stub_feature_flags
(
ci_fix_commit_status_retried:
false
)
end
it
'does not mark older pages:deploy jobs retried'
do
expect
(
execute
).
to
eq
(
:success
)
expect
(
older_deploy_job
.
reload
).
not_to
be_retried
end
end
end
private
...
...
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