Commit 2d58bd00 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'issue-67299-feature-flag' into 'master'

Disable interruptible pipeline feature flag by default

See merge request gitlab-org/gitlab!16786
parents 58f0af10 cab0ccb9
...@@ -95,7 +95,7 @@ module Ci ...@@ -95,7 +95,7 @@ module Ci
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def auto_cancelable_pipelines def auto_cancelable_pipelines
# TODO: Introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23464 # TODO: Introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23464
if Feature.enabled?(:ci_support_interruptible_pipelines, project, default_enabled: true) if Feature.enabled?(:ci_support_interruptible_pipelines, project, default_enabled: false)
project.ci_pipelines project.ci_pipelines
.where(ref: pipeline.ref) .where(ref: pipeline.ref)
.where.not(id: pipeline.id) .where.not(id: pipeline.id)
......
...@@ -317,9 +317,14 @@ describe Ci::CreatePipelineService do ...@@ -317,9 +317,14 @@ describe Ci::CreatePipelineService do
context 'interruptible builds' do context 'interruptible builds' do
before do before do
Feature.enable(:ci_support_interruptible_pipelines)
stub_ci_pipeline_yaml_file(YAML.dump(config)) stub_ci_pipeline_yaml_file(YAML.dump(config))
end end
after do
Feature.disable(:ci_support_interruptible_pipelines)
end
let(:config) do let(:config) do
{ {
stages: %w[stage1 stage2 stage3 stage4], stages: %w[stage1 stage2 stage3 stage4],
......
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