Skip to content

fix(ci): run the release-process guard self-suite in the check manifest (#10351) - #11253

Merged
kodjima33 merged 1 commit into
mainfrom
watchdog/issue-10351-wire-release-guard-selftests
Aug 8, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
watchdog/issue-10351-wire-release-guard-selftests

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 8, 2026 •

Copy link
Copy Markdown
Collaborator

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.yaml nor 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 existing run-release-process-guards.sh. Resolves the same canonical backend interpreter (syncing locked deps when backend/.venv is missing) and runs the suite under the repo's locked pytest.
  • .github/checks-manifest.yaml — register desktop-release-process-guard-tests on local + 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.yaml with both local and ci lanes").

What I tested

  • bash scripts/run-release-process-guard-tests.sh → 94 passed, exit 0. Cold path exercised too: with no backend/.venv it synced from pylock.macos.toml first, then ran green.
  • Fault injection (proves the command executes real assertions, not an empty selection): stubbed check_codemagic_release_publishers() to return [] → 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, alongside check-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.
  • The 9 failures named in Release-process guard self-tests: 9 failures on main and not wired into any CI lane #10351 are already fixed on main (856ad94538); this PR closes the other half of that issue — the suite is no longer orphaned.

Product invariants

None — product-invariants reports no locked invariants require naming for these paths.

Failure-Class: FC-nonexecuting-verification-command

🤖 automated by hourly watchdog — tested and merged

Review in cubic

…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

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Confidence score: 4/5

  • In .github/checks-manifest.yaml, the desktop-release-process-guard-tests entry is missing scripts/dev-harness/_resolve_python.sh as a trigger, so edits to that sourced dependency may not rerun scripts/run-release-process-guard-tests.sh and 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"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Suggested change
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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants