ci: register the R2 cache census in the test execution registry

Merged
TE
2mo ago
+4-0

main is red on guards / workflow-guard-tests / preflight right now:

- tests/test_ci_r2_cache_census.py: test exists but has no execution registry entry

That check is unconditional — it does not depend on --base-sha — so it fails on every pull request regardless of what the pull request touched. The test arrived with #13670 and passes (13 tests, OK); only its registry entry is missing.

ci-guards.yml runs it in the ci group, which is Linux, so it takes the linux-guard lane. Inserted in alphabetical position within the manifest's sorted tail, beside test_ci_r2_artifact.py.

Python test execution registry valid: 221 tests
(legacy=61, linux-guard=99, macos-cli-no-socket=48,
 macos-cli-no-socket-post-fish=11, macos-shell=1, macos-shell-fish=1)

Worth noticing

This is the second time today the registry has gone stale within about an hour of being repaired — #13710 added nine missing entries, and this one appeared after it merged.

The asymmetry looks structural. The rule that a newly added test may not enter the legacy lane requires --base-sha and therefore only evaluates on a pull request. The rule that a test is registered at all evaluates everywhere, and turns main red the moment an unregistered test lands. So the cheap failure mode — forgetting an entry — is the one that escapes to main and blocks everybody else's pull requests until someone notices.

Since a linux-guard entry is now valid exactly when some workflow runs the test, that entry is derivable from the workflows rather than asserted alongside them. Generating it, or defaulting to it, would remove this class of breakage entirely. Not attempted here — unbreaking main should not wait on a design change.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Fixes the CI preflight failure on main by registering the R2 cache census test in the test execution registry.

tests/test_ci_r2_cache_census.py had no entry, so the unconditional "test exists but has no execution registry entry" check failed on every pull request regardless of what it touched. The test runs in the ci group on Linux, so it's now mapped to the linux-guard lane in tests/test-execution.toml.

This is the second registry staleness today; the deeper fix (deriving entries from ci-guards.yml instead of hand-maintaining them) is left for a follow-up so unbreaking main isn't blocked on a design change.

Summary by CodeRabbit

  • Tests
    • Added the cache census test to the Linux guard test execution lane.