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
ff6aa790
Commit
ff6aa790
authored
May 07, 2019
by
Mark Lapierre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only retry failing QA tests in CI
No need to retry automatically when running tests locally
parent
a4777d6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
qa/spec/spec_helper.rb
qa/spec/spec_helper.rb
+5
-3
No files found.
qa/spec/spec_helper.rb
View file @
ff6aa790
...
@@ -35,8 +35,10 @@ RSpec.configure do |config|
...
@@ -35,8 +35,10 @@ RSpec.configure do |config|
# show exception that triggers a retry if verbose_retry is set to true
# show exception that triggers a retry if verbose_retry is set to true
config
.
display_try_failure_messages
=
true
config
.
display_try_failure_messages
=
true
if
ENV
[
'CI'
]
config
.
around
do
|
example
|
config
.
around
do
|
example
|
retry_times
=
example
.
metadata
.
keys
.
include?
(
:quarantine
)
?
1
:
2
retry_times
=
example
.
metadata
.
keys
.
include?
(
:quarantine
)
?
1
:
2
example
.
run_with_retry
retry:
retry_times
example
.
run_with_retry
retry:
retry_times
end
end
end
end
end
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