Repository navigation
Retry a job whose "Run" step reported no conclusion - #115569
alexey-milovidov merged 1 commit into
Conversation
retry_infra_failures.yml classifies each failed job as infrastructure-vs-real and re-runs the workflow when all of them are infrastructure. The classifier had no arm for a "Run" step whose conclusion is null, so it scored that job a real failure; because the run-level gate requires every verdict to be true, one such job suppressed the retry for the whole run. A null conclusion means GitHub finalized the job while its main step had never reported (completed_at is also null). That is the same "no verdict produced" class the adjacent length == 0 and "skipped" arms already treat as infrastructure. A test that actually ran and failed reports conclusion="failure" with both timestamps set, so this arm cannot absorb real failures. Found on ClickHouse#114027 head 99c09b1, where AST fuzzer (amd_debug, targeted, old_compatibility) was killed mid-Run on runner i-00c834ca4e798946f, with GitHub's "The self-hosted runner lost communication with the server" annotation. That job and two others reported failure having run zero tests and published zero CIDB rows. Why the runner went away is not established: the job logs are purged and its praktika report was never uploaded, so nothing here asserts a mechanism for the death. Validated against real captured job payloads, with the jq program extracted verbatim from the file in both arms so they cannot diverge by transcription. Run 32270257975 (171 jobs, captured paginated and asserted against total_count): verdicts false/true/true -> should_rerun=false before, and true/true/true -> should_rerun=true after, with the false attributable to exactly the killed job. Over 60 recent failed pull_request.yml runs (10264 jobs, 158 failed, 0 null-Run instances) classification is identical before and after, and a 17-case matrix across the whole step-conclusion domain changes exactly one case, the intended one; "cancelled" is deliberately left alone. The state is rare: zero occurrences in those 60 runs. This also does not recover the run that prompted it, which is attempt=3 while the workflow selects .attempt == 1 by design; widening that anti-loop bound is a separate question with a different risk profile. MAX_RERUNS, the attempt gate and the 6 hour cutoff are unchanged, as is the job filter feeding the classifier. Co-Authored-By: Claude Fable 5 <[email protected]>
Internal second-model review (0 blockers, 0 majors, 3 nits, all resolved)I reviewed this change cold against the code before reading the implementation The one risk worth attacking here is that widening an infra classifier could A genuine hang does not look like this. Across 16,019 jobs including Ordinary failures are untouched. 19,281 jobs across 120 failed runs (60 The probe is not vacuous and the base arm is not a strawman. I re-fetched Two details that are load-bearing and easy to miss:
Structurally: the classifier exists in exactly one file repo-wide; 💡 Nit, noted and not blocking: no automated test guards the new arm. A Two nits I raised and then refuted myself: the linked-issue line sits inside the |
Pre-PR validation gate
Negative control (the arm that proves this is not a blanket "retry everything"): 60 recent failed |
|
Workflow [PR], commit [f919b88] Summary: ✅ AI ReviewSummaryThe PR updates Final Verdict✅ No actionable findings. |
|
cc @leshikus, could you review this? The infra-vs-real job classifier in |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. Symbol sizes
|
CI finish ledger - f919b88CI is fully finished on this head and no check failed, so the table below has no rows
Measured on the deduplicated check-run set (newest attempt per name): 173 unique One caveat for anyone re-reading the raw check list: two runs look non-green there Scope reminder from the PR body, repeated here so the green result is not Session id: cron:our-pr-ci-monitor:20260820-103000 |
4493c44
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
retry_infra_failures.ymlclassifies each failed job as infrastructure-vs-real and re-runs theworkflow when all of them are infrastructure. The classifier had no arm for a
Runstep whoseconclusionisnull, so it scored that job a real failure, and because the run-level gaterequires all verdicts true, one such job suppressed the retry for the whole run.
A null conclusion means GitHub finalized the job while its main step had never reported
(
completed_atalso null): the same "no verdict produced" class the adjacentlength == 0and"skipped"arms already treat as infrastructure. A test that actually ran and failed reportsconclusion="failure"with both timestamps set, so this arm cannot absorb real failures.Found on #114027 head
99c09b1b, whereAST fuzzer (amd_debug, targeted, old_compatibility)waskilled mid-
Run("The self-hosted runner lost communication with the server"). It and two otherjobs reported
failurehaving run zero tests and published zero CIDB rows. Why the runner wentaway is not established and this PR asserts nothing about it: the logs are purged.
Validated against real captured job payloads, the jq extracted verbatim from the file in both arms:
false true true->should_rerun=falsebefore,true true true->trueafter. Thefalseis exactly the killed job.
pull_request.ymlruns (10264 jobs, 158 failed): classification identicalbefore and after. A 17-case matrix over the whole step-conclusion domain changes exactly one
case, the intended one;
cancelledis left alone.Two limits worth stating. The state is rare: zero occurrences in those 60 runs. And this does not
recover the run that prompted it, which is
attempt=3while the workflow selects.attempt == 1by design; widening that anti-loop bound is a separate question.
MAX_RERUNS, the attempt gate andthe cutoff are unchanged.
Workflow [PR]
Sync PR [sync-upstream/pr/115569]
Version info
26.10.1.252-master(included in26.10and later)