Skip to content

test(wsl): report the warm and cold startup gates in the lane receipt - #35761

Merged
nwparker merged 1 commit into
mainfrom
nwparker/wsl-lane-startup-gate
Oct 29, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/wsl-lane-startup-gate

Conversation

@nwparker

@nwparker nwparker commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​55
Prod 0 0 0 0

ELI5

The team picked two startup targets for the WSL host:

  • Opening the app (or reconnecting) while the distro is already running should show terminal output within 2.5 s at the median.
  • Restarting the distro itself should get there within 3.0 s.

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.

  • Before: the lane receipt had cold restarts only (distro terminated, then connect and print), with medians.
  • After:
    • After the cold runs, one unrecorded connect boots the distro and orcad. Then five warm connects reconnect with both still running, the way an app relaunch does.
    • receipt.startupGate.warm and receipt.startupGate.cold each report:
      • n, the target, and whether the p50 meets it;
      • p50 and p90 of first output and ensure;
      • p50 of terminal create and send-to-output;
      • the individual runs with their phase breakdown.
    • p90 is nearest-rank, so with five runs it is the slowest.
    • Warm runs skip reading orcad's startup timing line, because no orcad starts and the newest line belongs to an earlier launch.

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.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Test-only.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds separate warm and cold startup results to the WSL lane receipt.

  • The WSL lane reports separate warm and cold startup gates.

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

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

ms first output p50 / p90 ensure p50 / p90 create p50 send→output p50 meets
ubuntu-24.04 1190 / 1219 525 / 542 152 512 yes
debian-12 1124 / 1261 478 / 485 138 508 yes
fedora-41 1181 / 1289 534 / 622 142 510 yes

Cold start: a distro restart to first output. Target is 3.0 s p50.

ms first output p50 / p90 ensure p50 / p90 create p50 send→output p50 meets
ubuntu-24.04 3982 / 4176 3114 / 3387 236 529 no
debian-12 3542 / 3621 2691 / 2834 211 547 no
fedora-41 3754 / 4444 3015 / 3645 220 528 no

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:

  • orcad's own startup, 1.35–1.69 s;
  • the first exec plus distro boot, 0.47–0.61 s;
  • the shell's own send→output, about 0.53 s.

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.
@nwparker
nwparker force-pushed the nwparker/wsl-lane-startup-gate branch from 54b901a to fe8784a Compare October 29, 2026 08:40
@nwparker
nwparker changed the base branch from nwparker/wsl-connect-probe-fold to main October 29, 2026 08:40
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 301240fe-5edc-4770-9aeb-b84c5bf3b703
Commits

Reviewing files that changed from the base of the PR and between be80a9a and fe8784a.

Files selected for processing: 1
  • src/main/wsl/wsl-orcad-real-distro-idle-release-lane.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 999d599 into main Oct 29, 2026
60 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant