GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests · Issue #5952 · developing-today/code

ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests #5952

New issue
Copy link
New issue
Copy link
Closed
#8516
Closed
ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests#5952
#8516
Copy link
Assignees
dezren39
Labels
app/cargo-target-janitorPackage/app: cargo-target-janitor (infra/ in this repo)kind/ciCI/CD pipelines, workflows, and build automationpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/fixhas a fix task queuedtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Finding

infra/cargo-target-janitor/tests/test_cargo_target_janitor.py (13 tests) is run by no workflow, justfile recipe, or flake check — the same gap class as #5942/#5945/#5946/#5951, for a destructive tool.

The suite pins the janitor's deletion-safety rules: claimed-task targets are protected (:37), open-PR targets are protected (:52), recent/unmapped targets are never candidates (:66), adhoc targets are protected during any fleet build (:100), hardlinked artifacts are counted once (:159), and the default mode logs a plan without deleting (:183). The janitor itself runs hourly in production via infra/cargo-target-janitor/systemd/cargo-target-janitor.timer → cargo-target-janitor.service (ExecStart=... cargo-target-janitor --apply) — the timer runs the deleter, never its tests.

Evidence (verified this run, laptop primary @ d82a48a)

  • grep -rn "cargo-target-janitor|cargo_target_janitor" .github/workflows/ .github/scripts/ justfile scripts/ infra/ (excluding the package's own directory) → zero references.
  • README:69 documents only a manual run: python3 ~/git/code/infra/cargo-target-janitor/tests/test_cargo_target_janitor.py.
  • The suite passes today, run by hand on the laptop: python3 -m unittest discover -s infra/cargo-target-janitor/tests → Ran 13 tests, OK (0.015s, offline).
  • Distinct from closed cargo-target-janitor: owner_changed tests never run — defined after unittest.main(), outside the test class #5710: that issue fixed two owner_changed tests defined after unittest.main() so they never ran at all (now :191/:205, inside JanitorTests); this issue is that the now-complete suite is wired into no CI, so a future regression in the protection rules surfaces as wrongly deleted build targets.

Why it matters

The janitor deletes cargo target directories with --apply on an hourly timer. Its protection rules are the only thing standing between a fleet build in progress and the deletion of its target dir (or a claimed task's / open PR's build cache). Those rules currently have zero automated regression signal.

Acceptance criteria

  • A CI step (a new small workflow or an existing infra-tests workflow, following .github/ci-policy.md) runs infra/cargo-target-janitor/tests/test_cargo_target_janitor.py and fails when a test fails (no continue-on-error).
  • The wiring names the test file/discovery directory explicitly so a green run cannot be a silently skipped suite.
  • The full suite (13 tests) passes under the new wiring on a Linux runner.
  • No behaviour change to bin/cargo_target_janitor.py.

Activity

Next
  1. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1619

  3. dezren39
    added
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/cargo-target-janitorPackage/app: cargo-target-janitor (infra/ in this repo)
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-a, Lane A)
    • Session / ID: new-issue-creator-code-a run 2026-11-04 22:35 CST
    • Found via: filed this run
    • Task: Filed this CI-coverage finding: infra/cargo-target-janitor's 13-test suite (deletion-safety rules for the hourly --apply janitor) is run by no workflow — verified passing by hand on the laptop primary @ d82a48a, zero references in workflows/scripts/justfile. Distinct from closed cargo-target-janitor: owner_changed tests never run — defined after unittest.main(), outside the test class #5710 (dead tests inside the file, now fixed).
    • Expectation: effort s — a queue triage packet is enqueued; done looks like a CI step running the suite with failure propagation.
    • Links: packet hidden_files/packet-5952-triage.json (goal workspace)
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-e
    • Session / ID: task 9857
    • Found via: queue claim
    • Task: Triage ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests #5952 — execution-lane assignment returned opencode; handing to the opencode claimant, which launches the bound session. This lane did no verification work on the task.
    • Expectation: the claimant's bound session triages ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests #5952 (verify the cargo-target-janitor suite is run by no workflow and passes, then route the wiring fix).
    • Links: task 9857 (queue repo-health-code-pilot)
  7. 314 remaining items

    Load more actions
  8. dezren39
    added
    status/in-progressQueue worker lifecycle state
    on Nov 11, 2026
  9. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Picked up: OpenChamber scheduled lane claimed queue task 9868. Revalidating current ownership and CI coverage before making changes.

  10. developing-today
    added
    status:in-review
    on Nov 11, 2026
  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 11, 2026
  12. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Parked: Queue task 9868 is waiting for CI on #8516. The janitor suite passed locally (35 tests). Resume by reviewing the remote diff and checks, then merge if verified.

  13. dezren39
    closed this as completedin #8516on Nov 11, 2026
  14. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 11, 2026
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — PR #8516 merged (task 9868, lane code-b)

    • Agent: queue worker (repo-worker-code), lane code-b; task 9868 for issue ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests #5952 (ci(cargo-target-janitor): run deletion-safety suite in CI).
    • Outcome: PR ci: run cargo target janitor safety tests #8516 squash-merged 2026-11-11T12:04:44Z, merge commit 48697c1; issue ci(cargo-target-janitor): test_cargo_target_janitor.py (13 tests, deletion-safety rules) run by no workflow — hourly timer runs the deleter, never its tests #5952 closed by the merge. The PR adds .github/workflows/cargo-target-janitor.yml plus the test-suite-registry and ci-policy rows, so PRs/main changes touching the janitor run its deletion-safety suite.
    • Verification (this shift, laptop): the branch had drifted from main and the merge commit could not be created cleanly, so this lane rebased it onto current main in a fresh worktree (single conflict in .github/ci-policy.md: main's updated id row kept, the janitor row inserted above it; registry merged cleanly), force-with-lease pushed the rebased head 36d42a5, and re-ran the suite at the rebased head: python3 infra/cargo-target-janitor/tests/test_cargo_target_janitor.py — 35 tests, OK (also 35/35 OK at the pre-rebase head 75f3088). Rebased diff vs main is exactly the 3 intended files (+43/-4).
    • CI: every check on the pre-rebase head was cancelled by the repo-wide runner stall (durations ~3h49m; the janitor job itself shows conclusion cancelled, started 04:06Z completed 07:55Z) — no test failure is recorded against this PR. Per the standing rule (CI runs on main only; merge when verified), the merge proceeded on local verification.
    • Codex gate: Codex review on 75f3088 completed with has_any_findings: false — no findings to disposition. The rebase changed no janitor code (docs/registry/workflow only, conflict resolution in ci-policy.md).
  16. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    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

  • @dezren39
    dezren39

Labels

app/cargo-target-janitorPackage/app: cargo-target-janitor (infra/ in this repo)kind/ciCI/CD pipelines, workflows, and build automationpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus:donetask/fixhas a fix task queuedtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.