Repository navigation
fix(metrics): fail server startup waits as soon as the server exits - #46978
Conversation
The server benchmark waited up to five minutes for HTTP and then for server-runtime.json even when the server process had already died, and reported only "never recorded its runtime state" with whatever stderr it had. Both waits now race the child's exit and fail at once with its exit code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The metrics harness now stops waiting when its server exits during startup and reports exit details with captured stderr. The change is limited to benchmark failure handling and retains existing cleanup. You can add or adjust custom eligibility rules. Learn more. |
The server benchmark (
scripts/metrics/server/server-metrics.ts) waited up to five minutes for/to answer and then up to five more forserver-runtime.json, even after the server process had died. On Windows today, B (6043feb8203) crashed natively about 1 s after it started answering HTTP (0xC0000374/0xC0000409). Thevp.exenode shim turns that into exit code 9 or 116. Each crash showed up asthe rest scenario failed: server never recorded its runtime state:, with only the inspector banner on stderr, after a 5-minute wait. That crash is tracked separately.Both startup waits now race the child's exit. When the server exits, the run fails immediately and reports the exit code and stderr.
Evidence (cups,
run --quick --only rest --checkout <fake>where the fakeapps/server/src/bin.tsexits):server exited (code 9) before it answered:after 2 s (before: ~5 minserver never answered)server exited (code 116) before it recorded its runtime state:after 3 s (before: ~5 minserver never recorded its runtime state)vp run check:changedpasses.Opus 5.5 via Claude Code (daily perf audit)
🤖 Generated with Claude Code