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
deda7b39
Commit
deda7b39
authored
Jul 13, 2020
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lm-follow-up' into 'master'
Removes FF and condition See merge request gitlab-org/gitlab!36140
parents
3ecbbe3a
25056327
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
32 deletions
+5
-32
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+0
-2
app/services/ci/retry_build_service.rb
app/services/ci/retry_build_service.rb
+0
-4
changelogs/unreleased/lm-follow-up.yml
changelogs/unreleased/lm-follow-up.yml
+5
-0
lib/gitlab/ci/features.rb
lib/gitlab/ci/features.rb
+0
-4
spec/services/ci/retry_build_service_spec.rb
spec/services/ci/retry_build_service_spec.rb
+0
-22
No files found.
app/models/ci/pipeline.rb
View file @
deda7b39
...
@@ -1008,8 +1008,6 @@ module Ci
...
@@ -1008,8 +1008,6 @@ module Ci
# Set scheduling type of processables if they were created before scheduling_type
# Set scheduling type of processables if they were created before scheduling_type
# data was deployed (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/22246).
# data was deployed (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/22246).
def
ensure_scheduling_type!
def
ensure_scheduling_type!
return
unless
::
Gitlab
::
Ci
::
Features
.
ensure_scheduling_type_enabled?
processables
.
populate_scheduling_type!
processables
.
populate_scheduling_type!
end
end
...
...
app/services/ci/retry_build_service.rb
View file @
deda7b39
...
@@ -34,10 +34,6 @@ module Ci
...
@@ -34,10 +34,6 @@ module Ci
attributes
[
:user
]
=
current_user
attributes
[
:user
]
=
current_user
# TODO: we can probably remove this logic
# see: https://gitlab.com/gitlab-org/gitlab/-/issues/217930
attributes
[
:scheduling_type
]
||=
build
.
find_legacy_scheduling_type
Ci
::
Build
.
transaction
do
Ci
::
Build
.
transaction
do
# mark all other builds of that name as retried
# mark all other builds of that name as retried
build
.
pipeline
.
builds
.
latest
build
.
pipeline
.
builds
.
latest
...
...
changelogs/unreleased/lm-follow-up.yml
0 → 100644
View file @
deda7b39
---
title
:
Removes ci_ensure_scheduling_type feature flag
merge_request
:
36140
author
:
type
:
other
lib/gitlab/ci/features.rb
View file @
deda7b39
...
@@ -10,10 +10,6 @@ module Gitlab
...
@@ -10,10 +10,6 @@ module Gitlab
::
Feature
.
enabled?
(
:ci_artifacts_exclude
,
default_enabled:
true
)
::
Feature
.
enabled?
(
:ci_artifacts_exclude
,
default_enabled:
true
)
end
end
def
self
.
ensure_scheduling_type_enabled?
::
Feature
.
enabled?
(
:ci_ensure_scheduling_type
,
default_enabled:
true
)
end
def
self
.
job_heartbeats_runner?
(
project
)
def
self
.
job_heartbeats_runner?
(
project
)
::
Feature
.
enabled?
(
:ci_job_heartbeats_runner
,
project
,
default_enabled:
true
)
::
Feature
.
enabled?
(
:ci_job_heartbeats_runner
,
project
,
default_enabled:
true
)
end
end
...
...
spec/services/ci/retry_build_service_spec.rb
View file @
deda7b39
...
@@ -278,28 +278,6 @@ RSpec.describe Ci::RetryBuildService do
...
@@ -278,28 +278,6 @@ RSpec.describe Ci::RetryBuildService do
expect
(
new_build
.
metadata
.
expanded_environment_name
).
to
eq
(
'production'
)
expect
(
new_build
.
metadata
.
expanded_environment_name
).
to
eq
(
'production'
)
end
end
end
end
context
'when scheduling_type of build is nil'
do
before
do
build
.
update_columns
(
scheduling_type:
nil
)
end
context
'when build has not needs'
do
it
'sets scheduling_type as :stage'
do
expect
(
new_build
.
scheduling_type
).
to
eq
(
'stage'
)
end
end
context
'when build has needs'
do
before
do
create
(
:ci_build_need
,
build:
build
)
end
it
'sets scheduling_type as :dag'
do
expect
(
new_build
.
scheduling_type
).
to
eq
(
'dag'
)
end
end
end
end
end
context
'when user does not have ability to execute build'
do
context
'when user does not have ability to execute build'
do
...
...
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