Commit fc00cd6
authored
ci: rebalance the e2e and shreds-e2e shard matrices (#4249)
## Summary
- The e2e matrix runs 5 round-robin shards instead of 4. Shards are
filled round-robin by test *count*, not by duration, so which shard gets
the slow tests is luck. The heaviest shard was carrying ~3735s of tests
against a 15-minute job timeout and was cancelled partway through, while
the lightest carried 2840s. A fifth shard brings the worst case back to
~3022s.
- shreds-e2e pins one heavy test to its own shard instead of three.
`TestE2E_MultiUserInstantAllocationAndWithdrawal` and
`TestE2E_DeviceScale` no longer exist in doublezero-shreds, so the pin
validation failed on every run and the matrix was never built — the
workflow has been red on main since 05fb0ab. Only
`TestE2E_FeedSubscriptionOracleExpiryTeardown` stays pinned, leaving 1
pinned + 2 round-robin shards.
- `CHECK_SHARDS` follows the matrix in both workflows, so the docs-only
skip path reports exactly the contexts the matrix creates.
## Required ruleset changes
`CHECK_SHARDS` must match the required status check contexts in the main
ruleset, so merging this needs two manual admin steps:
- **add** `e2e (shard 6)`
- **remove** `shard-e2e (shard 4)` and `shard-e2e (shard 5)` — until
these are removed they are required but never reported, which blocks
merges.
## Testing Verification
- Measured total test-seconds per shard from CI logs to find the cliff.
Shards at 3568s, 3735s and 3783s hit the 15-minute timeout; shards at
2840s, 3428s and 3507s passed. main itself was already running at
3012-3318s, leaving almost no headroom for any new test.
- Verified the 6-shard e2e layout on a branch: work per shard landed at
2214-3022s and every shard finished in 5.5-9.4 minutes, against a
15-minute timeout.
- Confirmed the shreds-e2e pin validation failure reproduces on main and
that `TestE2E_FeedSubscriptionOracleExpiryTeardown` is present in the
upstream discovery output.1 parent 4a94441 commit fc00cd6
3 files changed
Lines changed: 15 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
199 | | - | |
200 | | - | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
| 202 | + | |
205 | 203 | | |
206 | 204 | | |
207 | 205 | | |
208 | | - | |
| 206 | + | |
209 | 207 | | |
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
| |||
229 | 227 | | |
230 | 228 | | |
231 | 229 | | |
232 | | - | |
| 230 | + | |
233 | 231 | | |
234 | | - | |
235 | | - | |
236 | 232 | | |
237 | | - | |
| 233 | + | |
238 | 234 | | |
239 | 235 | | |
240 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
0 commit comments