ci: register the nine tests main's execution registry does not know about
scripts/ci/validate_test_execution_registry.py fails on main right now:
Python test execution registry validation failed:
- tests/test_ci_actionlint_covers_every_workflow.py: test exists but has no execution registry entry
- tests/test_ci_app_host_result_accounting.py: ...
- tests/test_ci_selective_layer_wiring.py: ...
- tests/test_ci_workflow_guards_are_wired.py: ...
- tests/test_ios_screenshot_capture_guard.py: ...
- tests/test_ios_upload_array_expansion.py: ...
- tests/test_merge_xcstrings.py: ...
- tests/test_release_homebrew_gate.py: ...
- tests/test_tui_publish_dispatch_budget.py: ...
The "test exists but has no execution registry entry" check is unconditional — it does not depend on --base-sha — so guards / workflow-guard-tests / preflight is red on every pull request regardless of what that pull request touched.
Five of the nine arrived with pull requests merged today (#13666, #13673, #13677, #13696, #13701) and four did not, so this is drift the registry is designed to catch, arriving faster than entries were added.
Resulting behavior
All nine run on a Linux runner, so all nine take the linux-guard lane:
| workflow that runs it | tests |
|---|---|
ci-guards.yml | test_ci_app_host_result_accounting, test_ci_workflow_guards_are_wired, test_ios_screenshot_capture_guard, test_ios_upload_array_expansion, test_merge_xcstrings, test_release_homebrew_gate, test_tui_publish_dispatch_budget |
testbox-broker-guard.yml | test_ci_actionlint_covers_every_workflow |
ci-artifact-transport.yml | test_ci_selective_layer_wiring |
Runners verified rather than assumed: testbox-broker-guard.yml and ci-artifact-transport.yml both declare runs-on: ${{ vars.LINUX_RUNNER || 'blacksmith-4vcpu-ubuntu-2404' }}, and test_merge_xcstrings sits in ci-guards.yml's preflight group.
test_ios_screenshot_capture_guard.py was the one with no execution path at all. It arrived with the screenshot fail-fast fix in #13675 and no workflow has ever run it. It joins release-ios beside the other iOS guards. It handles a missing ruby by printing a skip rather than failing, so a Linux lane suits it.
One validator change
The linux-guard check required the test to appear in ci-guards.yml specifically:
if lane == "linux-guard":
if path not in guard_text:
errors.append(f"{path}: linux-guard lane is not referenced by ci-guards.yml")
That rejects two of these even though they demonstrably execute on every pull request. testbox-broker-guard.yml carries no path filter on purpose — its own comment says "a path filter is exactly the thing a change that moves the guard could slip past" — and ci-artifact-transport.yml owns its own lane. Neither is a weaker execution path than ci-guards.yml; both are arguably stronger, since ci-guards.yml runs behind ci.yml's change routing.
The check now asks whether any workflow runs the test, which is the property the lane is actually asserting. It is not a loosening: an entry naming a test nothing runs is still rejected. Verified by temporarily moving tests/test_vm_scp.py to linux-guard:
- tests/test_vm_scp.py: linux-guard lane is not run by any workflow
Validation
validate_test_execution_registry.py now reports:
Python test execution registry valid: 218 tests
(legacy=81, linux-guard=76, macos-cli-no-socket=48,
macos-cli-no-socket-post-fish=11, macos-shell=1, macos-shell-fish=1)
Entries are inserted in position within the manifest's alphabetically sorted tail, so that region stays sorted; the diff is additive only and tomllib parses all 218.
Also passing: test_ci_workflow_guards_are_wired.py, test_ci_actionlint_covers_every_workflow.py, test_ci_guard_workflow_structure.py, test_ci_release_guard_structure.py, test_ci_app_host_guard_structure.py, test_ci_quality_guard_structure.py, test_ci_source_lint_guard_structure.py, test_ci_linux_guard_routing.py, test_ios_screenshot_capture_guard.py, and the two test_ci_change_areas.py cases that cover this validator and the guard Python scope. actionlint is clean across all workflows.
Noted, not done
34 of the 81 legacy entries name a test that some workflow already runs, so roughly 42% of the migration inventory has a discoverable execution path today. Promoting them is not mechanical — the lane has to say where a test runs, and several of these execute on macOS lanes rather than Linux, so mislabelling them linux-guard would make the manifest lie. That is a per-entry judgement and belongs in its own change; legacy is documented as exactly this holding pen in the meantime.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes the test execution registry validation that was failing the preflight guard on every pull request regardless of what it touched, by registering nine tests main didn't know about.
- Registers the nine tests in
tests/test-execution.tomlunder thelinux-guardlane. - Wires
test_ios_screenshot_capture_guard.pyintoci-guards.yml; it previously had no execution path at all. - The
linux-guardcheck now accepts any workflow that runs the test instead of requiringci-guards.yml, sincetestbox-broker-guard.ymlandci-artifact-transport.ymlalso run guards; entries naming tests nothing runs are still rejected.
Summary by CodeRabbit
-
Tests
- Expanded automated validation coverage for CI workflows, iOS screenshot capture, app result accounting, release checks, and publishing safeguards.
- Added nine test registrations to ensure these checks run as part of Linux validation.
- Improved workflow verification to detect tests across all configured workflows.
-
Chores
- Added a fail-fast safeguard for iOS screenshot capture in the release process.