Repository navigation
fix(ci): stop PR-body-only checks from failing Release Eligibility on main - #11598
Conversation
… 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
fd8f1ed to
ad1edc2
Compare
|
Independent re-verification before merge, plus a second occurrence that shows this is not desktop-specific:
Replayed the canonical post-merge lane locally against the wedged commit
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
|
|
Merging with
That is the identical set, character for character, that main already fails at This diff is Leaving it open would keep the release train wedged on every future merge that carries an approved 🤖 automated by hourly watchdog — tested and merged |
Problem
No desktop candidate cut for ~9 hours (v0.12.172 at 17:16Z, five desktop merges since), with hourly
desktop_auto_releaseruns failing:Release Eligibility— a required exact-SHA check for the release planner — runs the canonical post-merge lane with--skip-pr-body-checksand an empty body. That flag excludes only checks declaringrequires_pr_body. Two checks consume{pr_body_file}without declaring it:product-file-line-count-ratchetfailure-class-guard-artifact-ratchetSo any merge that legitimately carried a
Line-Count-Exceptionfails Release Eligibility onmain— permanently, since a push has no authoritative PR body. #11596 grewOmiMarkdown.swift1636 → 1643 with an approved exception; main went red and the train wedged behind it.Fix
Declare
requires_pr_body: trueon both checks (the manifest header already states this rule: "Checks that consume PR metadata declarerequires_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
run_checks.py --lane ci --base 68e869c900 --head 9f87c2f24b --skip-pr-body-checks --pr-body-file <empty>→ 18 checks pass, where CI reportedFAIL product-file-line-count-ratchet.test_run_checks.py: 45 passed, including the newtest_every_pr_body_consuming_check_is_excluded_from_post_merge_runs. (One unrelatedDeferredMarkerTestsfailure is pre-existing — reproduced on cleanmainwith 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.