Commit 878316e4 authored by Jose Vargas's avatar Jose Vargas Committed by Jose Ivan Vargas

Support warning in pipeline creation by default

This removes the ci_store_pipeline_messages feature
flag by default for all types of instances

Changelog: changed
parent 5c0431b1
...@@ -1255,8 +1255,6 @@ module Ci ...@@ -1255,8 +1255,6 @@ module Ci
private private
def add_message(severity, content) def add_message(severity, content)
return unless Gitlab::Ci::Features.store_pipeline_messages?(project)
messages.build(severity: severity, content: content) messages.build(severity: severity, content: content)
end end
......
---
title: Support warning in pipeline creation by default
merge_request: 61803
author:
type: changed
---
name: ci_store_pipeline_messages
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33762
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/224199
milestone: '13.2'
type: development
group: group::continuous integration
default_enabled: true
...@@ -22,11 +22,6 @@ module Gitlab ...@@ -22,11 +22,6 @@ module Gitlab
Feature.enabled?(:merge_base_pipeline_for_metrics_comparison, project, default_enabled: :yaml) Feature.enabled?(:merge_base_pipeline_for_metrics_comparison, project, default_enabled: :yaml)
end end
# Remove in https://gitlab.com/gitlab-org/gitlab/-/issues/224199
def self.store_pipeline_messages?(project)
::Feature.enabled?(:ci_store_pipeline_messages, project, default_enabled: true)
end
def self.raise_job_rules_without_workflow_rules_warning? def self.raise_job_rules_without_workflow_rules_warning?
::Feature.enabled?(:ci_raise_job_rules_without_workflow_rules_warning, default_enabled: true) ::Feature.enabled?(:ci_raise_job_rules_without_workflow_rules_warning, default_enabled: true)
end end
......
...@@ -3234,18 +3234,6 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do ...@@ -3234,18 +3234,6 @@ RSpec.describe Ci::Pipeline, :mailer, factory_default: :keep do
expect(pipeline.messages.map(&:content)).to contain_exactly('The error message') expect(pipeline.messages.map(&:content)).to contain_exactly('The error message')
end end
context 'when feature flag ci_store_pipeline_messages is disabled' do
before do
stub_feature_flags(ci_store_pipeline_messages: false)
end
it 'does not add pipeline error message' do
pipeline.add_error_message('The error message')
expect(pipeline.messages).to be_empty
end
end
end end
describe '#has_yaml_errors?' do describe '#has_yaml_errors?' do
......
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