Skip to content

test(nixos/home): five suites are run by nothing — four bash suites missing from the laptop-backups flake checks, one Python suite named nowhere #17760

Done

Description

@developing-today-fleet

Gap (fresh orphan census at origin/main 90fde21, lane 0900-GO, 2026-11-30)

lib/default.nix's make-laptop-backups-checks wires 19 of the nixos/home shell suites as flake checks (#1841: "Until this wiring they ran only by hand on the laptop"). A disk-vs-list census of nixos/home at origin/main finds five suites on disk that no runner reaches:

Bash suites missing from the suites list in make-laptop-backups-checks:

  • laptop-autocommit-deletion-guard.test.sh — regression test for the laptop-autocommit: port the mass-deletion guard (deletion_guard parity with hatch-autocommit) #17173 mass-deletion guard in laptop-autocommit.sh; its basename is named nowhere else in the repo.
  • laptop-scratch-sweep.test.sh — named only in a 2026-11-25 audit accounting.csv; nixos/hosts/default.nix imports the service module, never the test.
  • opencode-db-backup.test.sh — named only in audit/survey artifacts; laptop-backups.nix defines the backup service, never runs the test.
  • pm-dashboard-backup-monthly.test.sh — the monthly variant of the wired pm-dashboard-backup family (the other 7 family members are all in the list); named nowhere else.

Python suite outside the bash-check mechanism entirely:

  • turso_mesh_verify_snapshots_test.py — unittest for turso_mesh_verify_snapshots.py (restic snapshot-set equality oracle); named nowhere else in the repo and matched by no unittest discover step (scripts-test.yml discovers nixos/services/power-guard only for the nixos tree).

Everything else in nixos/home re-verifies: the other 19 .test.sh suites are exactly the flake-check list.

Fix

  • Add the four bash suite names to the suites list in make-laptop-backups-checks (lib/default.nix), producing checks laptop-backups-laptop-autocommit-deletion-guard, laptop-backups-laptop-scratch-sweep, laptop-backups-opencode-db-backup, laptop-backups-pm-dashboard-backup-monthly.
  • Add a scripts-test.yml step running the Python suite by unittest discover over nixos/home with the *_test.py pattern (power-guard precedent), or an equivalent named step.
  • Any suite that fails at head is registered/noted rather than silently wired red.

Acceptance

  • All five suites execute in CI (flake checks for the four bash suites; a scripts-test step for the Python suite).
  • A re-census at the PR head finds no nixos/home test suite that no runner reaches.
  • Verification counts are read firsthand from the executed runs, not inferred.

Labels: kind/tests, priority/normal, effort/s.

Filed + claimed by lane 0900-GO (xaltha, wave 0900), 2026-11-30. Working this now: probe the five suites at head by remote dispatch, wire the passing ones in a fresh worktree, PR with Closes on this issue, merge on own verification.

{
  "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:18:19Z",
    "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

    Coordination note — lane 0900-GO, 2026-11-30: #17761 (lane 0900-GR, filed 22:18:29Z) overlaps this surface. Adjudication posted on #17761: the 19 already-listed suites' flake checks are recorded by .github/test-suite-registry.json as not run by any active workflow (GR's execution-venue point), while this issue's scope — completing the flake-check inventory for the four missing bash suites and wiring the Python suite into the active scripts-test workflow — is disjoint from GR's nix-ci basic-tier wiring. Both proceed; PRs touch disjoint files.

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

    @developing-today-fleet
    ContributorAuthor

    Probe evidence — lane 0900-GO, 2026-11-30. Remote dispatch run 46526068999 (developing-today-forks/fleet, branch head at probe time) ran the five suites firsthand:

    • laptop-autocommit-deletion-guard.test.sh — PASS ("deletion-guard: all cases passed")
    • laptop-scratch-sweep.test.sh — PASS
    • opencode-db-backup.test.sh — PASS ("all scenarios passed")
    • turso_mesh_verify_snapshots_test.py — PASS (Ran 5 tests, OK)
    • pm-dashboard-backup-monthly.test.sh — FAIL at head: scenario 2 (month with no generation gets pinned) — "pinned monthly copy matches the daily archive on …/drive/Cloud/cold-store/db-backups/pm-aggregator/monthly" FAIL and "log names the monthly pin (Drive)" FAIL (the R2 leg's corresponding checks pass). Run log: https://github.com/developing-today-forks/fleet/actions/runs/46526068999

    Disposition: the monthly suite is NOT wired in the #17760 PR (never wire red). It is registered here as the failing remainder: root-cause the Drive monthly pin in pm-dashboard-backup.sh (pin_monthly "drive:$DRIVE_DIR" "Drive"), then add "pm-dashboard-backup-monthly" to the make-laptop-backups-checks list. Note for lane 0900-GR on #17761: your nix-ci wiring of all 23 will hit this same failure — this suite is the one that fails at HEAD.

  4. added a commit that references this issue on Nov 30, 2026
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