Repository navigation
test(desktop): record how the cert-trust warm-up child ended - #8631
Conversation
Windows 13/14 of dev batch 43343080374 failed the real-store warm-up with a bare "gave no answer within 25000ms": the runner folds every child failure into unknown, so the log could not tell a late spawn from a kill at the deadline or a PowerShell error. Earlier batches warmed in 1.4-1.6 s. The warm-up now hands the runner a recording exec around the same execFile call (same script, arguments and deadline) and puts spawn latency, elapsed time, exit code, signal, kill flag and stderr tail in the failure message, and logs the timings on success. The single-attempt, fail-closed contract and the product runner are unchanged. A Linux case checks the recorder against a child that rejects PowerShell's arguments.
|
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 11 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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
Maintainer judgment (dev integration, MAINTAINERS.md maintainer-integration exception): merging without a second maintainer approval, as part of the DEV-RED repair for dev batch run 43343080374 (windows 13/14).
|
Summary
Windows 13/14 of the dev batch (run 43343080374) failed the
beforeAllwarm-up oftests/clients/desktop-compatibility-trust.test.ts: "real CurrentUser Root inspection gave no answer within 25000ms". The warm-up comes from #7598, and #8605's 14-shard layout first ran with this batch. Two investigations found no cause in the log. The runner (createPowerShellCertificateTrustRunner) folds every child failure intounknown, so the log can't tell a spawn that never started from a kill at the deadline or a PowerShell error. Earlier dev batches warmed this graph in 1.4–1.6 s and read in about 0.4 s, and the relevant files did not change between those runs and this one.Raising the deadline or adding a retry would contradict the warm-up's documented fail-closed policy without a proven cause, so this PR does neither. The next occurrence will name its stage instead. The warm-up hands the runner a recording
execthat wraps the sameexecFilecall: same script, arguments and deadline, observing only. The failure message now carries spawn latency, elapsed time, exit code, signal, the kill flag and the stderr tail, and a successful warm-up logs its timings. A Linux test checks the recorder against a child that rejects PowerShell's arguments. Product code is unchanged.Verification
bun test tests/clients/desktop-compatibility-trust.test.ts: 8 pass, 2 skip (the Windows-only real-store cases), 0 fail.bun run typecheck: exit 0.Checklist