Repository navigation
fix(pr-pipeline): read a job with missing steps as unknown in the post-merge and refire checks - #9812
Conversation
…t-merge and refire checks The jobs API can answer a completed job with an empty or cut step list. A failed job that lists no failed step now counts as a whole check in babysit_postmerge.failing_checks and red-main failingChecks, so a gitleaks-only gate no longer hides it. refire-refused reads a failed job's annotations when the token step is missing from its list. failing_suites keeps returning None for such a job; a test pins that. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ad only write-runner jobs on refire A job counted whole only because its steps were unknown no longer excuses a later failure as a baseline entry. refire-refused reads annotations only from a pr-unblock write-runner job (`<caller> / run`), never from a read-runner job that runs the model over PR content. Adds the review's regression and mutant-killing cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…main's rule The alert step's shell and jq copy of the failing-checks rule dropped a failed job whose steps were listed empty or cut short. It now calls failing-checks.mjs, which applies red-main.mjs failingChecks with the alert's job conclusions. A judged run counts an unknown-steps job whole; the baseline leaves it out, as babysit_postmerge.py's _baseline does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review of PR #9812 at 0c6a4d2. I read the full diff, the PR context, There is 1 finding (SUGGESTION), on the loosened refire gate. It is inline on critical-findings: 0 No changed file matches a trusted path ( Checked and clean
Cost: this PR spends nothing billable. |
|
claude-review reviewed No blocking or advisory findings on head 0c6a4d2. I read the full diff ( What I checked
Observation, not counted: when a write-runner job's step list is cut short, the refire path now trusts that job's annotations without the token-step name check. That is the intended trade-off. It is limited to Left undone: I did no live check against the jobs API. The PR states it did none either. |
No related issue: GitHub jobs API returning empty step lists since 2026-10-24 16:44Z
Summary
The Actions jobs API (
GET /repos/{o}/{r}/actions/runs/{id}/jobs) has been answering completed jobs withsteps: []or a cut list. In run 40113930671,kill-switchshows 0 steps andclaude-review-keyshows 3 of its usual 19 to 21. Three readers decided things fromjob.stepsand misjudged a failed job whose failed step was missing. This PR treats a failed job that lists no failed step as having unknown steps, and fails closed.Fix
babysit_postmerge.failing_checks: a failed job that lists no failed step now counts as a check of its own. Before, a job with gates and empty steps counted only through its gates, and an all-branches gate (gitleaks failed) was dropped, so a real red check could disappear. When the step list shows only the hygiene aggregator as failed, it still excuses as before.babysit_postmerge.failing_suites: unchanged; it still returns None for such a job, and a new test pins that. A fallback that reads the job log was rejected. With no step name there is no suite kind, and a log cannot show that the suite step was the only step that failed. A fallback would excuse a leg that today demotes.refire-refused.mjsrefusedFile: when a failed job's step list lacksRequest the lane tokenentirely, it now reads that job's annotations and applies the existing refusal match. A job that lists the token step as passed is still skipped. The read is bounded as before: failed jobs only, one annotation page per job, inside the existing jobs page.red-main.mjsfailingChecks(dry-run only): the same rule as the Python reader.Verification
[] != ['schedule']; red-main:[]vs['lint-repo']; refire: 0 pushes, expected 1).failing_suitesis a pin that passes before and after.pytest -q plugins/source-control/skills/babysit-prs/scripts/tests: 2879 passed.node --test .github/scripts/pr-merge/*.test.mjs: 326 passed.node --test .github/scripts/post-merge-demotion-alert/*.test.mjs: 55 passed.scripts/run-ruff.sh format|check: clean.scripts/check-affected.sh --tests: 13 passed, 1 skipped (shellcheck, no changed shell) over 9 changed files.Related
.github/scripts/maintenance-reconcile-lost-runs/**andmaintenance-audit-lane-runs/collect.mjs, which readsjob.stepsfor reporting only.🤖 Generated with Claude Code