Repository navigation
fix(ci): run the release-process guard self-suite in the check manifest (#10351) - #11253
Conversation
…st (#10351) The 94-test self-suite for `.github/scripts/check-release-process-guards.py` was registered in no lane: it is absent from `.github/checks-manifest.yaml` and from every workflow, so its failures accumulated silently (#10351 reported 9 red tests on main). The guard command itself runs, but nothing proves the guard still rejects what it exists to reject. Register `desktop-release-process-guard-tests` in the manifest (local + ci) and add `scripts/run-release-process-guard-tests.sh`, a sibling of the existing `run-release-process-guards.sh` that resolves the same canonical backend interpreter (syncing locked deps when missing) and runs the suite under its locked pytest. Verified: - `bash scripts/run-release-process-guard-tests.sh` -> 94 passed, exit 0 (cold path also exercised: it synced backend/.venv from pylock.macos.toml first, then ran green). - Fault injection: stubbed `check_codemagic_release_publishers` to return `[]` -> 67 failed, 27 passed. The registered command executes real assertions and fails on a guard regression; restored and re-ran green. - `python .github/scripts/run_checks.py --lane local --list` selects the new check for this diff and `check-manifest-contract` validates the entry. - The 9 failures named in #10351 are already fixed on main (856ad94); this PR closes the other half of that issue by making the suite non-orphaned. Failure-Class: FC-nonexecuting-verification-command
There was a problem hiding this comment.
1 issue found across 2 files
Confidence score: 4/5
- In
.github/checks-manifest.yaml, thedesktop-release-process-guard-testsentry is missingscripts/dev-harness/_resolve_python.shas a trigger, so edits to that sourced dependency may not rerunscripts/run-release-process-guard-tests.shand regressions could slip through CI undetected—add that script to the manifest triggers (or include sourced-file trigger coverage) to de-risk it.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/checks-manifest.yaml">
<violation number="1" location=".github/checks-manifest.yaml:71">
P2: The new `desktop-release-process-guard-tests` manifest entry does not list `scripts/dev-harness/_resolve_python.sh` as a trigger, even though its runner (`scripts/run-release-process-guard-tests.sh`) sources that file and uses `dev_harness_canonical_python` to locate the `backend/.venv` interpreter before executing the 94-test suite. The sibling `desktop-release-process-guards` check does trigger on that file, so a change that breaks interpreter resolution would re-run the guard command but still leave the self-suite unexecuted — exactly the silent-absence class this PR is meant to close. Consider adding `scripts/dev-harness/_resolve_python.sh` (and likely `backend/scripts/sync-python-deps.sh`, which the runner also invokes on the cold path) to the check's triggers so routing stays consistent with the sibling guard.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| reason: "SCA-174: qualification must check out the exact release tag inside its isolated source directory; the guard and its focused behavioral test run on every relevant diff" | ||
| - id: desktop-release-process-guard-tests | ||
| command: ["bash", "scripts/run-release-process-guard-tests.sh"] | ||
| triggers: [".github/scripts/check-release-process-guards.py", ".github/scripts/test_check_release_process_guards.py", ".github/scripts/git_bash.py", "codemagic.yaml", ".github/scripts/fixtures/codemagic_workflow_contract/**", "scripts/run-release-process-guard-tests.sh", ".github/checks-manifest.yaml"] |
There was a problem hiding this comment.
P2: The new desktop-release-process-guard-tests manifest entry does not list scripts/dev-harness/_resolve_python.sh as a trigger, even though its runner (scripts/run-release-process-guard-tests.sh) sources that file and uses dev_harness_canonical_python to locate the backend/.venv interpreter before executing the 94-test suite. The sibling desktop-release-process-guards check does trigger on that file, so a change that breaks interpreter resolution would re-run the guard command but still leave the self-suite unexecuted — exactly the silent-absence class this PR is meant to close. Consider adding scripts/dev-harness/_resolve_python.sh (and likely backend/scripts/sync-python-deps.sh, which the runner also invokes on the cold path) to the check's triggers so routing stays consistent with the sibling guard.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/checks-manifest.yaml, line 71:
<comment>The new `desktop-release-process-guard-tests` manifest entry does not list `scripts/dev-harness/_resolve_python.sh` as a trigger, even though its runner (`scripts/run-release-process-guard-tests.sh`) sources that file and uses `dev_harness_canonical_python` to locate the `backend/.venv` interpreter before executing the 94-test suite. The sibling `desktop-release-process-guards` check does trigger on that file, so a change that breaks interpreter resolution would re-run the guard command but still leave the self-suite unexecuted — exactly the silent-absence class this PR is meant to close. Consider adding `scripts/dev-harness/_resolve_python.sh` (and likely `backend/scripts/sync-python-deps.sh`, which the runner also invokes on the cold path) to the check's triggers so routing stays consistent with the sibling guard.</comment>
<file context>
@@ -66,6 +66,11 @@ checks:
reason: "SCA-174: qualification must check out the exact release tag inside its isolated source directory; the guard and its focused behavioral test run on every relevant diff"
+ - id: desktop-release-process-guard-tests
+ command: ["bash", "scripts/run-release-process-guard-tests.sh"]
+ triggers: [".github/scripts/check-release-process-guards.py", ".github/scripts/test_check_release_process_guards.py", ".github/scripts/git_bash.py", "codemagic.yaml", ".github/scripts/fixtures/codemagic_workflow_contract/**", "scripts/run-release-process-guard-tests.sh", ".github/checks-manifest.yaml"]
+ lanes: ["local", "ci"]
+ reason: "#10351: the 94-test self-suite behind the release-process guard ran in no lane, so guard regressions accumulated silently until the suite itself was red on main"
</file context>
| triggers: [".github/scripts/check-release-process-guards.py", ".github/scripts/test_check_release_process_guards.py", ".github/scripts/git_bash.py", "codemagic.yaml", ".github/scripts/fixtures/codemagic_workflow_contract/**", "scripts/run-release-process-guard-tests.sh", ".github/checks-manifest.yaml"] | |
| + triggers: [".github/scripts/check-release-process-guards.py", ".github/scripts/test_check_release_process_guards.py", ".github/scripts/git_bash.py", "codemagic.yaml", ".github/scripts/fixtures/codemagic_workflow_contract/**", "scripts/run-release-process-guard-tests.sh", "scripts/dev-harness/_resolve_python.sh", "backend/scripts/sync-python-deps.sh", ".github/checks-manifest.yaml"] |
Bug
.github/scripts/test_check_release_process_guards.py— the 94-test self-suite for the release-process guard — is registered in no lane: it appears in neither.github/checks-manifest.yamlnor any workflow. Only the guard command itself (scripts/run-release-process-guards.sh) runs in CI, so nothing proves the guard still rejects what it exists to reject. Failures accumulated silently until #10351 found 9 red tests sitting on main.Root cause
The guard was wired into the manifest; its behavioral self-suite was not. A verification command that never executes reports success by absence —
FC-nonexecuting-verification-command.Fix
scripts/run-release-process-guard-tests.sh— sibling of the existingrun-release-process-guards.sh. Resolves the same canonical backend interpreter (syncing locked deps whenbackend/.venvis missing) and runs the suite under the repo's locked pytest..github/checks-manifest.yaml— registerdesktop-release-process-guard-testsonlocal+ci, triggered by the guard, its suite,git_bash.py,codemagic.yaml, the codemagic contract fixtures, the runner, and the manifest itself.No workflow YAML change: the manifest is the routing authority (per
AGENTS.md, "Register new checks in.github/checks-manifest.yamlwith bothlocalandcilanes").What I tested
bash scripts/run-release-process-guard-tests.sh→ 94 passed, exit 0. Cold path exercised too: with nobackend/.venvit synced frompylock.macos.tomlfirst, then ran green.check_codemagic_release_publishers()toreturn []→ 67 failed, 27 passed, non-zero exit. Restored the guard → 94 passed again.python .github/scripts/run_checks.py --lane ci --base origin/main --head HEAD→ the new check is SELECTED for this diff and passes, alongsidecheck-manifest-contract(validates the new entry),diff-hygiene,architecture-guardrails,product-invariants,failure-class-protocol,desktop-changelog-data,deferred-work-markers,lifecycle-headers,version-prefixed-filenames.856ad94538); this PR closes the other half of that issue — the suite is no longer orphaned.Product invariants
None —
product-invariantsreports no locked invariants require naming for these paths.Failure-Class: FC-nonexecuting-verification-command
🤖 automated by hourly watchdog — tested and merged