Repository navigation
Description
Summary
Bun moved from 1.4.0 to 1.4.4 after our upgrade in #171. Production follows the floating oven/bun:1-slim tag and runs 1.4.4. CI and production run the same Bun since #650 (2026-11-03).
This tracker reviews what 1.4.1 to 1.4.4 change for docs.plus. It fixed one regression (#651) and aligned the versions (#650). It now measures each gain before any tool swap.
Sources: the release posts for 1.4, 1.4.1, 1.4.2, 1.4.3 and 1.4.4.
A number marked vendor comes from those posts. It is not ours until a child issue measures it.
Done when: every open child is closed (#653, #657, #659, #660, #794 and #795), and #660 has the maintainer-approved report link.
Benchmark
This tracker owns no speed number. It owns one exact count, and it lists each child's metric and status. Each child ends with an exact number, or with n >= 5 and a median and min–max. Measured comments use the format under §Measured comment format. #796 holds the one copy of each before, after and claim number.
| Child | Metric | Status |
|---|---|---|
| #649 (this tracker) | Bun surfaces in workflows not pinned to the production version (1.4.4). Exact count, from grep -n "bun-version" .github/workflows/*.yml .github/actions/setup-bun/action.yml. |
Done: 0 at 288d4d260 (Measured, 2026-11-16) |
| #650 | CI Bun against production Bun | Closed 2026-11-03 |
| #651 | Largest WebSocket message the collab server accepts | Closed 2026-11-03 |
| #652 | Production memory, CPU and latency on Bun 1.4.4 | Closed 2026-11-10, no Bun claim |
| #658 | Workspaces in the typecheck gate |
Closed 2026-11-03 |
| #653 | Version-intake paths that refuse a release under 72 h, out of 3 | Open: one step left, the next Dependabot run |
| #654 | bun check against tsc |
Closed 2026-11-14, adopted. The swap is #794 |
| #655 | bun fmt against Prettier |
Closed 2026-11-14, adopted. The swap is #795 |
| #794 | Type-check wall time, 15 workspaces, s | Open: the CI read (3) is left |
| #795 | Format gate wall time, s | Open: the CI read (3) is left |
| #657 | Literal ~ folders; bun test wall time, s |
Open: Step 1 is left (maintainer) |
| #660 | Report numbers that link to a Measured comment | Open, last |
As of 2026-11-11 (HEAD 0b302b2)
| Surface | Bun | Source |
|---|---|---|
| Production | 1.4.4 | deploy logs: 1.4.0 until 2026-09-02, 1.4.2 from 2026-09-07, 1.4.3 from 2026-10-10, 1.4.4 from 2026-10-23 |
Docker base oven/bun:1-slim |
1.4.4 | image created 2026-10-22 |
CI setup-bun default |
1.4.4 | .github/actions/setup-bun/action.yml:13 |
CI lockstep-guard.yml |
1.4.4 | .github/workflows/lockstep-guard.yml:35 |
| Stage workflow | latest |
.github/workflows/stage.docs.plus.yml:219 |
bun-types |
^1.4.4 |
root package.json |
engines.bun |
>=1.4.0 |
root package.json |
On 2026-10-31 CI setup-bun and lockstep-guard.yml pinned 1.4.1, and bun-types was ^1.4.2. #650 aligned them on 2026-11-03.
Children, in landing order
- Measure the Bun 1.4.x memory, CPU and latency gains in production #652 — Measure the Bun 1.4.4 gains in production. Read-only. Closed 2026-11-10: memory numbers only, no Bun before and after.
- Cap collaboration WebSocket messages at 16 MiB again on Bun 1.4.4 #651 — Cap collaboration WebSocket messages at 16 MiB again. It fixes a regression in the current runtime. One change with Run CI on Bun 1.4.4, the version production ships #650. (v2.3.0) Closed 2026-11-03.
- Run CI on Bun 1.4.4, the version production ships #650 — Run CI on Bun 1.4.4. Same change as Cap collaboration WebSocket messages at 16 MiB again on Bun 1.4.4 #651. (v2.3.0) Closed 2026-11-03.
- Clean up the hocuspocus bunfig.toml #657 — Clean up the hocuspocus
bunfig.toml. Closed 2026-11-24. - Hold new package versions for 3 days before bun install takes them #653 — Hold new package versions for 3 days. Unblocked since Run CI on Bun 1.4.4, the version production ships #650 closed. Closed 2026-11-24.
- Benchmark bun check against tsc in every workspace #654 — Benchmark
bun checkagainsttsc. The first benchmark (ruling 3). Closed 2026-11-14, adopted. - Benchmark bun fmt against Prettier #655 — Benchmark
bun fmtagainst Prettier. After Benchmark bun check against tsc in every workspace #654. Closed 2026-11-14, adopted. - Swap the 15 workspace type checks from tsc to bun check #794 — Swap the 15 workspace type checks from
tsctobun check. From Benchmark bun check against tsc in every workspace #654. Closed 2026-11-24. - Swap the format gate from Prettier to bun fmt #795 — Swap the format gate from Prettier to
bun fmt. From Benchmark bun fmt against Prettier #655. Closed 2026-11-24. - Publish one Bun 1.4.x benchmark report for the marketing team #660 — Publish one benchmark report for the marketing team. After Benchmark bun check against tsc in every workspace #654, Benchmark bun fmt against Prettier #655 and Clean up the hocuspocus bunfig.toml #657; Measure the Bun 1.4.x memory, CPU and latency gains in production #652 and Measure CI/CD time to live after the v2.3 work: 1090 s median before #569 are in. Closed 2026-11-24.
Found during the review:
- Bound how much one connection can grow a collaboration document #659 — Bound how much one connection can grow a collaboration document. It follows Cap collaboration WebSocket messages at 16 MiB again on Bun 1.4.4 #651. (v2.3.7, Phase 1 closed 2026-11-24; Phase 2 split to Enforce per-connection sync byte budget and close over-budget connections #836)
- Type-check packages/email-templates and packages/pad-url in the typecheck gate #658 — Type-check
packages/email-templatesandpackages/pad-urlin the gate. It changed the workspace count to 15 before Benchmark bun check against tsc in every workspace #654. (v2.3.0) Closed 2026-11-03.
Each benchmark has a kill rule. A child that fails its rule closes with a Measured comment and no code change.
Measured comment format
Every benchmark child posts one comment headed Measured, <date>. Use the release-product skill §Measured comment format (.agents/skills/release-product/SKILL.md, committed in 5f6bd6eec). The same fields in every comment let #660 build one report from them.
Not proposed
Each was rejected before, or does not fit, for the reason given.
Bun.SQLand its COPY streams: Prisma stays, and Upgrade Prisma to 7.10.1 and make document types accountable #198 owns thebytearead cost.Bun.redis: BullMQ needs ioredis.Bun.markdown: it emits HTML, not Tiptap JSON, and does not sanitise.Bun.Image: Next owns sharp.Bun.cron: our containers have no OS scheduler.process.on("memoryPressure"): it needsCAP_SYS_RESOURCE, and Grafana already pages at 90%.bun --hotfor the backend:src/lib/queue.tsopens Redis at module scope.bun run --parallelin place ofconcurrently: it loses stream names and kill semantics.bun test --parallel: a 3,117 ms suite leaves no gain worth a change (closed as Re-measure bun test --parallel now that Bun 1.4.1 fixed coverage #656).bun dedupe --checkandbun prune --production: rejected in Upgrade Bun to 1.4 and measure test plus backend wins #171.- HTTP/2 and HTTP/3 in
Bun.serve: Traefik terminates TLS, so the gain stops at the edge. bun build --compilefor the backend: a long-running server gains little from a faster start.- A rewrite of link metadata: ruled on RFC: Desktop hyperlink hovercard #242.
Checked, no effect: the 1.4.1 TLS change verifies the URL host, not a custom Host header, and no code sends a custom Host to fetch(). #650 holds the evidence for the 1.4.4 install and glob changes.
Related
- [Tracking] Faster, change-aware CI/CD pipeline #554 CI/CD speed. Its child Measure CI/CD time to live after the v2.3 work: 1090 s median before #569 owns every CI timing metric.
- [Tracking] Make docs.plus pages load faster: web bundle and page speed #571 speed and cost. Measure the Bun 1.4.x memory, CPU and latency gains in production #652 hands it real RSS numbers.
- [Tracking] Test gaps and backend performance from the 2026-10-23 review #575 backend performance. Upgrade Prisma to 7.10.1 and make document types accountable #198 Prisma.
- Upgrade Bun to 1.4 and measure test plus backend wins #171 the 1.4.0 upgrade (closed).
Rulings
The Maintainer ruling, 2026-10-31 comment below records the four rulings. The children cite them by number. The Security label now covers #653 only, since #651 closed.
Activity
HMarzban commentedon Oct 31, 2026
Maintainer ruling, 2026-10-31
The maintainer answered four questions from the review. Answers are quoted as given.
Securityissue. Answer: "yes do it". Verified the same day, read-only: every production app container runs Bun 1.4.4. Filed as Cap collaboration WebSocket messages at 16 MiB again on Bun 1.4.4 #651.minimumReleaseAgewindow. Answer: "3d". The maintainer accepted the recommended rule that security bumps are excluded by name. Filed as Hold new package versions for 3 days before bun install takes them #653.Open decisions stay in each child issue, each with a recommended answer.
[-][Tracking] Use Bun 1.4.x well: fix the frame cap, align CI, then benchmark[/-][+][Tracking] Use Bun 1.4.x well: fix the message cap, align CI, then benchmark[/+]HMarzban commentedon Oct 31, 2026
Review and refinement, 2026-10-31
Three independent reviews (backend and security, DevOps, build tooling) checked every child against the code, the release notes and production deploy logs. The bodies now carry the corrected text. The changes that matter:
MAX_WS_MESSAGE_BYTES. The checks now use a named counter label, a raw socket and a run without the cap that must fail. On Bun 1.4.1 the1009check fails; it does not pass. The start log line now states each replica's cap.259200seconds, not"3d". On Bun 1.4.1,"3d"makes everybuncommand fail withInvalid Bunfig. Exact-version excludes need Bun 1.4.4, so it lands after Run CI on Bun 1.4.4, the version production ships #650. Ruling 4's 3-day window is unchanged.tsc5.9.3, not 6. The roottsconfig.jsonis not in the gate. Diagnostics now run before timing, with incremental builds and Next types held fixed..prettierrc.json, and the count now covers only files Prettier also checks.~folder is proven, and the dead[install]keys are proven. The steps are now one change with a probe before and after.The children's order above is updated. The rulings comment stays as posted; #656 closed, see above.
HMarzban commentedon Oct 31, 2026
Maintainer ruling update, 2026-10-31
The maintainer answered three open questions. Answers are quoted as given.
Measuredcomment format for every benchmark.[-][Tracking] Use Bun 1.4.x well: fix the message cap, align CI, then benchmark[/-][+][Tracking] Bun 1.4.x: release-age guard, bunfig cleanup, and measured bun check, bun fmt and bun test numbers[/+]HMarzban commentedon Nov 14, 2026
Moved to v2.3.7 at the v2.3.6 release audit. #654 and #655 closed with an adopt ruling, and their swaps are #794 and #795. Children #653, #657, #659 and #660 are still open.
HMarzban commentedon Nov 16, 2026
Measured, 2026-11-16: the tracker count
Bun surfaces in workflows not pinned to the production version (1.4.4). Exact count, from the tracker's own command at
288d4d260:0b302b222)288d4d260)setup-bundefaultaction.yml:13)lockstep-guardlockstep-guard.yml:35)latestlatestThe other
bun-versionlines inaction.yml(34, 60, 62) pass the input through or build a cache key; they set no version.Left: close the children #653, #657, #659 and #660, then this tracker. #794 and #795 are built and pushed; their CI step reads follow.
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved).
288d4d260.5a414c426.5f6bd6eeccommitted the same format.HMarzban commentedon Nov 17, 2026
Measured format. The house format now lives in release-product §Measured comment format, with the §Content-safety checklist beside it. Use that section for every Measured comment (#762, ruling A).
HMarzban commentedon Nov 24, 2026
Closed, 2026-11-24: all Bun 1.4.x children closed
Every child issue under this tracker is now closed, and all workflow Bun surfaces are pinned to the production version (
0unpinned surfaces as of the 2026-11-16 read; bumped in sync to Bun1.4.5in #806):docs/benchmarks/bun-1.4.md,d3b55382b)Closing #649.