fix(ci): install bun in the release workflow #11

Merged
chrnx merged 1 commits from fix/release-needs-bun into develop 2026-09-23 17:53:07 +00:00
Owner

release.yml runs npm run test:bun but never installs bun.

ci.yml gets away with one setup action per matrix entry — deno for the deno job, bun for the bun job. The release job runs every suite in one job, so it needs both, and only denoland/setup-deno was there.

It would not have skipped the suite

scripts/run-runtime.mjs spawns the binary and ends with process.exit(status ?? 1). Verified what that does when the binary is absent:

spawnSync('bun', …)  ->  status: null, error: ENOENT
process.exit(status ?? 1)  ->  1

So the step fails and the job aborts.

What it would have cost

Nothing published — every gate runs before the publish, which is the point of that ordering. The cost is a tag sitting on GitHub with no release against it, which has to be deleted before the same tag name can be used again.

Found during the pre-flight for the first tag, by listing which tools the steps use against which ones the job installs. Worth doing that check rather than pushing the tag and reading the failure.

`release.yml` runs `npm run test:bun` but never installs bun. `ci.yml` gets away with one setup action per matrix entry — deno for the deno job, bun for the bun job. The release job runs **every** suite in one job, so it needs both, and only `denoland/setup-deno` was there. ## It would not have skipped the suite `scripts/run-runtime.mjs` spawns the binary and ends with `process.exit(status ?? 1)`. Verified what that does when the binary is absent: ``` spawnSync('bun', …) -> status: null, error: ENOENT process.exit(status ?? 1) -> 1 ``` So the step fails and the job aborts. ## What it would have cost Nothing published — every gate runs before the publish, which is the point of that ordering. The cost is a tag sitting on GitHub with no release against it, which has to be deleted before the same tag name can be used again. Found during the pre-flight for the first tag, by listing which tools the steps use against which ones the job installs. Worth doing that check rather than pushing the tag and reading the failure.
chrnx added 1 commit 2026-09-23 17:52:26 +00:00
fix(ci): install bun in the release workflow
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 10s
CI / build (pull_request) Successful in 14s
CI / runtimes (edge) (pull_request) Successful in 9s
CI / runtimes (deno) (pull_request) Successful in 10s
fc495fa3cb
`release.yml` runs `npm run test:bun` but never installed bun. `ci.yml` gets
away with one setup action per matrix entry; the release job runs every suite in
the same job, so it needs both.

Leaving it out does not skip the suite. `scripts/run-runtime.mjs` spawns `bun`,
gets `ENOENT`, and `process.exit(status ?? 1)` turns a missing binary into a
failure — verified: `spawnSync` on a missing command returns `status: null`,
which that expression maps to 1.

Nothing would have been published, since the gates run before the publish. What
it would have cost is a tag sitting on GitHub with no release against it, which
has to be deleted before the same tag can be tried again.

Found during the pre-flight for the first tag, by checking which tools the steps
use against which ones the job installs, rather than by pushing the tag and
reading the failure.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit c87dccedd0 into develop 2026-09-23 17:53:07 +00:00
chrnx deleted branch fix/release-needs-bun 2026-09-23 17:53:08 +00:00
Sign in to join this conversation.