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
a72f5baf
Commit
a72f5baf
authored
Dec 24, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Skip flaky tests automatically and allow to opt-out
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
8bb0cff3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
doc/development/pipelines.md
doc/development/pipelines.md
+3
-4
spec/support/flaky_tests.rb
spec/support/flaky_tests.rb
+1
-1
No files found.
.gitlab-ci.yml
View file @
a72f5baf
...
...
@@ -80,6 +80,7 @@ variables:
CACHE_CLASSES
:
"
true"
CHECK_PRECOMPILED_ASSETS
:
"
true"
FF_USE_FASTZIP
:
"
true"
SKIP_FLAKY_TESTS_AUTOMATICALLY
:
"
true"
DOCS_REVIEW_APPS_DOMAIN
:
"
178.62.207.141.nip.io"
DOCS_GITLAB_REPO_SUFFIX
:
"
ee"
...
...
doc/development/pipelines.md
View file @
a72f5baf
...
...
@@ -170,10 +170,9 @@ After that, the next pipeline uses the up-to-date `knapsack/report-master.json`
### Flaky tests
Tests that are
[
known to be flaky
](
testing_guide/flaky_tests.md#automatic-retries-and-flaky-tests-detection
)
are:
-
skipped if the
`$SKIP_FLAKY_TESTS_AUTOMATICALLY`
variable is set to
`true`
(
`false`
by default)
-
run if
`$SKIP_FLAKY_TESTS_AUTOMATICALLY`
variable is not set to
`true`
or if the
`~"pipeline:run-flaky-tests"`
label is set on the MR
Tests that are
[
known to be flaky
](
testing_guide/flaky_tests.md#automatic-retries-and-flaky-tests-detection
)
are
skipped unless the
`$SKIP_FLAKY_TESTS_AUTOMATICALLY`
variable is set to
`false`
or if the
`~"pipeline:run-flaky-tests"`
label is set on the MR.
### Monitoring
...
...
spec/support/flaky_tests.rb
View file @
a72f5baf
# frozen_string_literal: true
return
unless
ENV
[
'CI'
]
return
unless
ENV
[
'SKIP_FLAKY_TESTS_AUTOMATICALLY'
]
==
"tru
e"
return
if
ENV
[
'SKIP_FLAKY_TESTS_AUTOMATICALLY'
]
==
"fals
e"
return
if
ENV
[
'CI_MERGE_REQUEST_LABELS'
].
to_s
.
include?
(
'pipeline:run-flaky-tests'
)
require_relative
'../../tooling/rspec_flaky/report'
...
...
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