Repository navigation
Commit c158f58
pytest: distribute with xdist worksteal
xdist's default 'load' mode hands each worker a contiguous slice of the
collection up front. tests/catalog/test_integration.py has 30 tests
that each start a fresh catalog worker process (~0.7 s apiece); they
all landed on one xdist worker, which ran for 20 s after the other 15
had finished, so the suite took 27 s. With worksteal, idle workers take
queued tests from busy ones: 14.8 s. The option is ignored without -n.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent ce3433e commit c158f58
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
0 commit comments