Commit 2efe1c35 authored by Marius Bobin's avatar Marius Bobin

Remove ci_store_trace_outside_transaction feature flag

Changelog: other
parent c7673c25
...@@ -348,9 +348,7 @@ module Ci ...@@ -348,9 +348,7 @@ module Ci
def store_after_commit? def store_after_commit?
strong_memoize(:store_after_commit) do strong_memoize(:store_after_commit) do
trace? && trace? && JobArtifactUploader.direct_upload_enabled?
JobArtifactUploader.direct_upload_enabled? &&
Feature.enabled?(:ci_store_trace_outside_transaction, project, default_enabled: :yaml)
end end
end end
......
---
name: ci_store_trace_outside_transaction
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66203
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336280
milestone: '14.5'
type: development
group: group::pipeline execution
default_enabled: true
...@@ -545,23 +545,11 @@ RSpec.describe Ci::JobArtifact do ...@@ -545,23 +545,11 @@ RSpec.describe Ci::JobArtifact do
context 'when the artifact is a trace' do context 'when the artifact is a trace' do
let(:file_type) { :trace } let(:file_type) { :trace }
context 'when ci_store_trace_outside_transaction is enabled' do
it 'returns true' do it 'returns true' do
expect(artifact.store_after_commit?).to be_truthy expect(artifact.store_after_commit?).to be_truthy
end end
end end
context 'when ci_store_trace_outside_transaction is disabled' do
before do
stub_feature_flags(ci_store_trace_outside_transaction: false)
end
it 'returns false' do
expect(artifact.store_after_commit?).to be_falsey
end
end
end
context 'when the artifact is not a trace' do context 'when the artifact is not a trace' do
it 'returns false' do it 'returns false' do
expect(artifact.store_after_commit?).to be_falsey expect(artifact.store_after_commit?).to be_falsey
......
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