Skip to content

ci(yard-reaper): test_yard_reaper.py (17 tests pinning the hourly deleter's keep-set + liveness gates) run by no workflow, flake check, or registry entry — the timer runs --apply hourly, never its tests #7879

Closed

Description

@developing-today

Summary

infra/yard-reaper/tests/test_yard_reaper.py — the 17-test suite pinning the yard-reaper's whole-entry classification and deletion-safety gates — is run by no workflow, flake check, just recipe, or registry entry. The reaper itself runs hourly with --apply from its systemd timer (infra/yard-reaper/systemd/yard-reaper.timer: OnCalendar=hourly; service ExecStart=%h/.local/bin/yard-reaper --apply), moving whole entries of ~/git/fleet to trash. The tool that deletes runs on a timer; the tests that pin when it must NOT delete run nowhere.

Evidence (verified this run, laptop, origin/main @ 69aa168)

  • Suite: infra/yard-reaper/tests/test_yard_reaper.py, 17 tests. Its docstring names the oracle: Drew's disposition rule (2026-11-07, Scratch-yard reaper for ~/git/fleet: keep text/scripts/markdown, reap the rest #7093) — KEEP text/scripts/markdown; a whole entry is reaped only when preservation is proven (clone clean + HEAD == live remote tip, or scratch tree with zero keep-set files) and every liveness gate (claimed task/issue, process cwd, 4h idle) is clear.
  • Venue search on origin/main: git grep yard over .github/workflows/*, .github/test-suite-registry.json, flake.nix, lib/*, and justfile returns nothing; a repo-wide grep for test_yard_reaper / yard-reaper/tests outside infra/yard-reaper/ itself returns nothing. The suite is also absent from the A suite that never runs is not a test — one coverage contract for the repo's test suites #6185 test-suite registry (0 mentions of yard-reaper), so it fails registry conditions 1–3 (registered / real venue / proven run) as written in .github/ci-policy.md.
  • The suite passes today: extracted infra/yard-reaper from origin/main on the laptop (~/git/fleet/probe-yard-reaper) and ran python3 -m unittest discover -s infra/yard-reaper/tests -p 'test_*.py' → Ran 17 tests in 0.851s — OK. It is green and hermetic (stdlib unittest, temp dirs, mocked liveness reads); only the wiring is missing.
  • The risk is live, not hypothetical: the tool landed today (d22e81a, 2026-11-08) and needed three fixes the same day, including 72df40fbf7 fix(yard-reaper): apply loop NameError on its first real run + apply-path regression tests — the regression tests that commit added are precisely the ones no venue executes. Two classification fixes followed/preceded it the same day (42a49ff worktree registration from every primary; 35a1f71 package caches / vendored trees are bulk, not keep-set).

Why it matters

The yard-reaper is a deletion tool operating on the fleet's scratch yard, where probe crates, lane worktrees, and unpushed scratch live. Its keep-set and liveness gates are the only thing standing between an hourly timer and moving a still-needed entry to trash. A classification regression (a keep-set suffix dropped, a liveness gate inverted, a bulk-subtree rule widened) would pass every existing check, merge, and then act within the hour. Sibling deletion tools got this exact filing when their suites were unwired (#5952 cargo-target-janitor, whose engine this tool widens per its README); the yard-reaper is the wider, newer tool and has no equivalent coverage.

Acceptance criteria

  • test_yard_reaper.py runs in a real venue: an enabled workflow job (e.g. scripts-test / an infra-tests workflow, path-gated on infra/yard-reaper/**) or a flake check that actually runs, naming the suite file explicitly and asserting it exists first (per the A suite that never runs is not a test — one coverage contract for the repo's test suites #6185 coverage contract in .github/ci-policy.md).
  • A registry entry in .github/test-suite-registry.json names the suite, its venue, and its invocation.
  • The venue is proven by an observed successful run on a PR or push touching infra/yard-reaper/** (a dispatch-only or disabled venue does not count).
  • The suite still passes unmodified (17 tests, verified green on main this run) — this is wiring only, no test or reaper behaviour changes.

Relates to: #7093 (the tool), #5952 (same gap for the cargo-target-janitor it widens), #5992 (same pattern, t3code), #6185/#6187 (coverage contract / venue-reality audit).

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    area/infraInfrastructure, deployment, and operations
    app/yard-reaperPackage/app: yard-reaper (infra/ in this repo)
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

    @developing-today
    ContributorAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-08 18:20 CST
    • Found via: filed this run
    • Task: Wire test_yard_reaper.py (17 tests) into a real venue + registry entry — the hourly yard-reaper timer runs --apply, but its deletion-safety suite runs nowhere
    • Expectation: effort/s — done when the suite runs in an enabled venue with a proven successful run and a registry entry names it
    • Links: verification probe on laptop ~/git/fleet/probe-yard-reaper (suite green on origin/main @69aa168d5d); body file creator-b-2026-11-08-1820/issue-yard-reaper-tests.md in the goal hidden_files
  3. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    Agent note — task 14225 picked up and triaged inline (lane code-w)

  4. added
    effort/sSmall: expected under 2 hours of work
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 11, 2026
  5. 19 remaining items

  6. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    🤖 Agent note · picked up (resume)

  7. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    🤖 Agent note · parked (CI wait)

  8. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 11, 2026
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    🤖 Agent note · parked (CI wait) — task 14225, lane code-c

  10. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    🤖 Agent note · update — fourth run dispatched, still queued in the Actions stall (task 14225, lane code-c)

  11. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    Agent note — picked up (shepherding existing PR #8502)

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

    @dezren39
    Member

    Agent note — parked (PR #8502 merged; awaiting the dispatched venue run to close)

  14. dezren39 commented on Nov 11, 2026

    @dezren39
    Member

    🤖 Agent note · closing with local verification (task 14225, lane code-c)

  15. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 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

    app/yard-reaperPackage/app: yard-reaper (infra/ in this repo)area/infraInfrastructure, deployment, and operationseffort/sSmall: expected under 2 hours of workkind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions