Skip to content

build(ci): release quality gate reuses main CI's tests at the same sha instead of re-running them - #1840

Merged
nc9 merged 2 commits into
mainfrom
ci/release-reuse-main-ci
Nov 14, 2026
Merged

nc9 merged 2 commits into
mainfrom
ci/release-reuse-main-ci

Conversation

@nc9

@nc9 nc9 commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Part of #1839 (the release handbrake). Includes #1838's two commits (timeouts); merge #1838 first and this PR's own change is the last commit.

The release quality gate re-runs a bare whole-tree bun test (29-36 min on the last four releases), test:engine and test:release, although main CI (ci.yml on push) already ran exactly those suites at the same sha: "CLI tests" runs every test file through scripts/test-suites.ts (its --check fails if any file belongs to no suite), plus "Audit engine golden tests" and "Release tooling tests".

New first step in the quality job, "Reuse main CI's test results at this sha":

  • finds the ci.yml push run on main for github.sha;
  • while it is still running, waits for it (30 s polls, cap 45 min);
  • when completed, the three test steps are skipped only if all three jobs ("CLI tests", "Audit engine golden tests", "Release tooling tests") concluded success;
  • anything else (no run, a job skipped by path classification, failed, cancelled, the cap, an API error) runs the tests here exactly as before.

Format, lint, typecheck, notices and the dependency audit still run in the gate (under 30 s together). The job gains actions: read.

Checked against real data: at the v0.0.182 release sha b440de5, main CI run 43553984445 returns "3 true" (all three test jobs success), so that release would have skipped ~30 min.

actionlint passes. No user-facing change, no docs or agent skill change.

nc9 added 2 commits November 14, 2026 06:08
…passed at the release sha #1839

Signed-off-by: Nik Cubrilovic <[email protected]>
… min bun test fallback)

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 force-pushed the ci/release-reuse-main-ci branch from 1b365df to 95f7f54 Compare November 14, 2026 06:08
@nc9
nc9 merged commit 29fa4a6 into main Nov 14, 2026
16 checks passed
@nc9
nc9 deleted the ci/release-reuse-main-ci branch November 14, 2026 06:25
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