Commit 85151ff6 authored by Shinya Maeda's avatar Shinya Maeda

Change feature flag to ci_disable_validates_dependencies to enable it as default

parent c2f68b7a
......@@ -143,7 +143,7 @@ module Ci
end
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
......
......@@ -1870,7 +1870,7 @@ describe Ci::Build do
describe 'state transition: any => [:running]' do
before do
stub_feature_flags(ci_validates_dependencies: true)
stub_feature_flags(ci_disable_validates_dependencies: true)
end
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
before do
stub_feature_flags(ci_validates_dependencies: true)
stub_feature_flags(ci_disable_validates_dependencies: false)
end
let!(:pre_stage_job) { create(:ci_build, :success, pipeline: pipeline, name: job_name, stage_idx: 0) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment