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
4cf9beb4
Commit
4cf9beb4
authored
Aug 03, 2021
by
Furkan Ayhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the FF ci_wildcard_file_paths
It was enabled by default in 13.12 Changelog: other
parent
6256547a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
52 deletions
+2
-52
config/feature_flags/development/ci_wildcard_file_paths.yml
config/feature_flags/development/ci_wildcard_file_paths.yml
+0
-8
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+1
-26
lib/gitlab/ci/config/external/mapper.rb
lib/gitlab/ci/config/external/mapper.rb
+0
-2
qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb
...ine/include_local_config_file_paths_with_wildcard_spec.rb
+1
-5
spec/lib/gitlab/ci/config/external/mapper_spec.rb
spec/lib/gitlab/ci/config/external/mapper_spec.rb
+0
-11
No files found.
config/feature_flags/development/ci_wildcard_file_paths.yml
deleted
100644 → 0
View file @
6256547a
---
name
:
ci_wildcard_file_paths
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58999
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/327315
milestone
:
'
13.11'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
true
doc/ci/yaml/index.md
View file @
4cf9beb4
...
...
@@ -467,15 +467,7 @@ Use local includes instead of symbolic links.
##### `include:local` with wildcard file paths
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/25921) in GitLab 13.11.
> - [Deployed behind a feature flag](../../user/feature_flags.md), disabled by default.
> - [Enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/327315) in GitLab 13.12.
> - Enabled on GitLab.com.
> - Recommended for production use.
> - For GitLab self-managed instances, GitLab administrators can opt to disable it. **(CORE ONLY)**
There can be
[
risks when disabling released features
](
../../administration/feature_flags.md#risks-when-disabling-released-features
)
.
Refer to this feature's version history for more details.
> - [Feature flag removed](https://gitlab.com/gitlab-org/gitlab/-/issues/327315) in GitLab 14.2.
You can use wildcard paths (
`*`
and
`**`
) with
`include:local`
.
...
...
@@ -499,23 +491,6 @@ When the pipeline runs, GitLab:
include
:
'
configs/**/*.yml'
```
The wildcard file paths feature is under development but ready for production use.
It is deployed behind a feature flag that is
**enabled by default**
.
[
GitLab administrators with access to the GitLab Rails console
](
../../administration/feature_flags.md
)
can opt to disable it.
To enable it:
```
ruby
Feature
.
enable
(
:ci_wildcard_file_paths
)
```
To disable it:
```
ruby
Feature
.
disable
(
:ci_wildcard_file_paths
)
```
#### `include:file`
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/53903) in GitLab 11.7.
...
...
lib/gitlab/ci/config/external/mapper.rb
View file @
4cf9beb4
...
...
@@ -65,8 +65,6 @@ module Gitlab
end
def
expand_wildcard_paths
(
location
)
return
location
unless
::
Feature
.
enabled?
(
:ci_wildcard_file_paths
,
context
.
project
,
default_enabled: :yaml
)
# We only support local files for wildcard paths
return
location
unless
location
[
:local
]
&&
location
[
:local
].
include?
(
'*'
)
...
...
qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb
View file @
4cf9beb4
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Verify'
,
:requires_admin
do
RSpec
.
describe
'Verify'
do
describe
'Include local config file paths with wildcard'
do
let
(
:feature_flag
)
{
:ci_wildcard_file_paths
}
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'project-with-pipeline'
...
...
@@ -12,7 +10,6 @@ module QA
end
before
do
Runtime
::
Feature
.
enable
(
feature_flag
)
Flow
::
Login
.
sign_in
add_files_to_project
project
.
visit!
...
...
@@ -20,7 +17,6 @@ module QA
end
after
do
Runtime
::
Feature
.
disable
(
feature_flag
)
project
.
remove_via_api!
end
...
...
spec/lib/gitlab/ci/config/external/mapper_spec.rb
View file @
4cf9beb4
...
...
@@ -347,17 +347,6 @@ RSpec.describe Gitlab::Ci::Config::External::Mapper do
expect
(
subject
.
map
(
&
:location
)).
to
contain_exactly
(
'myfolder/file1.yml'
,
'myfolder/file2.yml'
)
end
context
'when the FF ci_wildcard_file_paths is disabled'
do
before
do
stub_feature_flags
(
ci_wildcard_file_paths:
false
)
end
it
'cannot find any file returns an error message'
do
expect
(
subject
).
to
contain_exactly
(
an_instance_of
(
Gitlab
::
Ci
::
Config
::
External
::
File
::
Local
))
expect
(
subject
[
0
].
errors
).
to
eq
([
'Local file `myfolder/*.yml` does not exist!'
])
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