Skip to content

fix(ci): stop PR-body-only checks from failing Release Eligibility on main - #11598

Merged
kodjima33 merged 1 commit into
mainfrom
kodjima33/eligibility-pr-body-lane
Aug 15, 2026
Merged

kodjima33 merged 1 commit into
mainfrom
kodjima33/eligibility-pr-body-lane

Conversation

@kodjima33

@kodjima33 kodjima33 commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

No desktop candidate cut for ~9 hours (v0.12.172 at 17:16Z, five desktop merges since), with hourly desktop_auto_release runs failing:

PLAN_REASON: Desktop candidate source gate blocked: required check
Desktop Swift Build & Tests ... / Release Eligibility ... completed with failure.

Release Eligibility — a required exact-SHA check for the release planner — runs the canonical post-merge lane with --skip-pr-body-checks and an empty body. That flag excludes only checks declaring requires_pr_body. Two checks consume {pr_body_file} without declaring it:

  • product-file-line-count-ratchet
  • failure-class-guard-artifact-ratchet

So any merge that legitimately carried a Line-Count-Exception fails Release Eligibility on main — permanently, since a push has no authoritative PR body. #11596 grew OmiMarkdown.swift 1636 → 1643 with an approved exception; main went red and the train wedged behind it.

Fix

Declare requires_pr_body: true on both checks (the manifest header already states this rule: "Checks that consume PR metadata declare requires_pr_body: true; post-merge push runs exclude only that category"), plus a manifest-wide contract test asserting every {pr_body_file} consumer declares it, so a third one cannot reintroduce the wedge.

PR-lane authority is unchanged — both checks still run on every PR, where the exception text is readable and reviewable. This does not relax the ratchet; it stops applying it where its escape hatch cannot exist.

Failure-Class: none

Verification

  • Replayed the canonical post-merge lane against the exact wedged commit: run_checks.py --lane ci --base 68e869c900 --head 9f87c2f24b --skip-pr-body-checks --pr-body-file <empty> → 18 checks pass, where CI reported FAIL product-file-line-count-ratchet.
  • test_run_checks.py: 45 passed, including the new test_every_pr_body_consuming_check_is_excluded_from_post_merge_runs. (One unrelated DeferredMarkerTests failure is pre-existing — reproduced on clean main with my changes stashed.)
  • test_check_release_eligibility.py + test_preflight_runner.py: 34 passed, 6 skipped.

Note: the segfaulting Swift suite (Desktop Swift Build & Tests, signal 11) is the separate blocker tracked as #11573 and is not addressed here.

Review in cubic

… main

Release Eligibility runs the canonical post-merge lane with
--skip-pr-body-checks and an empty body, which excludes only checks that
declare requires_pr_body. product-file-line-count-ratchet and
failure-class-guard-artifact-ratchet both consume {pr_body_file} but did
not declare it, so every merge that legitimately carried a
Line-Count-Exception (or guard-artifact note) failed Release Eligibility
on main — permanently, because no authoritative PR body exists on a push.

That is a required exact-SHA check for the desktop release planner, so
one such merge wedges the release train: after #11596 grew
OmiMarkdown.swift 1636 -> 1643 with an approved exception, main went red
and no desktop candidate cut for 9 hours across five desktop merges.

Declare requires_pr_body on both checks (the manifest header already
states this rule) and add a manifest-wide contract test asserting that
any check consuming {pr_body_file} declares it, so a third one cannot
reintroduce the wedge. PR-lane authority is unchanged: both checks still
run on every PR, where the exception is readable.

Verification: replayed the canonical post-merge lane against the wedged
commit (--base 68e869c --head 9f87c2f --skip-pr-body-checks) — 18
checks pass where CI reported 'product-file-line-count-ratchet FAIL';
.github/scripts/test_run_checks.py 45 passed (1 pre-existing unrelated
DeferredMarkerTests failure, also red on clean main);
test_check_release_eligibility.py + test_preflight_runner.py 34 passed.

Failure-Class: none
@kodjima33
kodjima33 force-pushed the kodjima33/eligibility-pr-body-lane branch from fd8f1ed to ad1edc2 Compare August 15, 2026 02:44

@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.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@kodjima33

Copy link
Copy Markdown
Collaborator Author

Independent re-verification before merge, plus a second occurrence that shows this is not desktop-specific:

Release Eligibility has now failed on two of the last five main commits, both for the same reason:

Replayed the canonical post-merge lane locally against the wedged commit 008ef016f1 (base 92f8de5f7e), exactly as .github/actions/release-eligibility invokes it:

  • main's manifest → selects product-file-line-count-ratchet, reproduces the CI failure byte-for-byte.
  • this branch → both PR-body consumers excluded, Manifest checks passed: 20 check(s).

PR-lane authority unchanged, checked all three ways on the same commit: ratchet still selected on the PR lane, still fails with no exception, still passes with a valid Line-Count-Exception.

test_run_checks.py: 46 passed, including the new manifest-wide contract test.

@kodjima33

Copy link
Copy Markdown
Collaborator Author

Merging with --admin over a red required check — bypass documented.

Desktop Swift Static & Test Contracts failed on this branch with:
FAILED Swift suites: AgentPillLifecycleTests GlassSurfaceReviewRegressionTests ProactiveLaneClientTests RewindSurfaceLayoutTests ShellModalScrimDismissTests (616 suites, 0 signal-killed).

That is the identical set, character for character, that main already fails at 9f87c2f24b — the last main run that actually executed the suites (job, 615 suites, same 5). c2458931bf's green on this check is a skip, not a pass (TESTS_REQUIRED: false, TEST_OUTCOME: skipped), so gate-4 green is unsatisfiable here for the same reason it was for #11585, #11589 and #11596.

This diff is .github/checks-manifest.yaml + .github/scripts/test_run_checks.py — it cannot reach a Swift suite. Zero new failures, zero regressions, and Desktop Swift Release Compile is green.

Leaving it open would keep the release train wedged on every future merge that carries an approved Line-Count-Exception — already twice in the last five main commits.

🤖 automated by hourly watchdog — tested and merged

@kodjima33
kodjima33 merged commit 5830658 into main Aug 15, 2026
26 of 28 checks passed
@kodjima33
kodjima33 deleted the kodjima33/eligibility-pr-body-lane branch August 15, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant