Skip to content

fix(ci-gate): grace when any job lost its runner - #25

Merged
Kartik4152 merged 1 commit into
mainfrom
fix/ci-gate-any-runner-loss
Nov 11, 2026
Merged

Kartik4152 merged 1 commit into
mainfrom
fix/ci-gate-any-runner-loss

Conversation

@Kartik4152

Copy link
Copy Markdown
Contributor

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).

  • Three support-api tests shards were spot-killed: the jobs failed with no failed step.
  • The support / support-api aggregator (needs: the shards, if: always()) then failed with a real failed step.
  • RUNNER_LOSS_JQ required every failed job to have no failed step, so any needs-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

Co-Authored-By: Codex <noreply@openai.com>
@Kartik4152
Kartik4152 merged commit 23cc157 into main Nov 11, 2026
2 checks passed
@Kartik4152
Kartik4152 deleted the fix/ci-gate-any-runner-loss branch November 11, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant