Title: 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 · GitHub
Open Graph Title: 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
X Title: 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
Description: 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...
Open Graph Description: 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 destru...
X Description: 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 destru...
Opengraph URL: https://github.com/developing-today/code/issues/5952
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"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","articleBody":"## Finding\n\n`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.\n\nThe 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.\n\n## Evidence (verified this run, laptop primary @ d82a48a3dd)\n\n- `grep -rn \"cargo-target-janitor|cargo_target_janitor\" .github/workflows/ .github/scripts/ justfile scripts/ infra/` (excluding the package's own directory) → zero references.\n- README:69 documents only a manual run: `python3 ~/git/code/infra/cargo-target-janitor/tests/test_cargo_target_janitor.py`.\n- 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).\n- Distinct from closed #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.\n\n## Why it matters\n\nThe 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.\n\n## Acceptance criteria\n\n- 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).\n- The wiring names the test file/discovery directory explicitly so a green run cannot be a silently skipped suite.\n- The full suite (13 tests) passes under the new wiring on a Linux runner.\n- No behaviour change to `bin/cargo_target_janitor.py`.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-05T04:41:14Z","url":"https://github.com/developing-today/code/issues/5952"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd95866b-91f6-84cb-2754-399d3d0699d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1FA:4E4E7:2E5574:3CF8BA:6B0616CF |
| html-safe-nonce | d1e8bc07084b895cd2ad6776f0502b026f7abeef0814b41cd557432216bfa57f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUZBOjRFNEU3OjJFNTU3NDozQ0Y4QkE6NkIwNjE2Q0YiLCJ2aXNpdG9yX2lkIjoiMTg1NzU4Nzc3NTUyMDc3MzgzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 03abf5b48a528c682acc9c252fb7edadf534eb1485e0eac06838ed3146b4959d |
| hovercard-subject-tag | issue:6216904995 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5952/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64e1017465fca3cd71218457048f3c6202376f3692f8d0741ca2842e9c5fe92a/developing-today/code/issues/5952 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64e1017465fca3cd71218457048f3c6202376f3692f8d0741ca2842e9c5fe92a/developing-today/code/issues/5952 |
| og:image:alt | 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 destru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width