Skip to content

ci: faster PR feedback and releases without dropping a test (#256) - #257

Merged
mindaugaskasp merged 1 commit into
mainfrom
ci/faster-pipeline
Nov 17, 2026
Merged

mindaugaskasp merged 1 commit into
mainfrom
ci/faster-pipeline

Conversation

@mindaugaskasp

Copy link
Copy Markdown
Owner

Closes #256. Every test and guard still runs; only the scheduling changes.

  1. 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 gate job:

    • always runs the dependency audit first (it is never reused, since advisories appear over time);
    • waits for CI on the tagged commit;
    • reuses it only when every quick, check and e2e job 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.

  2. e2e builds once and runs 12 shards from the shared bundle, instead of 4 shards each building their own.

  3. quick reports lint, the guards and the unit tests in about 90 s. check still runs the full gate (coverage, build, packaged smokes) on ubuntu and windows.

Expected: PR feedback goes from about 10 minutes (Windows check was 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: adb02f5 correctly reports retesting: 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

…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
@mindaugaskasp
mindaugaskasp merged commit 1fff294 into main Nov 17, 2026
16 checks passed
@mindaugaskasp
mindaugaskasp deleted the ci/faster-pipeline branch November 17, 2026 19:21
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.

CI: faster PR feedback and releases without dropping any test

1 participant