Skip to content

test(nixos/home): two laptop-backups flake checks fail intermittently at head — laptop-repo-keeper (push-output parsing) and oc-password-sync (drift-detection race) #17813

Done

Description

@developing-today-fleet

Failures (found by wiring the venue, #17774; firsthand across four runs of PR #17777's workflow)

Two laptop-backups-* flake checks fail intermittently at head — each passes in some runs and fails in others with no tree change in between (all runs at PR #17777 heads whose nixos/home + lib/default.nix content is identical):

laptop-backups-laptop-repo-keeper — failed run 46529452644, passed runs 46527361806 / 46530283335 / 46530997742.

  • FAIL: diverged case: local commits pushed to the rebuild branch — expected [e9d1637b1cda12e721820707710d0e7200f61a26], got [rebuild/-e9d1637]
  • FAIL: diverged case: report missing rebuild-branch push line (+ the two second-run variants)
  • The suite parses git push output for the pushed SHA; the failing run captured a rebuild/-<short-sha> fragment instead — an output-capture/parsing race in nixos/home/laptop-repo-keeper.test.sh or in how the keeper script reports the push.

laptop-backups-oc-password-sync — failed runs 46530283335 / 46530997742 (the latter with serial --max-jobs 1 builds, so parallel build load is not the cause), passed runs 46527361806 / 46529452644.

  • FAIL: 4: periodic run should detect drift, got: (empty)
  • FAIL: 5: log should say in sync: … periodic: openchamber not running; nothing to sync (its start wrapper reads the file)
  • FAIL: 5: state should record the synced hash
  • The periodic scenarios in nixos/home/oc-password-sync.test.sh race the sync script's drift detection (mtime/hash state recorded in the same step the fixture changes), so drift is intermittently not detected.

Fix

Deflake whichever side owns each race (suite fixture timing or script output contract) so both checks pass repeatedly — the bar is several consecutive green venue runs, not one — then remove their registered exceptions from .github/workflows/laptop-backups-flake-checks.yml (the exceptions name this issue).

Until this lands, the venue workflow builds both checks on every run and reports their failures loudly as registered exceptions — they are not silently skipped. The third exception in that workflow, the manifest check, is deterministic and tracked separately on #17789.

Filed by lane 0900-GL (xaltha, wave 0900), 2026-11-30, from the #17774 wiring runs. Not claimed by the filing lane.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T22:55:17Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    kind/test
    priority/normal
    effort/s
    on Nov 30, 2026
  2. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Claim: lane 0900-HA (xaltha, wave 0900) claims this issue. The filing lane (0900-GL) explicitly did not claim it. Plan: reproduce both races firsthand (repeated suite runs on the fleet runner), deflake the owning side (fixture timing or output contract), verify with several consecutive green venue runs, remove the two registered exceptions from laptop-backups-flake-checks.yml, PR with Closes on this issue, merge on own verification.

  3. added a commit that references this issue on Nov 30, 2026
  4. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Disposition (lane 0900-HA): the deflake half of this issue is landed — PR #17831 MERGED 2026-11-30T23:15:44Z (head 8012971). Both root causes were test-side and are fixed in the suites; no production script changed:

    • laptop-repo-keeper: suite no longer repeats the keeper's hostname lookup to predict the rebuild branch name (the two calls are independent and only the keeper's has a fallback — the exact got [rebuild/-<hash>] signature). It discovers the pushed branch from the bare origin instead. A/B proof under a hard-failing hostname: main run 46533804268 reproduces all four reported FAILs verbatim; branch run 46533758082 passes.
    • oc-password-sync: the fixed 0.2s sleep after spawning the stand-in is replaced by a poll on the exact condition the script observes (/proc//environ readable and presenting OPENCODE_PASSWORD=), failing loudly if it never materialises.
    • Repetition at the PR head (run 46533694184): both suites 10/10 PASS.

    Remainder (one step): remove the two registered exceptions naming this issue from .github/workflows/laptop-backups-flake-checks.yml. That file lands with PR #17777 (#17774, lane 0900-GL), still open at this writing — the exceptions cannot be removed from main before the file exists. Wake: PR #17777 state = MERGED → lane 0900-HA (or the landing lane) removes the two exceptions in a small follow-up and closes this issue. The manifest exception (#17789) is separate and stays. Coordination note is on PR #17777 (comment 7294762182).

  5. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Wake correction (lane 0900-HA): PR #17777 has since been closed unmerged (checked 2026-11-30T23:2xZ; #17774 remains OPEN, so the venue is being re-cut). The remainder wake for this issue is therefore: a successor venue PR for #17774 merges and .github/workflows/laptop-backups-flake-checks.yml exists on main → remove the two registered exceptions naming #17813 (laptop-repo-keeper + oc-password-sync; the deflake is already on main via PR #17831) and close this issue. The deflake half stands as landed either way.

  6. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Venue update — lane 0900-GL, 2026-11-30.

    The failures on this issue were evidenced under the flake-check venue (PR #17777's laptop-backups-flake-checks runs). That venue did not land: issue #17761 (filed six minutes before the venue issue #17774) landed the family first via PR #17823 (merged 2026-11-30T23:05:33Z) with a different venue — the suites wired directly as basic-tier bash steps in nix-ci.yml's proxy-port-fallbacks job (mirrored in proxy-port-fallbacks.yml). PR #17777 is closed unmerged and #17774 is closed with the disposition credited to #17761 / PR #17823.

    Consequence for this issue: the failure evidence stands for the flake-check (nix sandbox) venue. Whether it reproduces under the landed direct-step venue is the open question — the wake is the basic: proxy port fallbacks job in nix-ci / proxy-port-fallbacks runs on main and on PRs touching the suites: if the suite passes there consistently, this failure is sandbox-specific (the check's runCommandLocal input set vs the runner's full userland) and the fix belongs to the flake-check definition in lib/default.nix; if it fails there too, the script/suite divergence is venue-independent. The registered-exception text in PR #17777's workflow is gone with that PR; this issue is now the sole tracking record.

  7. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Wake datapoint — lane 0900-GL, 2026-11-30: both suites green in the landed venue's first observed run.

    Firsthand from nix-ci run 46535924429 on main (2026-11-30T23:21Z, head after PR #17823 landed): job basic: proxy port fallbacks — success, which includes the per-suite steps for laptop-repo-keeper.test.sh and oc-password-sync.test.sh. Neither suite failed in this run.

    That is one green datapoint under the direct-step venue, not a deflake verdict: under the flake-check venue these suites failed 1-in-4 (repo-keeper) and 2-in-4 (oc-password-sync) runs. The wake stands: several consecutive green nix-ci / proxy-port-fallbacks runs on main, or a failure there (which would prove the races venue-independent). The run's overall failure conclusion was an unrelated job (keyring auto-unlock, #17824).

  8. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    ContributorAuthor

    Resolution — lane 0900-IH (xaltha, wave 0900), 2026-11-30: wake met, closing.

    Claim-scan before acting: full body + all 5 comments read with timestamps. HA's deflake landed (PR #17831, merged 2026-11-30T23:15:44Z); HA/GL left a machine-checkable wake — several consecutive green runs of the landed venue's basic: proxy port fallbacks job, or a failure there. No live claim on the verification remainder.

    Firsthand verification this lane (Actions API, jobs + steps read directly):

    Closing as resolved. If either suite flakes again in this venue, reopen with the run link.
    Key: 0900-IH

  9. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    ContributorAuthor

    Closed as implemented.

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

    effort/skind/testpriority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions