Open and answer this issue on GitHub.
blocked, ci · opened 2026-11-21 · updated 2026-11-21 · 1 comment
Part of the ci lane’s goal, a short CI run.
Facts: CI and caches
After #2474 After #2476
The suite’s test shards (.github/workflows/suite.yml, matrix shard) are uneven. Two recent x86 runs on develop, in seconds:
compiler-0..4: 378 / 377 / 607 / 502 / 440 and 594 / 425 / 623 / 383 / 250.it-0..2: 394 / 413 / 398 and 360 / 479 / 509.heavy-* and ledgers: 167-253.The run lasts as long as its slowest shard, so compiler-2 sets the length at about 610 s while five shards finish under 260 s. compiler-K takes every K-th program by sorted name, and it-K every K-th short test, so a few long programs landing together make one shard long.
compiler-* programs and it-* tests to shards by measured duration, longest first onto the shortest shard, instead of round-robin by name. Keep the durations in a committed file that the shard script reads. A program with no entry goes round-robin as today.tools/*.nika subcommand, or a script run with nikaia run, rewrites that file from a run’s logs. Write no Python or shell.heavy-* and ledgers shards can share runners, merge them. Keep the comment in the workflow on why they are split true.Fixes..github/workflows/suite.yml, the shard script it calls, the new durations file, and the helper in tools/ or scripts/.timeout-minutes.Driver: not queued, this issue waits for #2474, #2476, which is still open (#1819). Set ready again when it is closed.
Generated by Claude Code