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
7efd2afd
Commit
7efd2afd
authored
Oct 12, 2021
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary CI tempalte latest redirect feature flags
parent
f109dc13
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
8 additions
and
64 deletions
+8
-64
config/feature_flags/development/redirect_to_latest_template_jobs_browser_performance_testing.yml
...t_to_latest_template_jobs_browser_performance_testing.yml
+0
-8
config/feature_flags/development/redirect_to_latest_template_security_api_fuzzing.yml
...ment/redirect_to_latest_template_security_api_fuzzing.yml
+0
-8
config/feature_flags/development/redirect_to_latest_template_security_dast.yml
...development/redirect_to_latest_template_security_dast.yml
+0
-8
config/feature_flags/development/redirect_to_latest_template_terraform.yml
...ags/development/redirect_to_latest_template_terraform.yml
+0
-8
config/feature_flags/development/redirect_to_latest_template_verify_browser_performance.yml
...edirect_to_latest_template_verify_browser_performance.yml
+0
-8
doc/development/cicd/templates.md
doc/development/cicd/templates.md
+6
-0
ee/lib/ee/gitlab/template/gitlab_ci_yml_template.rb
ee/lib/ee/gitlab/template/gitlab_ci_yml_template.rb
+1
-3
ee/spec/lib/ee/gitlab/ci/templates/templates_spec.rb
ee/spec/lib/ee/gitlab/ci/templates/templates_spec.rb
+0
-8
ee/spec/lib/gitlab/ci/templates/Verify/browser_performance_testing_gitlab_ci_yaml_spec.rb
...Verify/browser_performance_testing_gitlab_ci_yaml_spec.rb
+0
-1
lib/gitlab/template/gitlab_ci_yml_template.rb
lib/gitlab/template/gitlab_ci_yml_template.rb
+1
-5
spec/lib/gitlab/ci/templates/templates_spec.rb
spec/lib/gitlab/ci/templates/templates_spec.rb
+0
-7
No files found.
config/feature_flags/development/redirect_to_latest_template_jobs_browser_performance_testing.yml
deleted
100644 → 0
View file @
f109dc13
---
name
:
redirect_to_latest_template_jobs_browser_performance_testing
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63144
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
config/feature_flags/development/redirect_to_latest_template_security_api_fuzzing.yml
deleted
100644 → 0
View file @
f109dc13
---
name
:
redirect_to_latest_template_security_api_fuzzing
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63144
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
config/feature_flags/development/redirect_to_latest_template_security_dast.yml
deleted
100644 → 0
View file @
f109dc13
---
name
:
redirect_to_latest_template_security_dast
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63144
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
config/feature_flags/development/redirect_to_latest_template_terraform.yml
deleted
100644 → 0
View file @
f109dc13
---
name
:
redirect_to_latest_template_terraform
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63144
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
config/feature_flags/development/redirect_to_latest_template_verify_browser_performance.yml
deleted
100644 → 0
View file @
f109dc13
---
name
:
redirect_to_latest_template_verify_browser_performance
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63144
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
doc/development/cicd/templates.md
View file @
7efd2afd
...
...
@@ -325,8 +325,14 @@ projects on `gitlab.com`:
After you're confident the latest template can be moved to stable:
1.
Update the stable template with the content of the latest version.
1.
Remove the migration template from
`Gitlab::Template::GitlabCiYmlTemplate::TEMPLATES_WITH_LATEST_VERSION`
const.
1.
Remove the corresponding feature flag.
NOTE:
Feature flags are enabled by default in RSpec, so all tests are performed
against the latest templates. You should also test the stable templates
with
`stub_feature_flags(redirect_to_latest_template_<name>: false)`
.
### Further reading
There is an
[
open issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/17716
)
about
...
...
ee/lib/ee/gitlab/template/gitlab_ci_yml_template.rb
View file @
7efd2afd
...
...
@@ -6,9 +6,7 @@ module EE
module
GitlabCiYmlTemplate
extend
ActiveSupport
::
Concern
EE_TEMPLATES_WITH_LATEST_VERSION
=
{
'Verify/Browser-Performance'
=>
true
}.
freeze
EE_TEMPLATES_WITH_LATEST_VERSION
=
{}.
freeze
class_methods
do
extend
::
Gitlab
::
Utils
::
Override
...
...
ee/spec/lib/ee/gitlab/ci/templates/templates_spec.rb
View file @
7efd2afd
...
...
@@ -8,14 +8,6 @@ RSpec.describe "CI YML Templates" do
let
(
:all_templates
)
{
Gitlab
::
Template
::
GitlabCiYmlTemplate
.
all
.
map
(
&
:full_name
)
}
before
do
stub_feature_flags
(
redirect_to_latest_template_terraform:
false
,
redirect_to_latest_template_security_dast:
false
,
redirect_to_latest_template_security_api_fuzzing:
false
,
redirect_to_latest_template_jobs_browser_performance_testing:
false
)
end
shared_examples
'require default stages to be included'
do
it
'require default stages to be included'
do
expect
(
subject
.
stages
).
to
include
(
*
Gitlab
::
Ci
::
Config
::
Entry
::
Stages
.
default
)
...
...
ee/spec/lib/gitlab/ci/templates/Verify/browser_performance_testing_gitlab_ci_yaml_spec.rb
View file @
7efd2afd
...
...
@@ -30,7 +30,6 @@ RSpec.describe 'Verify/Browser-Performance.gitlab-ci.yml' do
before
do
stub_ci_pipeline_yaml_file
(
template
)
stub_feature_flags
(
redirect_to_latest_template_verify_browser_performance:
false
)
allow_next_instance_of
(
Ci
::
BuildScheduleWorker
)
do
|
worker
|
allow
(
worker
).
to
receive
(
:perform
).
and_return
(
true
)
end
...
...
lib/gitlab/template/gitlab_ci_yml_template.rb
View file @
7efd2afd
...
...
@@ -6,11 +6,7 @@ module Gitlab
BASE_EXCLUDED_PATTERNS
=
[
%r{
\.
latest
\.
}
].
freeze
TEMPLATES_WITH_LATEST_VERSION
=
{
'Jobs/Browser-Performance-Testing'
=>
true
,
'Jobs/Build'
=>
true
,
'Security/API-Fuzzing'
=>
true
,
'Security/DAST'
=>
true
,
'Terraform'
=>
true
'Jobs/Build'
=>
true
}.
freeze
def
description
...
...
spec/lib/gitlab/ci/templates/templates_spec.rb
View file @
7efd2afd
...
...
@@ -13,13 +13,6 @@ RSpec.describe 'CI YML Templates' do
excluded
+
[
"Terraform.gitlab-ci.yml"
]
end
before
do
stub_feature_flags
(
redirect_to_latest_template_terraform:
false
,
redirect_to_latest_template_security_api_fuzzing:
false
,
redirect_to_latest_template_security_dast:
false
)
end
shared_examples
'require default stages to be included'
do
it
'require default stages to be included'
do
expect
(
subject
.
stages
).
to
include
(
*
Gitlab
::
Ci
::
Config
::
Entry
::
Stages
.
default
)
...
...
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