Change feature flag to ci_disable_validates_dependencies to enable it as default

This commit is contained in:
Shinya Maeda 2017-12-07 23:17:46 +09:00
parent c2f68b7ae3
commit 85151ff6f6
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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) }

View File

@ -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) }