Repository navigation
ci: faster PR feedback and releases without dropping a test (#256) - #257
Merged
Merged
Conversation
…s that reuse CI (#256) No test is dropped; only the scheduling changes. - e2e: one job builds the bundle and every shard downloads it. Building in each shard was most of its fixed cost, so 12 shards now pay where 4 used to. - quick: lint, the guards and the unit tests without coverage report in about 90 s. check still runs the full gate on ubuntu and windows. - CI runs e2e on the merge commit too, which is the commit a release tags. The release's new gate job always runs the dependency audit, waits for CI on the tagged commit, and reuses it only when every quick, check and e2e job passed there. A direct push, a tag on an arbitrary commit, or anything not green re-runs the suite in the release as before. Jobs after build check their direct parent, so a skipped test job does not silently skip them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #256. Every test and guard still runs; only the scheduling changes.
Releases reuse CI on the tagged commit. CI now runs e2e on the merge commit as well as on the PR. The release's new
gatejob:quick,checkande2ejob passed on that exact commit.A direct push, a tag on an arbitrary commit, or anything not green re-runs the suite in the release exactly as before. The decision lives in
scripts/lib/releaseVerified.mjs, with tests. Checking CI on the tagged commit is stronger than checking the PR head: a squash onto a moved main produces a tree PR CI never saw, and the version-sync commit after every release makes that the usual case.e2e builds once and runs 12 shards from the shared bundle, instead of 4 shards each building their own.
quickreports lint, the guards and the unit tests in about 90 s.checkstill runs the full gate (coverage, build, packaged smokes) on ubuntu and windows.Expected: PR feedback goes from about 10 minutes (Windows
checkwas the slowest job) to about 3–5 for e2e, with lint and unit results in about 90 s. A release whose commit already passed goes straight from the gate to builds and packaged smokes.The release half can only run on a tag, so its first real test is the next release. The gate logic is unit-tested, and was run by hand against real commits:
adb02f5correctly reportsretesting: CI did not run: e2e (, because main pushes didn't run e2e before this change.🤖 Generated with Claude Code
https://claude.ai/code/session_01PJaGuL4V5ghYxXSGoyYU8n