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
8c40e539
Commit
8c40e539
authored
Feb 06, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use RspecFlaky::Listener when 'FLAKY_RSPEC_GENERATE_REPORT' is set
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d56cf9ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
scripts/rspec_helpers.sh
scripts/rspec_helpers.sh
+1
-1
spec/spec_helper.rb
spec/spec_helper.rb
+3
-0
No files found.
scripts/rspec_helpers.sh
View file @
8c40e539
...
@@ -24,7 +24,7 @@ function update_tests_metadata() {
...
@@ -24,7 +24,7 @@ function update_tests_metadata() {
scripts/merge-reports
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
rspec_flaky/all_
*
.json
scripts/merge-reports
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
rspec_flaky/all_
*
.json
export
FLAKY_RSPEC_GENERATE_REPORT
=
"
1
"
export
FLAKY_RSPEC_GENERATE_REPORT
=
"
true
"
scripts/flaky_examples/prune-old-flaky-examples
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
scripts/flaky_examples/prune-old-flaky-examples
"
${
FLAKY_RSPEC_SUITE_REPORT_PATH
}
"
if
[[
-n
${
TESTS_METADATA_S3_BUCKET
}
]]
;
then
if
[[
-n
${
TESTS_METADATA_S3_BUCKET
}
]]
;
then
...
...
spec/spec_helper.rb
View file @
8c40e539
...
@@ -124,6 +124,9 @@ RSpec.configure do |config|
...
@@ -124,6 +124,9 @@ RSpec.configure do |config|
if
ENV
[
'CI'
]
||
ENV
[
'RETRIES'
]
if
ENV
[
'CI'
]
||
ENV
[
'RETRIES'
]
# This includes the first try, i.e. tests will be run 4 times before failing.
# This includes the first try, i.e. tests will be run 4 times before failing.
config
.
default_retry_count
=
ENV
.
fetch
(
'RETRIES'
,
3
).
to_i
+
1
config
.
default_retry_count
=
ENV
.
fetch
(
'RETRIES'
,
3
).
to_i
+
1
end
if
ENV
[
'FLAKY_RSPEC_GENERATE_REPORT'
]
config
.
reporter
.
register_listener
(
config
.
reporter
.
register_listener
(
RspecFlaky
::
Listener
.
new
,
RspecFlaky
::
Listener
.
new
,
:example_passed
,
:example_passed
,
...
...
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