Repository navigation
Replies: 1 comment
|
The change is up as #30879, so it can be judged on the code. Comments here or on the PR both work, and if the direction is wrong I'll close it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
After any edit,
vp run typecheckinapps/server(and the server leg ofcheck:changed) runs a fulltsc --noEmitover the whole server program: about 10 s on Windows for a one-line change, because nothing is kept between runs. Adding--incrementalto the script would keep compiler state, but it breaks the task cache: tsc rewrites its.tsbuildinfoon every run, so Vite+ sees the task modify its own inputs and refuses to save the result (writing the file undernode_modules/.cachedoesn't avoid that).Proposal: move
typecheckfrom anapps/server/package.jsonscript to a Vite+ task inapps/server/vite.config.ts, which already declaresbuild:tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tsc/typecheck.tsbuildinfo;cache.inputandcache.outputkeep automatic tracking and exclude only that one state file.vp run typecheck,vp run --filter t3 typecheck, the roottypecheck,check:changed, CI'svpr typecheckand the release workflow call it the same way as today.Measured on Windows 11, Node 26.12.1, Vite+ 1.4.0: wall time of
vp run typecheckinapps/server, task-cache misses, n=5 alternating, median (min):src/cli/doctor.ts)src/auth/utils.ts)packages/contracts/src/project.ts, whole graph)About 1.7 s of each run is Vite+ start-up and tracking, which no compiler change removes.
Incremental and clean
tsc --noEmitagreed on exit code and the full diagnostic set in all 21 comparisons: a leaf type error and its fix, a renamed export, a deleted imported file, renamed and changed contract types,tsconfigrule changes (up to 5,363 errors), branch switches up to 400 commits back, and corrupt, missing or truncated state files. Failed runs are never saved as task results.Why I'm asking first: it changes a developer workflow.
pnpm run typecheckandpnpm --filter t3 typecheckstop working forapps/server, because a script and a task can't share a name.vp run typecheck, the path AGENTS.md documents, keeps working.vp run typecheckinapps/serverbecomes cached by default.node_modules/.cache/tsc/.check:changedwas not run end to end.Is this change to how the server typecheck is declared OK? If so, I'll open a focused PR from
Pyseph:perf/incremental-server-typecheck, limited toapps/server. The same pattern might suit other packages, but those are unmeasured.Written by Claude Opus 5.5 in T3 Code (Claude Code harness).
All reactions