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
9dd0ce0b
Commit
9dd0ce0b
authored
Mar 18, 2021
by
Furkan Ayhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the FF skip_dag_manual_and_delayed_jobs
It has been enabled for a milestone
parent
b005bd81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
56 deletions
+5
-56
app/services/ci/process_build_service.rb
app/services/ci/process_build_service.rb
+0
-25
changelogs/unreleased/297240-remove-skip_dag_manual_and_delayed_jobs.yml
...leased/297240-remove-skip_dag_manual_and_delayed_jobs.yml
+5
-0
config/feature_flags/development/skip_dag_manual_and_delayed_jobs.yml
...re_flags/development/skip_dag_manual_and_delayed_jobs.yml
+0
-8
spec/services/ci/process_build_service_spec.rb
spec/services/ci/process_build_service_spec.rb
+0
-23
No files found.
app/services/ci/process_build_service.rb
View file @
9dd0ce0b
...
...
@@ -26,14 +26,6 @@ module Ci
end
def
valid_statuses_for_build
(
build
)
if
::
Feature
.
enabled?
(
:skip_dag_manual_and_delayed_jobs
,
build
.
project
,
default_enabled: :yaml
)
current_valid_statuses_for_build
(
build
)
else
legacy_valid_statuses_for_build
(
build
)
end
end
def
current_valid_statuses_for_build
(
build
)
case
build
.
when
when
'on_success'
,
'manual'
,
'delayed'
build
.
scheduling_type_dag?
?
%w[success]
:
%w[success skipped]
...
...
@@ -45,23 +37,6 @@ module Ci
[]
end
end
def
legacy_valid_statuses_for_build
(
build
)
case
build
.
when
when
'on_success'
build
.
scheduling_type_dag?
?
%w[success]
:
%w[success skipped]
when
'on_failure'
%w[failed]
when
'always'
%w[success failed skipped]
when
'manual'
%w[success skipped]
when
'delayed'
%w[success skipped]
else
[]
end
end
end
end
...
...
changelogs/unreleased/297240-remove-skip_dag_manual_and_delayed_jobs.yml
0 → 100644
View file @
9dd0ce0b
---
title
:
Remove the FF skip_dag_manual_and_delayed_jobs
merge_request
:
57086
author
:
type
:
other
config/feature_flags/development/skip_dag_manual_and_delayed_jobs.yml
deleted
100644 → 0
View file @
b005bd81
---
name
:
skip_dag_manual_and_delayed_jobs
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50765
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/297240
milestone
:
'
13.8'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
true
spec/services/ci/process_build_service_spec.rb
View file @
9dd0ce0b
...
...
@@ -145,28 +145,5 @@ RSpec.describe Ci::ProcessBuildService, '#execute' do
expect
{
subject
}.
to
change
{
build
.
status
}.
to
(
after_status
)
end
end
context
'when FF skip_dag_manual_and_delayed_jobs is disabled on the project'
do
let_it_be
(
:other_project
)
{
create
(
:project
)
}
before
do
stub_feature_flags
(
skip_dag_manual_and_delayed_jobs:
other_project
)
end
where
(
:build_when
,
:current_status
,
:after_status
)
do
:on_success
|
'success'
|
'pending'
:on_success
|
'skipped'
|
'skipped'
:manual
|
'success'
|
'manual'
:manual
|
'skipped'
|
'manual'
:delayed
|
'success'
|
'manual'
:delayed
|
'skipped'
|
'manual'
end
with_them
do
it
'proceeds the build'
do
expect
{
subject
}.
to
change
{
build
.
status
}.
to
(
after_status
)
end
end
end
end
end
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