Repository navigation
test(wsl): report the warm and cold startup gates in the lane receipt - #35761
Conversation
[Low impact] The PR appears safe to merge. SummaryAdds separate warm and cold startup results to the WSL lane receipt.
No actionable issues found. Review was based on source inspection; the real WSL lane was not run. Reviews (2) · Last reviewed commit: "test(wsl): report the warm and cold star..." · Reviewed by Greptile |
|
STATUS: lane run 40831471637 at 54b901a is green on all three distros. It measures main plus #35690, #35708, #35718 and #35710. Every figure below is from n=5 runs per family; p90 is the slowest of the five. Warm start, the gate: an app relaunch or reconnect with the distro running, to first terminal output. Target is 2.5 s p50.
Cold start: a distro restart to first output. Target is 3.0 s p50.
Round trips per cold restart, medians: pre-launch went 15 → 7 and post-readiness 4 → 2, compared with #35591's run 40803604529. Warm connects make 8 pre-launch round trips and launch nothing. Pre-launch check time fell from 400 → 297 ms on ubuntu, 311 → 250 on debian and 370 → 304 on fedora. That is within noise of the ~100 ms the removed round trips should save. What dominates cold start now:
|
Warm start (an app relaunch or reconnect with the distro and orcad running) to first terminal output is the flag-on gate at 2.5 s p50; cold start (distro restart) is tracked against 3.0 s p50. Five warm reconnects follow the cold runs, and the receipt reports n, p50 and p90 of first output, ensure, create and send-to-output for each, with the runs.
54b901a to
fe8784a
Compare
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
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 |
ELI5
The team picked two startup targets for the WSL host:
The WSL speed test only measured the second. Now it measures both, five times each per distro, and writes the median and the slowest-of-five-ish (p90) into its receipt.
What Changed
This PR is stacked on #35690, so review only the last commit. It will retarget to main once #35690 merges.
receipt.startupGate.warmandreceipt.startupGate.coldeach report:n, the target, and whether the p50 meets it;Why
The warm gate is the one users hit on every app launch. Tracking it next to cold start keeps the 2.5 s gate honest about what it measures. The lane is test-only, so the extra five reconnects (a few seconds each) cost nothing in the product.
Flag-off: test-only; nothing changes in the app.
User-risk: none.
Linked Issue
N/A (internal performance gate).
Visual Proof
N/A: test-only.
Testing
pnpm tc,pnpm run typecheck:ci, the changed-code quality gate, anti-slop oxlint and oxlint all pass. The lane test is skipped locally because it needs a real WSL2 distro; its run on this PR reports the warm and cold gates per family.Review
Agent skill upstream boundary
Notes
Test-only.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)