Skip to content

chore: fix formatting break + pin bun to 1.3.13 (CI segfault) - #1454

Merged
sam-goodwin merged 3 commits into
mainfrom
claude/fix-build-0113a4
Jul 15, 2026
Merged

chore: fix formatting break + pin bun to 1.3.13 (CI segfault)#1454
sam-goodwin merged 3 commits into
mainfrom
claude/fix-build-0113a4

Conversation

@sam-goodwin

@sam-goodwin sam-goodwin commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Problem

Two separate breaks in the website CI pipeline:

1. Format check failure — the Publish Website workflow on main fails at "Check Types and Lint" because #1451 landed with unformatted code:

alchemy/src/cloudflare/bound.ts (0ms)
alchemy/src/cloudflare/d1-database.ts (0ms)
Format issues found in above 2 files.

2. Bun 1.3.14 segfault — the deploy step crashes with exit code 132:

alchemy-web deploy: Bun v1.3.14 (0d9b296a) Linux x64 (baseline)
alchemy-web deploy: panic(main thread): Segmentation fault at address 0x10

This is oven-sh/bun#32701 — a type-confusion bug in Bun 1.3.14's JSC fork that segfaults when an AsyncLocalStorage context resumes through a module top-level await. That's exactly the shape of every alchemy.run.ts (Alchemy uses AsyncLocalStorage for scope tracking + top-level await alchemy(...)). The bug also reproduces on the 1.4.0 canary, so there's no newer version to upgrade to. The last green deploy (2026-04-28) ran on bun 1.3.13, before 1.3.14 shipped and bun-version: latest picked it up.

Fix

Ran bun run format (whitespace-only diff), and pinned bun across all five workflows:

- name: Setup Bun
  uses: oven-sh/setup-bun@v1
  with:
    bun-version: 1.3.13 # pinned: 1.3.14 segfaults on top-level await with AsyncLocalStorage (oven-sh/bun#32701)

The pin should be reverted to latest once a bun release fixes oven-sh/bun#32701.

The Publish Preview Website run on this PR exercises the pinned version end-to-end.

🤖 Generated with Claude Code

PR #1451 landed with unformatted code, breaking the format:check step
in the Publish Website workflow on main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Jul 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/alchemy@1454

commit: a00b29c

Bun 1.3.14 has a type-confusion bug in its JSC fork that segfaults
(address 0x10) when an AsyncLocalStorage context resumes through a
module top-level await — exactly the pattern of every alchemy.run.ts.
The bug also reproduces on the 1.4.0 canary, so upgrading is not an
option yet. See oven-sh/bun#32701.

The last green website deploy ran on bun 1.3.13, so pin all workflows
there until a fixed bun release ships.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sam-goodwin sam-goodwin changed the title chore: fix formatting break on main (Publish Website CI) chore: fix formatting break + pin bun to 1.3.13 (CI segfault) Jul 15, 2026
@sam-goodwin

Copy link
Copy Markdown
Collaborator Author

Update after pushing the bun pin: the preview-deploy run on this PR (29446977863) no longer segfaults — bun 1.3.13 runs alchemy.run.ts fine, confirming the pin fixes oven-sh/bun#32701.

The run still fails, but with a different, pre-existing issue that the segfault had been masking since mid-May:

CloudflareApiError: Failed to get subdomain for "alchemy-state-service" (403 Forbidden):
- [10000] Authentication error

This is the Cloudflare API rejecting the CLOUDFLARE_API_KEY/CLOUDFLARE_EMAIL repo secrets (last updated 2026-03-25, last known working 2026-05-04, with no auth-code changes in the repo since). The global API key was likely rolled or revoked on the Cloudflare account — the secrets need to be rotated by a maintainer. Not fixable from this PR.

🤖 Generated with Claude Code

starlight-links-validator rejects relative links by default, failing
the website build. Convert the five relative links between the Access
docs pages to the absolute /providers/cloudflare/... form used
everywhere else.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview Deployed

Your website preview is ready!

Preview URL: https://af27aafb-alchemy-website.alchemy-run.workers.dev

This preview was built from commit e901ace


🤖 This comment will be updated automatically when you push new commits to this PR.

@sam-goodwin
sam-goodwin merged commit f46c6bb into main Jul 15, 2026
6 checks passed
@sam-goodwin
sam-goodwin deleted the claude/fix-build-0113a4 branch July 15, 2026 20:34
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.

Bun 1.3.14 segfault with Alchemy IaC when AsyncLocalStorage resumes through module top-level await on Linux arm64

1 participant