Repository navigation
fix(ci-gate): grace when any job lost its runner - #25
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes a bug in #24's runner-loss grace that showed up on its first live run (pay pre-prod, 2026-11-11 07:17Z).
support-api testsshards were spot-killed: the jobs failed with no failed step.support / support-apiaggregator (needs:the shards,if: always()) then failed with a real failed step.RUNNER_LOSS_JQrequired every failed job to have no failed step, so anyneeds-based aggregator defeats the grace.The grace now applies when any failed or cancelled job has a non-empty step list with no failed step. The re-run automation re-runs all failed jobs of such a run, so a genuine failure that coincides with a runner loss fails again on the next attempt. The cost is at most 10 minutes.
Test Plan
scripts/test-ci-gate.sh: 24 passed.scripts/test-ssm-deploy.py: 75 passed, including the live scenario (3 lost shards plus a failed aggregator); the regression was reproduced before the fix.actionlint, ShellCheck🤖 Generated with Claude Code
https://claude.ai/code/session_012KwNzh1Tp9wjEpuc7YgjBk