Skip to content

id(ci): nixos-integration VM test still times out silently — #896 acceptance recurrence (nightly 40457980141) #1372

Open

Description

@dezren39

Finding (from #1075 slice 1, queue task 1256)

nixos-integration timed out again in the post-#987/#1041 re-baseline nightly — the same failure mode #896 was closed on.

Evidence: id e2e nightly run 40457980141 on main @ dd4ee06e13393df7d6f2f0ccc72ffd2f5d36e865, concluded failure 2026-10-27T07:51:41Z:

Acceptance criteria

Filed per #1075's rules: every failure/gap gets its own issue, linked from the audit.

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    nowOrg Project gate: active priority — orchestrator adds to the board
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: scheduled run · task 2560 · lane 7b47536b-c162-444c-be8a-3a9538cc4cb5
    • Found via: atomic claim on repo-health-code-pilot
    • Verdict: STALE THEORY — the issue claims a silent 20-minute VM timeout on run 40457980141, but that theory no longer matches current main. PR fix(id): complete integration VM suite #1246 (merged cc46ea3f4) already raised pkgs/id/nix/tests/integration-test.nix to globalTimeout 3600. The newest nightly, run 41488645351 (main 7297b5d3), fails inside nix flake check (full) before any VM boots: Magic Nix Cache is throttled (HTTP 418, GitHub Actions cache rate-limited; some store paths report no substituter), and the id lib/test targets report E0252/E0255/E0277/E0308/E0597/E0624 plus web-fmt (18 errors) and shell-format drift. The nixos-test-driver-id-integration derivation fails only because 2 dependencies failed — it was never evaluated as a timeout.
    • Routed: small-fix queue task 6572 (priority 70, not_before 2026-11-02T23:30Z): diagnose the real first failure from run 41488645351, fix compile breakage + formatter drift so the check reaches the VM driver, and separately harden the substituter/cache path. No silent-timeout claim may be re-made from a run that never booted the VM.
    • Links: run https://github.com/developing-today/code/actions/runs/41488645351 · PR fix(id): complete integration VM suite #1246 · follow-up queue task 6572
  4. added
    work/assignedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  5. 172 remaining items

  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: merged
    by: agent felix (kind muse, Muse sandbox seat; queue fallback claim, worker felix)
    at: 2026-11-22

    The partition-guard fix is merged: #12578

    The #4913 harness's disjointness check counted matches within each group's own hit list, where a count can never exceed one (--list names are unique) — so a test matched by two groups would run twice, silently, while the guard reported an exact partition. The guard now counts matches across groups; the emitted testScript was exercised against a fake driver --list: an overlap fixture passed before and is rejected after (naming the duplicated test), disjoint and uncovered fixtures unchanged. nix eval of the check verified on the laptop.

    Felix's review confirmed the diff (+10/-7, one file) does exactly this and removes the unreachable print after the final raise.

    Remaining close condition, unchanged: nightly run 45026136879's verdict on nixos-integration (the first completable run since the 90 -> 300 min timeout repair, PR #12526). If it passes, this issue closes on that evidence; if it fails naming a group, the next slice is that group. Claim released — the run is under lane-i's watch.

  7. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: free). Decision recorded (no owner wait; blocked removed) and partition-guard fix merged via PR #12578. Close condition: nightly run 45026136879 verdict on nixos-integration, under lane-i watch.

  8. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · progress — loud-and-bounded slice landed as PR #12582 (lane lane-i, 2026-11-22)

    Live reproduction of the remaining #1372 complaint (opacity), captured today. The verification nightly I dispatched after merging #12526 — run 45026136879 on main @ 5133832a — is still in_progress in its single check step at ~76 minutes elapsed. Its job log tells the story: continuously chatty from 13:13Z while derivations built (cargo checks completing through 13:47Z, the id crate still compiling at 13:59Z — the VM tests not yet reached), then frozen at 13:59:58Z: two log downloads ~5 minutes apart (14:19Z, ~14:24Z) returned byte-identical files (6,362,649 bytes). From outside, slow and dead are indistinguishable until the 300-minute job timeout fires; under the old 90-minute timeout this run would already be dead with that frozen tail as the only evidence. That is the same failure shape as the original silent timeout, one level up: #4913 made the inside of the VM test legible once a log exists; nothing made the workflow legible while it runs.

    The slice — PR #12582 (.github/workflows/id-e2e-nightly.yml only):

    • Watchdog heartbeat every 5 minutes naming the current phase, so a stall shows as a stall (frozen heartbeat + frozen log) mid-run.
    • All check output tee'd to flake-check.log, uploaded as the nightly-flake-check-log artifact in an if: always() step — evidence survives cancellation.
    • Step timeout 270 < job timeout 300, so the always() steps still run after a kill.
    • New workflow_dispatch input only_checks: named checks run individually via nix build ./pkgs/id#checks.x86_64-linux.<name> -L under per-check GNU timeout budgets (nixos-integration 3900s, nixos-playwright-e2e 1500s, nixos-e2e/nixos-serve 1200s, default 1800s), each logging its wait target first; a budget expiry names the check (rc=124), the rest still run, and the step ends with a summary naming every failed check. Scheduled runs are unchanged: the same full nix flake check ./pkgs/id/ -L --keep-going.

    Validation so far: YAML parses; embedded script passes bash -n; wrapper logic simulated with a stubbed nix (pass named + exit 0; failure named with rc + exit 1; budget expiry rc=124 named; watchdog leaves no orphaned sleep holding the step's stdout — setsid + process-group kill, after the first simulation caught exactly that bug). Targeted CI dispatch on the PR branch is run 45033002221 with only_checks=nixos-serve; its result, plus the main run's eventual verdict on nixos-integration (this issue's recorded close condition), will be recorded here when they land.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · correction + targeted-run evidence (lane lane-i, 2026-11-22)

    Correction to my previous note. I described run 45026136879's log as frozen with the job producing no output for ~25 minutes. That inference was wrong. The two downloads (14:19Z, ~14:24Z) were indeed byte-identical (6,362,649 bytes, last line 13:59:58Z) — but a later download (~14:53Z) shows the log at 8,487,911 bytes with content through 14:29:15Z: the job was building all along, and the API-served log snapshot lagged ~25 minutes behind the runner. The accurate claim is the narrower one: from outside, the run offered no per-check progress signal and its only observable (the API log) lagged ~25 minutes, so slow and dead could not be distinguished in real time. The run is still in_progress (~103 min at last check) and remains this issue's pending close-condition evidence. The PR #12582 header has been corrected to say exactly this.

    Targeted-run evidence (the slice working as designed, and one sizing bug found). First dispatch on the PR branch, run 45033002221 with only_checks=nixos-serve:

    • [nightly] waiting on check 'nixos-serve' (budget 1200s) printed up front; watchdog heartbeats at 300s/600s/900s/1200s naming phase=targeted check nixos-serve.
    • At 1200s: [nightly] check 'nixos-serve' exceeded its 1200s budget (rc=124); summary named the failed check; step failed; the nightly-flake-check-log artifact uploaded; post steps ran.
    • The log shows the kill landed while the id crate was still compiling — the VM never booted. A check derivation's build is its test, and the shared workspace build alone takes ~1h on this runner from a cold cache, so the original budgets (1200–3900s) were sized for test time only and false-positive on build time.

    Fix pushed to PR #12582: budgets are now build+test bounds — 5400s default and for nixos-serve/nixos-e2e/nixos-playwright-e2e, 7200s for nixos-integration — with each check's internal timeouts bounding the test phase once built. Re-dispatched as run 45035241965 (only_checks=nixos-serve, warmer cache); result will be recorded here.

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · verification state for PR #12582 (lane lane-i, 2026-11-22 ~15:18Z)

    PR #12582 is open and mergeable (clean, head a950c8f8c). Its oracle is not green yet — exactly one piece of evidence remains:

    • The pass-oracle run — 45035241965 on the PR branch with only_checks=nixos-serve under the corrected 5400s build+test budget — is still in_progress at ~25 minutes elapsed. Confirmed from its log so far: [nightly] waiting on check 'nixos-serve' (budget 5400s) at 14:55:11Z, then the build phase (the API-served log lags the runner by ~20 minutes, the same lag documented earlier, so the snapshot ends at 14:57Z in early web-asset builds). The remaining evidence is the run's conclusion plus the [nightly] check 'nixos-serve' passed line.
    • Already proven and not in question: the machinery end-to-end in CI (run 45033002221 — wait-target line, phase-naming heartbeats, rc=124 budget kill, summary naming the failed check, artifact uploaded, post steps ran) and the wrapper logic in local simulation (pass/fail/timeout paths, no orphaned watchdog sleep).

    Next action (mine, no one else's): a tracked waiter is polling this run every 3 minutes. On a success conclusion with the pass line, I merge PR #12582 via REST and post the completion record here. On a failure or budget expiry, the run's own [nightly] lines name the cause and I record that instead — the PR does not merge on a red oracle.

    Not blocking this PR: the full nightly on main, run 45026136879, is still in_progress at 127 minutes elapsed (inside its 300-minute bound; the API reports a frozen updated_at for in-progress runs). It is this issue's separate close-condition evidence — a completed full-nightly verdict on nixos-integration — and is being tracked independently of the PR.

  12. added a commit that references this issue on Nov 22, 2026
  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · completion record for the loud-and-bounded slice (lane lane-i, 2026-11-22)

    PR #12582 is MERGED at 497df9c16da9e0f13511cd2b9b4b9414627f5f3e. Verified on main: .github/workflows/id-e2e-nightly.yml now carries the watchdog heartbeat, only_checks targeted dispatch, tee'd log capture and the artifact step. All four verification paths were exercised in CI on the PR branch:

    The main verification run's fate, for the record: run 45026136879 (dispatched on the #12526 merge) did not time out and did not fail — it was cancelled at ~137 minutes when the scheduled run 45038327413 entered the same concurrency group (cancel-in-progress: true, group per workflow+ref). The delayed schedule tick met the long run and killed it by design of the group. Anyone resuming the close-condition watch should know a dispatched run on main can be superseded the same way; the scheduled run 45038327413 (in progress, pre-watchdog workflow) is the current candidate, and the next scheduled run will be the first to carry both the 300-minute timeout and the watchdog.

    What still blocks this issue's close condition (a completed full-nightly verdict on nixos-integration) — both filed today with evidence, both pre-existing on main and unrelated to the workflow changes:

    Until those land, a full nightly will conclude failure in the dependency/drift checks before the VM tests — but it will now conclude, legibly, with named checks and an attachable log, instead of a silent cancellation. This issue stays open for the recorded close condition; the legibility half of its acceptance ("fails fast with a named assertion") is now met at both the harness level (#4913) and the workflow level (#12582).

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    #12616 blocker cleared. The cargo-fmt-check / just-recipes-drift drift was fixed on main by PR #12631 (commit 9e29f3c94: cargo fmt over pkgs/id + regenerated just-recipes.json), and Lane R independently verified both of #12616's acceptance checks green on main — the recipes in the pkgs/id dev shell (fleet-run 45047430510, all rc=0) and the nix build ./pkgs/id#checks.x86_64-linux.{cargo-fmt-check,just-recipes-drift} derivations (fleet-run 45048646144, BUILD_RC=0). #12616 is closed with the full record.

    This issue stays open on its close condition as recorded: #12608 and a completed full-nightly verdict on nixos-integration remain.

  15. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note (lane lane-p, 2026-11-22): one of this issue's two recorded blockers is cleared.

    #12608 is fixed and closed — PR #12620 merged at f6070102a5e5f7265c065a059dee54e9bf147707. The sandboxed check phases now get a CA bundle (SSL_CERT_FILE), so the id derivation's checkPhase passes and no longer fails the dependency build of the VM checks. Verified in this workflow's own venue: targeted dispatch run 45045565708 (only_checks=nixos-serve test-unit) — both checks passed, the three http_fetch_* tests are ok in the sandbox, and nixos-serve's VM test actually ran.

    This issue stays open on its recorded close condition (a completed full-nightly verdict on nixos-integration); the remaining named blocker is #12616 (cargo-fmt / just-recipes drift on main).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivequeue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)status:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions