-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): use nextests groups to isolate some tests (#2617)
## Description After a lot of debugging we realized the integrations tests (`gc` tests, for example) run with swarm discovery on since they are not technically using test iroh, so they bypass the cfg that prevents it from being turned on. This causes the `test_local_swarm_discovery` test to be flooded with nodes from other tests, making it flaky. Isolating the test should make it no longer flaky anymore ## Breaking Changes n/a ## Notes & open questions We should still create a test that creates a bunch of nodes and makes sure they all can find each other within reasonable time. There is still reason to believe swarm discovery is slow, particularly in linux, but we should address it in a test under our countrol, not via the non-deterministic nature of concurrent tests in ci. ## Change checklist - [x] Self-review. - [ ] ~~Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant.~~ - [ ] ~~Tests if relevant.~~ - [ ] ~~All breaking changes documented.~~
- Loading branch information
1 parent
bcc87a2
commit a5072c3
Showing
3 changed files
with
51 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[test-groups] | ||
run-in-isolation = { max-threads = 16 } | ||
# these are tests that must not run with other tests concurrently. All tests in | ||
# this group can take up at most 16 threads among them, but each one requiring | ||
# 16 threads also. The effect should be that tests run isolated. | ||
|
||
[[profile.ci.overrides]] | ||
filter = 'test(::run_in_isolation::)' | ||
test-group = 'run-in-isolation' | ||
threads-required = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters