Skip to content

CI: build once, shard the suite, native runner everywhere - #416

Merged
blacktrs merged 12 commits into
mainfrom
ci/shard-suite
Oct 24, 2026
Merged

blacktrs merged 12 commits into
mainfrom
ci/shard-suite

Conversation

@blacktrs

Copy link
Copy Markdown
Contributor

What

  • One build-<tag> job per row (and macos-build) makes the compiler and hands it on as an artifact; gate.sh reuses it (cache src.sha matches) instead of rebuilding.
  • The suite of every row is cut into 4 shards (--shard i/n in tests/aot/run.sh and the native runner) that run in parallel.
  • All rows run through the native runner (adds @split handling it lacked).
  • rows jobs keep the required check names (linux-arm64 … macos-arm64): green only when all 4 shards are.
  • pdo-net unpacks the shared compiler; on PRs it runs only when the PR touches prelude/pdo*, tests/pdo_net/, gate.sh or ci.yml; always on main.
  • Seed publication moved to a publish job that needs every shard green.

Why

The suite takes 38–76 min per row on CI, almost all of it the serial suite and repeated builds.

Check

Expect ~10 min build + ~10 min suite per row. Verify: matrix expands to 16+4 jobs, rows finds 4 shards, shards report "reused, not rebuilt", gh pr diff works in changes.

@blacktrs
blacktrs merged commit 03e183b into main Oct 24, 2026
57 checks passed
@blacktrs
blacktrs deleted the ci/shard-suite branch October 24, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant