Repository navigation
Done
Labels
Milestone
Description
Part of #554. Comes from #654: its adopt rule passed, and the maintainer ruled the swap on 2026-11-14. Related: #649, and #554 Q7.
Benchmark
| Field | Value |
|---|---|
| Metric | (1) bun run typecheck wall time, all 15 workspaces, median of 5, in seconds. (2) "bun check only" diagnostic lines, exact count. (3) CI 📝 Type Check All step time, median of 5 runs, in seconds. It is a recorded value, with no gate. |
| Before | From the #654 Measured comment, laptop Mac17,6, Bun 1.4.4, cfac48d87: (1) tsc 5.53 s, range 5.27–6.74 s, n = 5. (2) 0 in 18 configs. (3) 22 s, range 18–32 s, n = 7, 2026-11-07 to 2026-11-11. |
| After | From the 2026-11-16 Measured comment, 3d5aec2e7: (1) 0.44 s, range 0.43–0.46 s, n = 5, against a re-taken tsc before of 5.28 s, range 5.13–5.54 s. (2) 0. (3) Not read yet. |
| Condition | The #654 laptop and method: n = 5 after one discarded warm-up, /usr/bin/time -l, the 1-minute load average under 6 at each start. The swap commit SHA. |
| Pass rule | bun check exits 0 in all 18 configs. (2) stays 0. The seeded-error control fails in all 18 configs with the same TS codes as tsc. (1) is at least 2x faster than the before, median against median. |
| Guard | This gate is the only type check before a webapp deploy, because #560 skips the one in the webapp Docker build (#554 Q7). A checker that misses an error ships it. |
| Rollback | One line per typecheck script, back to tsc --noEmit. The typescript package stays installed. |
| Owner | Agent in the repo: Steps 1 to 4 and the Measured comment. The maintainer pushes. |
| Claim | "Type-checking all 15 docs.plus workspaces fell from 5.53 s to s on one laptop (median of 5)." |
Rulings (2026-11-14)
- Swap every workspace
typecheckscript, not only thecheck:cigate. One checker then runs everywhere. - Keep the
typescriptpackage. Editors,next build, the tsupdtsbuilds andtypescript-eslintstill need it.
Steps
- Clear the 12 "TS 7 change" lines first, in their own commit.
bun checkexits 1 on them today. TS 7.0.2 reports all 12 too.apps/admin-dashboard/tsconfig.json: dropbaseUrl(TS5102) and add./to the 8pathsentries (TS5090).tsc5.9.3 passes with that config (Benchmark bun check against tsc in every workspace #654).apps/hocuspocus.server/src/modules/document-conversion/domain/markdownExport.ts:34and:35: 2 TS2322 lines, from Tiptap extension types.extensions/extension-hyperlink/src/link-icons/__tests__/setupDom.ts:38: 1 TS2322 line.Element.matchesmust be a type predicate.
- Swap the 15
typecheckscripts to the command shape that Benchmark bun check against tsc in every workspace #654 Step 4 timed. Three of them also checktsconfig.test.json: extension-hyperlink, extension-indent and extension-mermaid.- apps:
admin-dashboard,hocuspocus.server,webapp - extensions:
extension-hyperlink,extension-hypermultimedia,extension-indent,extension-inline-code,extension-mermaid,extension-placeholder - packages:
document-swarm,email-templates,floating-popover,floating-tooltip,pad-url,playground - The root
typecheckscript,scripts/check-ci.ts:244and the📝 Type Checkjob inprod.docs.plus.ymlcallbun run typecheck, so they need no change.
- apps:
- Run the seeded-error control in all 18 configs. Both checkers must fail with TS2305, TS2345 and TS2741 at the same positions.
- Post a Measured comment with (1) and (2) from the laptop. Post (3) after 5 CI runs where the job ran. Record it with no gate.
Status (2026-11-16)
Steps 1 to 3 are done (d7df813b5, 3d5aec2e7), and the pass rule is met. The docs follow-up is 0cc62066a. Two items are left:
- Post (3), as a recorded value. Then close.
- The maintainer rules on
.cursor/docs/scripts-naming-convention.md:172and:205. An agent then makes the edit.
Not in this issue: AGENTS.md:113, .agents/skills/design-system/SKILL.md:48 and packages/floating-popover/src/createPopover.types.test-d.ts:2. They sit outside the swap, and none of them is broken. tsc --noEmit still works, because typescript stays installed.
Acceptance
- The 12 lines are cleared in their own commit, and
tscstill passes everywhere. - All 15 scripts are swapped, and
bun checkexits 0 in all 18 configs. - The seeded-error control passes.
- A Measured comment holds (1), (2) and (3), with the pass rule judged.
Activity
fix: clear the 12 lines that TS 7 and bun check reject
build: swap the 15 workspace type checks from tsc to bun check
HMarzban commentedon Nov 16, 2026
Measured, 2026-11-16
Laptop Mac17,6, Bun 1.4.4,
5fc138dadplus the two changes, now commitsd7df813b5(step 1) and3d5aec2e7(step 2). The #654 method, in a scratch clone: n = 5 after 1 discarded warm-up,/usr/bin/time -l, the 1-minute load average under 6 at each start. Build info present after the warm-up.tsc)bun check)bun run typecheck, 15 workspacesbun checkexit, 18 configstscandbun checkboth report 0 lines in all 18 configs. TS 7.0.2 also exits 0 in the 3 fixed configs. It was not re-run on all 12 before lines.bun check, not 0. Itsbuild:cipasses with the newtsconfig.json.bun run typecheckexits 1.Pass rule: met.
bun checkexits 0 in all 18 configs, (2) is 0, and the control passes.Claim: "Type-checking all 15 docs.plus workspaces fell from 5.28 s to 0.44 s on one laptop (median of 5), 91 % less time."
Left:
📝 Type Check Allstep, median of 5 runs, after the push. The extensionpackage.jsonchanges also start the extension suites on that push.tsc --noEmit:CONTRIBUTING.md:406,apps/admin-dashboard/README.md:34,apps/hocuspocus.server/Readme.md:73,apps/webapp/README.md:39,.cursor/docs/scripts-naming-convention.md:172and:205. Agent, in a follow-up; the naming-convention doc needs a maintainer ruling.docs: name bun fmt and bun check in the contributor and package docs
HMarzban commentedon Nov 16, 2026
Measured, 2026-11-16
Docs follow-up, commit
0cc62066a.Docs follow-up from the Left list. This is a docs-only change, so nothing was timed.
CONTRIBUTING.md, thebun run typecheckrow: nowbun check --no-scriptin each workspace.apps/admin-dashboard/README.md:34,apps/hocuspocus.server/Readme.md:73,apps/webapp/README.md:39: nowbun check --no-script. That is the exact script text.bun fmt --checkon the touched files exits 0.bun run check:agent-docsexits 0.Left:
📝 Type Check Allstep, median of 5 runs, after the push. Agent reads the runs..cursor/docs/scripts-naming-convention.md:172and:205still saytsc --noEmit. This file needs a maintainer ruling. Owner: maintainer, then an agent makes the edit.tsc --noEmit:AGENTS.md:113and.agents/skills/design-system/SKILL.md:48. Both say to verify with it beside a live dev server. That command still works, becausetypescriptstays installed. Owner: maintainer, to decide if those lines should change.packages/floating-popover/src/createPopover.types.test-d.ts:2saystsc --noEmitfails on a stale@ts-expect-error. The package tsconfig excludes*.test-d.ts, so neither checker reads the file. Owner: agent, in a separate change, after a maintainer ruling on whether to check it.docs(changelog): record the v2.3.7 work of 2026-11-16
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved).
d7df813b5and3d5aec2e7..cursor/docs/scripts-naming-convention.md:172and:205.AGENTS.md:113, the design-systemSKILL.md:48andcreatePopover.types.test-d.ts:2are out of scope. None of them is broken.HMarzban commentedon Nov 24, 2026
Measured, 2026-11-24: metric (3) CI
📝 Type Check Allstep timeQuestion. What is the CI
📝 Type Check Allstep duration across5clean runs after3d5aec2e7?Setup. GitHub-hosted
ubuntu-latestrunner, workflowprod.docs.plus.yml, job📝 Type Check, step📝 Type Check All.Method. Read step
started_atandcompleted_atfrom the GitHub Actions Jobs API on the first5clean push runs after3d5aec2e7on Bun1.4.4, plus later runs as context (n = 5primary).Result.
📝 Type Check Allwindow (UTC)4387652449506f61ee441.4.42026-11-16T13:32:16Z..13:32:18Z243931900751dcd69569b1.4.42026-11-16T18:44:58Z..18:45:00Z2439391178805aa56e1d11.4.42026-11-16T19:25:50Z..19:25:53Z34402590421528037ba771.4.42026-11-17T05:42:55Z..05:42:57Z244041325574afd06574b1.4.42026-11-17T07:47:26Z..07:47:27Z11.4.4(n = 5): median2 s, range1to3 s, down from22 s(18to32 s,n = 7before) —90 %less time.44901986374(6da3a609e, Bun1.4.4) took2 s.45132328837(e4d36ae0f, Bun1.4.5) took1 s.Verdict: Keep. Metrics (1), (2), and (3) are recorded, and the pass rule is met. Updating
.cursor/docs/scripts-naming-convention.md:172and:205stays a separate docs cleanup.Closing #794 now. No action needed.
docs: add Bun 1.4.x benchmark report