Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2efe1c35
Commit
2efe1c35
authored
Jan 18, 2022
by
Marius Bobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ci_store_trace_outside_transaction feature flag
Changelog: other
parent
c7673c25
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
25 deletions
+3
-25
app/models/ci/job_artifact.rb
app/models/ci/job_artifact.rb
+1
-3
config/feature_flags/development/ci_store_trace_outside_transaction.yml
..._flags/development/ci_store_trace_outside_transaction.yml
+0
-8
spec/models/ci/job_artifact_spec.rb
spec/models/ci/job_artifact_spec.rb
+2
-14
No files found.
app/models/ci/job_artifact.rb
View file @
2efe1c35
...
@@ -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
...
...
config/feature_flags/development/ci_store_trace_outside_transaction.yml
deleted
100644 → 0
View file @
c7673c25
---
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
spec/models/ci/job_artifact_spec.rb
View file @
2efe1c35
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment