Change feature flag to ci_disable_validates_dependencies to enable it as default
This commit is contained in:
parent
c2f68b7ae3
commit
85151ff6f6
|
@ -143,7 +143,7 @@ module Ci
|
||||||
end
|
end
|
||||||
|
|
||||||
before_transition any => [:running] do |build|
|
before_transition any => [:running] do |build|
|
||||||
build.validates_dependencies! if Feature.enabled?('ci_validates_dependencies')
|
build.validates_dependencies! unless Feature.enabled?('ci_disable_validates_dependencies')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1870,7 +1870,7 @@ describe Ci::Build do
|
||||||
|
|
||||||
describe 'state transition: any => [:running]' do
|
describe 'state transition: any => [:running]' do
|
||||||
before do
|
before do
|
||||||
stub_feature_flags(ci_validates_dependencies: true)
|
stub_feature_flags(ci_disable_validates_dependencies: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:build) { create(:ci_build, :pending, pipeline: pipeline, stage_idx: 1, options: options) }
|
let(:build) { create(:ci_build, :pending, pipeline: pipeline, stage_idx: 1, options: options) }
|
||||||
|
|
|
@ -278,7 +278,7 @@ module Ci
|
||||||
|
|
||||||
context 'when "dependencies" keyword is specified' do
|
context 'when "dependencies" keyword is specified' do
|
||||||
before do
|
before do
|
||||||
stub_feature_flags(ci_validates_dependencies: true)
|
stub_feature_flags(ci_disable_validates_dependencies: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
let!(:pre_stage_job) { create(:ci_build, :success, pipeline: pipeline, name: job_name, stage_idx: 0) }
|
let!(:pre_stage_job) { create(:ci_build, :success, pipeline: pipeline, name: job_name, stage_idx: 0) }
|
||||||
|
|
Loading…
Reference in New Issue