Skip to content

ci: widen the e2e setup-bun guard to cover the Linux self-hosted runners - #38

Merged
rockyway merged 1 commit into
developfrom
fix/e2e-setup-bun-guard
Aug 16, 2026
Merged

ci: widen the e2e setup-bun guard to cover the Linux self-hosted runners#38
rockyway merged 1 commit into
developfrom
fix/e2e-setup-bun-guard

Conversation

@rockyway

Copy link
Copy Markdown
Contributor

Follow-up to #37, which fixed the same thing in ci.yml.

e2e-tests.yml already had a setup-bun workaround, guarded with runner.os != 'Windows'. That
guard was copied from rust-tests.yml, where it is correct — that job pins
runs-on: [self-hosted, windows], so the condition exactly identifies its self-hosted runner.

The e2e jobs are bare runs-on: [self-hosted] and can land on the Linux boxes. There the guard
is true, so setup-bun runs — and hits the other form of the same failure:

Windows: EBUSY:   resource busy or locked, copyfile '...bun.exe' -> 'C:\...\bun.exe'
Linux:   ETXTBSY: text file is busy,       copyfile '.../bun'    -> '/home/ubuntu/.bun/bin/bun'

Both are setup-bun downloading bun over a shared install that is already present and may be
executing. Gating on the runner environment covers both, and a GitHub-hosted runner still
installs bun normally.

This matters more here than in ci.yml: E2E runs on every PR to develop, so this is the
workflow best placed to produce a random red X on unrelated work.

The guard here was `runner.os != 'Windows'`, copied from rust-tests.yml — where
it is correct, because that job pins `runs-on: [self-hosted, windows]`. The e2e
jobs are bare `[self-hosted]` and can land on the Linux boxes, where the guard
lets setup-bun run and hit the other form of the same failure:

  Windows: EBUSY: resource busy or locked, copyfile '...bun.exe'
  Linux:   ETXTBSY: text file is busy, copyfile '.../bun' -> '/home/ubuntu/.bun/bin/bun'

Both are setup-bun downloading bun over a shared install that is already there
and may be executing. Gating on the runner environment covers both, and leaves
a GitHub-hosted runner installing bun normally. Same change as ci.yml in PR #37,
which is where the Linux form actually bit.
@rockyway
rockyway merged commit 98e9cac into develop Aug 16, 2026
5 checks passed
@rockyway
rockyway deleted the fix/e2e-setup-bun-guard branch August 19, 2026 20:17
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.

2 participants