Skip to content

Use canary Bun in test CI - #313

Closed
dylan-conway wants to merge 1 commit into
mainfrom
ci/bun-canary
Closed

dylan-conway wants to merge 1 commit into
mainfrom
ci/bun-canary

Conversation

@dylan-conway

@dylan-conway dylan-conway commented Jun 15, 2026 •

Copy link
Copy Markdown
Collaborator

What this does

Switches the integration-tests workflow to install Bun's canary build instead of pinned 1.3.14.

Why

We need a Bun fetch fix that has landed in Bun but hasn't shipped in a stable release yet:

Bun's build_proxy_authorization() was encoding the Proxy-Authorization: Basic <...> header with the base64url alphabet (-/_, no padding) instead of the standard alphabet (+//, with =) that RFC 7617 requires. Plain user:pass credentials encode identically in both, so it worked by accident — but credentials containing special characters do not.

This directly affects us: srt's loopback proxy now authenticates requests and parse-compares the Proxy-Authorization header (#310). A credential bun encodes with base64url won't match what srt decodes with the standard alphabet, so the request is rejected. The fix is canary-only and not in 1.3.14.

What changed

  • setup-bun action: bun-version: 1.3.14 → canary
  • Docker leg's install script: bun.sh/install | bash → bash -s "canary"

The release.yml publish pipeline is intentionally left pinned, so production builds stay reproducible.

After merge

This is a stopgap. Once the fix ships in a stable Bun release, re-pin both legs to that version and drop canary.

Track Bun's canary build in the integration-tests workflow instead of a pinned release, so regressions in upcoming Bun versions surface in CI before they ship.

Switches both the setup-bun action and the docker leg's install script to canary. The release/publish workflow stays pinned for reproducible builds.
@dylan-conway

Copy link
Copy Markdown
Collaborator Author

Closing — the CI flakiness fix this was meant to pull in (oven-sh/bun#30301, the Linux pidfd missed-'exit' bug) already shipped in bun 1.3.14, which is the version CI is already pinned to. No canary needed.

@dylan-conway
dylan-conway deleted the ci/bun-canary branch June 15, 2026 20:06
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