Skip to content
代码片段 群组 项目
提交 966cad99 编辑于 作者: Rajendra Kadam's avatar Rajendra Kadam
浏览文件

Remove project_ref_name_in_variables FF

Remove flag references in code

Changelog: fixed
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/160190
上级 4c2204fb
No related branches found
No related tags found
无相关合并请求
...@@ -28,8 +28,7 @@ def calculate_reactive_cache(sha) ...@@ -28,8 +28,7 @@ def calculate_reactive_cache(sha)
return {} unless config.exists? return {} unless config.exists?
ref_name = Gitlab::Ci::RefFinder.new(project).find_by_sha(sha) if Feature.enabled?( ref_name = Gitlab::Ci::RefFinder.new(project).find_by_sha(sha)
:project_ref_name_in_variables, project)
result = Gitlab::Ci::YamlProcessor.new( result = Gitlab::Ci::YamlProcessor.new(
config.content, config.content,
......
---
name: project_ref_name_in_variables
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/430786
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/155868
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/466427
milestone: '17.2'
group: group::pipeline authoring
type: gitlab_com_derisk
default_enabled: false
...@@ -213,21 +213,6 @@ ...@@ -213,21 +213,6 @@
expect(result['COMMON_VAR']).to eq({ value: 'include_two', description: 'Common variable' }) expect(result['COMMON_VAR']).to eq({ value: 'include_two', description: 'Common variable' })
end end
end end
context 'when feature flag is disabled in the project' do
before do
stub_feature_flags(project_ref_name_in_variables: false)
end
it 'passes nil as the ref name to YamlProcessor' do
expect(Gitlab::Ci::YamlProcessor)
.to receive(:new)
.with(anything, a_hash_including(ref: nil))
.and_call_original
result
end
end
end end
context 'when project CI config is external' do context 'when project CI config is external' do
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册