Skip to content
Snippets Groups Projects
Unverified Commit 360c3328 authored by David Dieulivol's avatar David Dieulivol Committed by GitLab
Browse files

Merge branch 'link-flaky-specs-to-spec-ordering' into 'master'

Document rspec_check_order_dependence in flaky specs docs

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169672



Merged-by: default avatarDavid Dieulivol <ddieulivol@gitlab.com>
Approved-by: default avatarDavid Dieulivol <ddieulivol@gitlab.com>
Co-authored-by: default avatarDylan Griffith <dyl.griffith@gmail.com>
parents acbc29c2 fa6ef1ad
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -338,7 +338,14 @@ These flaky tests can fail depending on the order they run with other tests. For
 
- <https://gitlab.com/gitlab-org/gitlab/-/issues/327668>
 
To identify the tests that lead to such failure, we can use `scripts/rspec_bisect_flaky`,
To identify test ordering issues in a single file you can run
`scripts/rspec_check_order_dependence`:
```shell
scripts/rspec_check_order_dependence spec/models/project_spec.rb
```
To identify the ordering issues across different files, you can use `scripts/rspec_bisect_flaky`,
which would give us the minimal test combination to reproduce the failure:
 
1. First obtain the list of specs that ran before the flaky test. You can search
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment