Commit ed7f9f4
fix(ci): remove broken integ teardown safety net + map stack name to commit sha (#567)
* fix(ci): remove broken 'Ensure stack torn down' safety net from integ workflow (#566)
The if: always() backstop ran raw aws cloudformation delete-stack /
wait stack-delete-complete as the GitHub OIDC role, which has no
cloudformation:DeleteStack or DescribeStacks permission. Both calls
AccessDenied on every run; the un-guarded wait exits 255 and fails the
job even when the integ test passed and integ-runner already destroyed
the stack (e.g. run 28892156232: SUCCESS in 291s, then teardown-step
failure).
integ-runner remains the teardown path (cdk destroy on success and
failure via the CDK bootstrap roles). Stranded-stack reclaim for
cancelled/crashed runs is owned by #400 (non-blocking cleanup) and #72
(scheduled sweep).
* feat(ci): map integ stack name to commit sha (int-<sha>)
Replace the single hardcoded backgroundagent-integ stack name with a
run-unique int-<short-sha> derived from the resolved head SHA, threaded
into integ-runner via INTEG_STACK_NAME. The test falls back to a stable
backgroundagent-integ-local name so the local mise //cdk:integ path is
unchanged.
A stranded stack from a cancelled/crashed run no longer collides with or
head-of-line blocks a later run under one fixed name; the int- prefix
marks it ephemeral for the scheduled sweep (#72). Concurrency-comment
updated: run-unique names make single-concurrency a cost bound, not a
correctness requirement.
Partial pull-forward of #400's ephemeral-name ask, scoped to naming.
* feat(ci): add run-number to integ stack name (int-<sha>-<run>)
Same-commit re-runs (re-run, or dispatch + workflow_run on one SHA) now
get distinct stack names, matching #400's proposed int-{short-sha}-{run}
scheme.
* Apply suggestions from code review
Co-authored-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
---------
Co-authored-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>1 parent 092361e commit ed7f9f4
2 files changed
Lines changed: 38 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
227 | 229 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | | - | |
237 | | - | |
| 239 | + | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
244 | 252 | | |
245 | 253 | | |
246 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | | - | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
0 commit comments