Repository navigation
perf(ssm-deploy): one runner per deploy, spot-safe CI gate - #24
Merged
Merged
Conversation
Allow the existing hosted image label with actionlint 1.7.12. Co-Authored-By: Codex <noreply@openai.com>
Resolve the environment and wait for CI in the deploy job before assuming the role. Keep step bounds, parent gating and per-attempt parameters intact. Co-Authored-By: Codex <noreply@openai.com>
Inspect all jobs in the newest run attempt before allowing a ten-minute runner-loss grace period. Preserve immediate failures for failed steps and the third attempt. Co-Authored-By: Codex <noreply@openai.com>
Check successful workflow runs on the initial poll and after every five further polls. Log reused evidence and fall back to SHA decisions on lookup failures. 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
resolve→ci-gate→deployeach took a fresh ephemeral runner, at about 1 min to acquire each. Measured on 13 days of Curator and Pay deploys, runner acquisition is the largest share of deploy time (Curator 4.7 of 13.9 min mean, Pay 3.3 of 12.2). The singledeployjob resolves, waits for CI, and only then assumes the deploy role, so the 7200 s session is untouched by the gate.updated_at. A failed step anywhere still fails immediately.ci-tree-reuse. When the SHA has no green CI, the gate also passes on a green run of the same CI workflow whosehead_commit.tree_idequals the SHA's tree. Pay squash merges keep the PR head's tree (13 of the last 15), so a release push can stop waiting for a fresh 10-min CI run on identical code. The log names the reused run. Any lookup error falls back to normal SHA behaviour. Defaultfalse.Compatibility
<caller job> / deploy. The reconciler handles both shapes in zkp2p/peer-infra#158, which must be applied before any caller bumps.Test Plan
python3 scripts/test-ssm-deploy.py: 73 passedbash scripts/test-ci-gate.sh: 17 passed (new cases cover the runner-loss grace, real failures, attempt 3, and tree-reuse match / mismatch / error / disabled)actionlint🤖 Generated with Claude Code
https://claude.ai/code/session_012KwNzh1Tp9wjEpuc7YgjBk