The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci: version the required check so CI greens from before a new required job stop counting
Teknium3f524a2459ef
diff --git a/.coderabbit.yaml b/.coderabbit.yamlindex d327e5befc6..c6d5e1cc43a 100644--- a/.coderabbit.yaml+++ b/.coderabbit.yaml@@ -2,7 +2,7 @@## Auto-review is DISABLED repo-wide: the app was enabled at the org level on# 2026-08-14 and immediately began reviewing every opened PR. This repo's-# merge gate is CI ("All required checks pass") plus maintainer review —+# merge gate is CI ("All required checks pass (v2)") plus maintainer review —# CodeRabbit reviews carry no merge weight (protect-main ruleset requires# 0 approving reviews), so auto-firing on the full PR firehose adds comment# noise without gating value.diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yamlindex cc5df3238e9..9e801a5284c 100644--- a/.github/workflows/ci.yaml+++ b/.github/workflows/ci.yaml@@ -303,11 +303,19 @@ jobs:## Branch protection should require ONLY this check.#+ # The check name carries a version. The ruleset requires a check NAME, and a+ # green check run recorded on a PR head stays valid forever, so a PR whose+ # last CI predates a new required job still merges on that old green (32+ # PRs merged without the code-health ratchet that way). When the required+ # set gains a job every open PR must pass, bump the version here and in the+ # protect-main ruleset in the same rollout: older greens then no longer+ # count, and each PR needs one fresh CI run before it can merge.+ ## Outputs ``needs-json`` — a compact ``{job_name: result}`` dict — so# the live comment poller can list failed jobs in the PR comment.# ─────────────────────────────────────────────────────────────────────all-checks-pass:- name: All required checks pass+ name: All required checks pass (v2)needs:- detect- testsdiff --git a/scripts/ci/live_comment.py b/scripts/ci/live_comment.pyindex b98a703b471..d659ae18879 100644--- a/scripts/ci/live_comment.py+++ b/scripts/ci/live_comment.py@@ -79,6 +79,7 @@ _INFRA_JOBS = frozenset({"CI review comment (results)","CI review comment (live)","All required checks pass",+ "All required checks pass (v2)","Detect affected areas",})diff --git a/tests/ci/test_live_comment.py b/tests/ci/test_live_comment.pyindex f4540e0544f..83ca9c4d7ee 100644--- a/tests/ci/test_live_comment.py+++ b/tests/ci/test_live_comment.py@@ -137,6 +137,17 @@ def test_poller_never_watches_its_own_workflow():assert own_name not in watched+def test_the_merge_gate_never_shows_as_a_job_in_the_comment():+ """The gate's display name is versioned (bumped to void pre-change greens);+ every rename must reach the infra list, or the comment lists the gate as a job."""+ yaml = pytest.importorskip("hermes_yaml")+ root = Path(__file__).resolve().parents[2]+ ci = yaml.safe_load((root / ".github/workflows/ci.yaml").read_text(encoding="utf-8"))+ gate = ci["jobs"]["all-checks-pass"]["name"]+ completed, pending, _ = classify_jobs([{"name": gate, "status": "completed", "conclusion": "success"}])+ assert (completed, pending) == ({}, [])++# ─── runs_all_completed ───────────────────────────────────────────────