diff --git a/.github/ci-policy.md b/.github/ci-policy.md index 030cda3356..3f70e2b7cf 100644 --- a/.github/ci-policy.md +++ b/.github/ci-policy.md @@ -190,6 +190,7 @@ main-breakage rate (issues labelled `main-broken`) proves out. | atlas-search | `basic: atlas-search Rust checks` on pull requests touching `pkgs/atlas-search/**` | — | — | | deploy-flake-checks | `basic: deploy flake checks (deploy-list + deploy-list-malformed)` on `pull_request` (paths `pkgs/deploy/**`, `lib/default.nix`, the workflow itself) | full flake check in nix ci | — | | workflow-lint | `basic: workflow lint` on `pull_request` (paths `.github/workflows/**`, `.github/actions/**`) | — | — | +| cargo target janitor | `basic: cargo target janitor deletion safety` on pull requests touching `infra/cargo-target-janitor/**` or its workflow | same path-gated suite on push to main | - | | id | guard only (contract tests; matrix + full tiers are main-only) | push: guard + matrix + aggregator; schedule/manual: guard + full flake check | schedule in id-check.yml + id-e2e-nightly.yml (full flake check) | | mcpx conformance | spec-parity leg only (measured 28s exec, run 40801660942, 2026-10-29 — under the 5m fast-leg limit) | all conformance legs + records + spec-parity | — (main covers it) | | id bench | — (removed) | yes | — | diff --git a/.github/test-suite-registry.json b/.github/test-suite-registry.json index b11455eb72..2980e8708a 100644 --- a/.github/test-suite-registry.json +++ b/.github/test-suite-registry.json @@ -486,11 +486,16 @@ "paths": [ "infra/cargo-target-janitor/tests/test_cargo_target_janitor.py" ], - "invocation": "Python test; exact command not established", - "venue": null, - "status": "uncovered", + "invocation": "python3 infra/cargo-target-janitor/tests/test_cargo_target_janitor.py", + "venue": { + "workflow": ".github/workflows/cargo-target-janitor.yml", + "job_step": "test / Run deletion-safety tests", + "state": "unknown", + "dispatchable": true + }, + "status": "uncovered-in-fact", "phase2_issue": 5952, - "reason": "Hourly service runs the janitor, not its tests." + "reason": "New venue requires an observed successful Actions run and enablement audit." }, { "id": "t3code.seed-providers", diff --git a/.github/workflows/cargo-target-janitor.yml b/.github/workflows/cargo-target-janitor.yml new file mode 100644 index 0000000000..f16d93b899 --- /dev/null +++ b/.github/workflows/cargo-target-janitor.yml @@ -0,0 +1,33 @@ +name: cargo target janitor + +# CI tier policy: see .github/ci-policy.md +on: + pull_request: + paths: + - "infra/cargo-target-janitor/**" + - ".github/workflows/cargo-target-janitor.yml" + push: + branches: [main] + paths: + - "infra/cargo-target-janitor/**" + - ".github/workflows/cargo-target-janitor.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.run_id || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: "basic: cargo target janitor deletion safety" + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v7 + - name: Run deletion-safety tests + run: | + test -f infra/cargo-target-janitor/tests/test_cargo_target_janitor.py + python3 infra/cargo-target-janitor/tests/test_cargo_target_janitor.py