Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe changes add a composite action that installs and verifies a pinned Bun typechecker on Linux ARM64. The project runner can select Bun or Node for project checks. The PR workflow updates TypeScript cache keys and restore tiers, with related test updates. A manually dispatched workflow and benchmark script compare TypeScript and Bun using restored, cold, and warm cache states, validate type-error detection, and produce JSON and Markdown reports. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established in the reviewed cache-policy and test changes; proceed subject to the normal CI gate. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 10 functions across 5 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
6f66c253-3295-4b08-8304-709a94135f3a
📒 Files selected for processing (9)
.github/actions/setup-bun-typecheck/action.yml.github/workflows/pr.yml.github/workflows/typecheck-benchmark.ymlconfig/.bun-typecheck-versionconfig/scripts/ci-cache-warmup-workflow.test.mjsconfig/scripts/ci-typecheck-benchmark.mjsconfig/scripts/pr-workflow-parallelism.test.mjsconfig/scripts/run-typecheck-projects-in-parallel.mjsconfig/scripts/run-typecheck-projects-in-parallel.test.mjs
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
ELI5
Keep fast TypeScript typechecks and reuse the latest successful result after each PR push. The measured ARM CI comparison did not justify switching to Bun.
What Changed
The old cache key was shared by every commit while a PR's base stayed unchanged. GitHub cache entries are immutable, so later successful checks could not publish their updated dependency graph. The new key includes the PR and head commit, restores the newest result for that PR first, then falls back to compatible base/shared caches. Changed files and their dependencies still get checked.
Add an isolated, fixed Bun checker and a repeatable manual CI comparison through the existing full-project scheduler. Production and local commands continue using incremental TypeScript; tests and localization retain their existing Bun version. The comparison is manual so ordinary PRs do not pay for repeated benchmarks.
Why
The actual ARM Linux runner showed a much larger benefit from usable incremental state than from Bun. This replaces the earlier 30–45 second CI saving estimated from local runs.
Paired ARM CI measurements and logs: two runs per compiler per condition, alternating order, identical source and cache bytes restored before each run. These are whole scheduler timings, excluding setup/cache transfer. Bun installation added three seconds. TypeScript was 7.0.2 and Bun was 1.4.3-canary.1+bd599f5af; the fixed npm artifact is recorded in
config/.bun-typecheck-version. Runner: four ARM64 cores, 15.57 GiB RAM, Node 24.21.0.Normal preflight observations were 87 seconds initially, 70 seconds after publishing per-head entries, 79 seconds while an exact legacy fallback still won, and 80 seconds after selecting the latest PR state. The checked source trees changed between runs as
mainadvanced, so these differences are not controlled speedup measurements. The paired table above isolates the compiler/cache comparison.Final preflight logs verify that the prefix-only policy restored the preceding PR head's cache (
aef796b1539d) and successfully saved the current head (f3ed052a8064), about 2 MiB. An intermediate exact legacy base fallback kept winning in CI despite a newer PR cache; the final restore list contains only prefixes.Warm results apply to reusable source state; broad source changes and cold runs remain slower. This does not claim every PR becomes a seven-second typecheck.
Linked Issue
N/A — maintainer-requested performance improvement.
Visual Proof
N/A — CI tooling only, with no application UI or interaction changes.
Testing
All 53 focused scheduler, cache-workflow, sample-summary, and alternating-order tests pass locally on macOS. Formatting, lint, syntax, and workflow parsing pass. All 12 full-project checks passed in ARM CI, and both compilers rejected an invalid imported type. The initial normal CI gate and all ten unit shards passed. Final CI passed on
f3ed052a806461c98ece59141752fba048ee977d: all 32 checks succeeded, including requiredverify, all ten unit shards, static analysis/typechecking, Linux and Windows packaging, mobile bundle, Git compatibility, shell contracts, and wire compatibility. Logs verify restore of the preceding PR head and successful save of the current one. The compiler-stream review finding is fixed and its thread resolved.Review
The project list and memory admission policy are unchanged. Every project still runs after another fails. Compiler stream errors are reported after the child exits, so a failed pipe cannot crash the scheduler or admit another heavy project early; regression tests cover all three streams. The cache contains compiler state only; TypeScript validates source hashes. Cache saves happen after successful checks. Lockfile/configuration changes keep separate compatible cache prefixes.
Agent skill upstream boundary
Notes
Bun's checker requires a canary build, which is why the manual benchmark installs an immutable artifact without lifecycle scripts outside application dependencies. The production cache fix needs no new compiler. It adds one cache entry per successful PR head; normal GitHub eviction applies. Application runtimes, dependency installs, SSH execution, folder workspaces, mobile behavior, and local typecheck commands are unaffected.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)