Commit 6c893d3
fix(benchmarks): pin deterministic pytest-randomly seed for host shards (#625)
Benchmark host-validation shards ran without a pinned pytest-randomly
seed, so each CI runner used a different random collection order.
pytest-split's LeastDurationAlgorithm partitions the differently ordered
collections independently, assigning the same test to multiple groups
and producing 58 duplicate timing entries across four shards.
Wire the existing pytest_randomly_shard_seed from .github/ci-config.json
(the same SSOT used by the CI workflow for domain/composition shards)
through pytest_arguments() in host_validation.py, injecting --randomly-seed
into every shard's pytest command vector. This ensures all shards see
an identical collection order, so pytest-split produces disjoint groups.
The defensive merge behavior from #624 remains intact as a second line
of defense.
Generated with [Devin](https://devin.ai)
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent a57ca82 commit 6c893d3
2 files changed
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
| |||
295 | 306 | | |
296 | 307 | | |
297 | 308 | | |
| 309 | + | |
298 | 310 | | |
299 | 311 | | |
300 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
78 | 120 | | |
79 | 121 | | |
80 | 122 | | |
| |||
0 commit comments