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
873209c6
Commit
873209c6
authored
Mar 29, 2022
by
Mark Lapierre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let jobs pass when reusable resource cleanup fails
parent
dddadebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
qa/spec/spec_helper.rb
qa/spec/spec_helper.rb
+7
-1
No files found.
qa/spec/spec_helper.rb
View file @
873209c6
...
@@ -77,7 +77,13 @@ RSpec.configure do |config|
...
@@ -77,7 +77,13 @@ RSpec.configure do |config|
# If any tests failed, leave the resources behind to help troubleshoot, otherwise remove them.
# If any tests failed, leave the resources behind to help troubleshoot, otherwise remove them.
# Do not remove the shared resource on live environments
# Do not remove the shared resource on live environments
QA
::
Resource
::
ReusableCollection
.
remove_all_via_api!
if
!
suite
.
reporter
.
failed_examples
.
present?
&&
!
QA
::
Runtime
::
Env
.
running_on_dot_com?
begin
QA
::
Resource
::
ReusableCollection
.
remove_all_via_api!
if
!
suite
.
reporter
.
failed_examples
.
present?
&&
!
QA
::
Runtime
::
Env
.
running_on_dot_com?
rescue
QA
::
Resource
::
Errors
::
InternalServerError
=>
e
# Temporarily prevent this error from failing jobs while the cause is investigated
# See https://gitlab.com/gitlab-org/gitlab/-/issues/354387
QA
::
Runtime
::
Logger
.
debug
(
e
.
message
)
end
end
end
config
.
append_after
(
:suite
)
do
config
.
append_after
(
:suite
)
do
...
...
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