Repository navigation
test(id): legible named-deadline cross-VM readiness probes in playwright-e2e VM test (#1374) - #12581
Merged
Merged
Conversation
…ith server state (#1374) The four client-side curl probes from PR #4667 called wait_until_succeeds with no timeout argument, so a dead probe burned the test driver implicit 900s default — most of this test 1200s globalTimeout — and failed with the driver bare "action timed out" carrying none of the server state (the 40457980141 failure was diagnosed from unrelated pkarr/DNS noise in the same window). Each probe is now a named, bounded wait in the #4913 legibility pattern: the target and deadline are logged before waiting, the deadline is a named 120s (server-side unit/port waits have already passed; the probe only covers cross-VM bring-up skew, observed at ~53s), and a timeout raises with the server unit systemctl status and journal tail attached.
|
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 44 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. |
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#1374's titled defect — "no server readiness wait" — is already fixed on main: the 2026-11-02 triage corrected the diagnosis (the unretried hop was the client VM's cross-VM probe, not the server side) and PR #4667 merged bounded
wait_until_succeedsretries for all four probes. The owner park was lifted by a decision record on the issue (no owner decision was outstanding; the park's release condition was infrastructure — the nightly's 90-minute job timeout, removed today by PR #12526).What remained in the criterion-1 shape is legibility, and that is this PR. The four probes called
wait_until_succeedswith no named timeout: a dead probe burned the test driver's implicit 900 s default — most of this test's 1200 sglobalTimeout— and failed with the driver's bareaction timed out after N seconds, carrying none of the server's state. (Nightly 40457980141's failure had to be diagnosed from pkarr/DNS noise in the same window for exactly this reason.)Following the #4913 pattern on the sibling integration test (named waits, per-wait deadlines, logged wait targets), each cross-VM probe in
pkgs/id/nix/tests/playwright-e2e-test.nixis now a named, bounded wait:[id-playwright-e2e] waiting on <url> (probe from <client>, unit <unit> on <server>); deadline 120s);READINESS_PROBE_DEADLINE_SECONDS = 120— the server-side unit/port waits have already passed at that point, so a probe only covers cross-VM bring-up skew (the observed refusal fired ~53 s after VM start); one dead probe now costs 120 s, not 900 s;systemctl statusandjournalctl -n 50attached, captured viaMachine.execute(..., check_return=False).One file changed (+69/−4). The retry behavior itself is unchanged from #4667.
Evidence
No NixOS VM build was run for this change (sandbox CPU is not a VM venue; the full check is the nightly's job — run 45026136879 is in flight on current main, and the first post-merge nightly exercises this shape end to end). Bounded evidence, in the form of the #1372 guard exercise:
wait_until_succeeds(command, timeout=900)overretry()raising a bareaction timed out after {timeout} seconds;execute()returning(rc, output),(-1, output)withcheck_return=False). Results:Exception: action timed out after 900 seconds; 900 virtual seconds burned on the first probe; zero state captured from the server machine.timeout=120explicitly, suite proceeds.AssertionErrorat exactly 120 virtual seconds naming the target and deadline, with the server unit's status and journal text in the failure body.All exercise assertions passed; the extraction also proves the emitted testScript is valid Python in both versions.
nix-instantiate --parseon the edited file, run on the laptop under~/tools/fleet-build-lockat this branch's commit — OK. The added lines contain no${(no new nix interpolation surface).Merge Danger
Low. Test-only change to one VM test's testScript; no production code, no module options, no other check touched. The one behavioral tightening is the probe deadline (900 s implicit → 120 s named): if a future environment shows cross-VM skew beyond 120 s after server-side port waits pass, a probe could fail where the old default would eventually have succeeded — the failure will now say so legibly, with the server's state attached, and the constant is one line to raise.
What remains on #1374
Criterion 2 — a completed full
nix flake checkrun's verdict onnixos-playwright-e2e(suite reached and run; pass/fail about the tests). Run 45026136879 is in flight; its verdict, or the first post-merge nightly's, gets recorded on #1374 and #1075, and closes the issue if the suite runs.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.