GeezerVison is showing github.com — test(id): legible named-deadline cross-VM readiness probes in playwright-e2e VM test (#1374) by dezren39 · Pull Request #12581 · developing-today/code
Conversation
dezren39
commented
Nov 22, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
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_succeeds retries 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_succeeds with no named timeout: a dead probe burned the test driver's implicit 900 s default — most of this test's 1200 s globalTimeout — and failed with the driver's bare action 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.nix is now a named, bounded wait:
- the target, probing client, server unit and deadline are logged before waiting (
[id-playwright-e2e] waiting on <url> (probe from <client>, unit <unit> on <server>); deadline 120s);
- the deadline is a named constant,
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;
- on timeout, the failure raises with the server unit's
systemctl status and journalctl -n 50 attached, captured via Machine.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:
- Emitted testScript exercised against fake machines (sandbox, python3): the testScript was extracted verbatim from the .nix file — before (git HEAD) and after (this branch) — and exec'd against fake Machines replicating the nixpkgs driver semantics verified from the driver source (
wait_until_succeeds(command, timeout=900) over retry() raising a bare action timed out after {timeout} seconds; execute() returning (rc, output), (-1, output) with check_return=False). Results:
- Before, never-ready server: bare
Exception: action timed out after 900 seconds; 900 virtual seconds burned on the first probe; zero state captured from the server machine.
- After, server up at 30 virtual seconds: all four waits log their named target/deadline, probes pass
timeout=120 explicitly, suite proceeds.
- After, never-ready server:
AssertionError at 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 syntax:
nix-instantiate --parse on the edited file, run on the laptop under ~/tools/fleet-build-lock at 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 check run's verdict on nixos-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-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…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 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 44 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review 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: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
a4010520-92c3-4e68-91fc-95775eaee9d8
Commits
-
Reviewing files that changed from the base of the PR and between 666424e and 8dd806f.
Files selected for processing: 1
-
pkgs/id/nix/tests/playwright-e2e-test.nix
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-22T14:26:52.174316Z |
8dd806f |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 22, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|