Skip to content

Commit 856fe0f

Browse files
authored
fix(docker): upgrade bun to 1.3.14 (#6236)
* fix(docker): upgrade bun to 1.3.14 to unbreak the Next 16.3.0 server Bun 1.3.13 cannot load Next 16.3.0's compiled server runtime. The app container runs the Next server under Bun (`oven/bun:1.3.13-slim`, `bun apps/sim/bootstrap.js`), so every app-page render threw and `/api/health` returned 500: ⨯ Error: Failed to load external module next/dist/compiled/next-server/app-page-turbo.runtime.prod.js: TypeError: Expected CommonJS module to have a function wrapper. If you weren't messing around with Bun's internals, this is a bug in Bun Isolated to Bun, not Next, by loading that exact module in the real images: Next 16.2.12 + Bun 1.3.13 -> loads (why staging was fine before) Next 16.3.0 + Bun 1.3.13 -> CJS wrapper error Next 16.3.0 + Bun 1.3.14 -> loads Bun 1.3.14 is the current stable and already fixes it, so this bumps every pin rather than reverting the framework upgrade, which would only defer the same latent Bun bug to the next attempt. Why no gate caught it: local dev machines and this bump's own verification run Bun 1.3.14, while the container and CI pinned 1.3.13 — and CI only *builds* the image, it never boots one and probes `/api/health`. A container smoke test in CI would have caught this before merge; that is worth adding separately. * fix(docker): align the remaining bun pins with 1.3.14 Two pins were missed in the first pass because the search was scoped to docker/, package.json and .github/workflows/: - .devcontainer/Dockerfile still built on oven/bun:1.3.13-alpine - PI_BUN_VERSION in apps/sim/scripts/pi-sandbox-packages.ts was still 1.3.13, despite being documented as mirroring the root packageManager field, so Pi sandbox images would have kept installing the Bun release that cannot load the Next 16.3.0 server runtime. Fixed surgically rather than with a repo-wide replace: "1.3.13" also appears inside SVG path data in apps/sim/components/icons.tsx and apps/docs/components/icons.tsx, which a blind sed would have corrupted.
1 parent 8940833 commit 856fe0f

15 files changed

Lines changed: 18 additions & 18 deletions

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM oven/bun:1.3.13-alpine
1+
FROM oven/bun:1.3.14-alpine
22

33
# Install necessary packages for development
44
RUN apk add --no-cache \

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
- name: Setup Bun
227227
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
228228
with:
229-
bun-version: 1.3.13
229+
bun-version: 1.3.14
230230

231231
- name: Cache Bun dependencies
232232
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
@@ -652,7 +652,7 @@ jobs:
652652
- name: Setup Bun
653653
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
654654
with:
655-
bun-version: 1.3.13
655+
bun-version: 1.3.14
656656

657657
- name: Install dependencies
658658
run: bun install --frozen-lockfile --ignore-scripts

.github/workflows/desktop-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Bun
3131
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
3232
with:
33-
bun-version: 1.3.13
33+
bun-version: 1.3.14
3434

3535
- name: Install dependencies
3636
run: bun install --frozen-lockfile
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup Bun
6767
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
6868
with:
69-
bun-version: 1.3.13
69+
bun-version: 1.3.14
7070

7171
- name: Setup Node
7272
uses: actions/setup-node@v4

.github/workflows/desktop-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Bun
5858
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
5959
with:
60-
bun-version: 1.3.13
60+
bun-version: 1.3.14
6161

6262
- name: Setup Node
6363
uses: actions/setup-node@v4

.github/workflows/docs-embeddings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Bun
2323
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2424
with:
25-
bun-version: 1.3.13
25+
bun-version: 1.3.14
2626

2727
- name: Setup Node
2828
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6

.github/workflows/helm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Bun
3636
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
3737
with:
38-
bun-version: 1.3.13
38+
bun-version: 1.3.14
3939

4040
# Docker Compose and Kubernetes must run the same background jobs on the
4141
# same schedules; this fails the build if the two drift apart. The script

.github/workflows/migrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Bun
3535
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
3636
with:
37-
bun-version: 1.3.13
37+
bun-version: 1.3.14
3838

3939
- name: Cache Bun dependencies
4040
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5

.github/workflows/publish-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2222
with:
23-
bun-version: 1.3.13
23+
bun-version: 1.3.14
2424

2525
- name: Setup Node.js for npm publishing
2626
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6

.github/workflows/publish-ts-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2222
with:
23-
bun-version: 1.3.13
23+
bun-version: 1.3.14
2424

2525
- name: Setup Node.js for npm publishing
2626
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6

.github/workflows/test-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Bun
2121
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2222
with:
23-
bun-version: 1.3.13
23+
bun-version: 1.3.14
2424

2525
- name: Setup Node
2626
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
@@ -251,7 +251,7 @@ jobs:
251251
- name: Setup Bun
252252
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
253253
with:
254-
bun-version: 1.3.13
254+
bun-version: 1.3.14
255255

256256
- name: Setup Node
257257
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6

0 commit comments

Comments
 (0)