You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a74c1af
Browse filesBrowse the repository at this point in the historyBrowse files
PG-2353: Auto-prune superseded AMIs after each promote (#4213)
- After each prod promote the workflow prunes that (os, os_major, arch)
combo with scripts/prune-superseded.sh, using the same pin floor as
just prune-superseded: the combo's pin in vars/moleculeEnvPPG.groovy
on master and every newer AMI survive, older ones are deregistered
with their snapshots
- The script refuses to prune blind: a describe failure, a pins file
whose 12 entries do not each parse exactly once, a pin missing from
the candidates, a non-production role, or a just-promoted AMI still
not the newest visible match after a bounded wait all abort
- Images pinned by any combo or named by an open refresh PR are never
pruned, an apply run needs the pins file named explicitly and exits
non-zero on any failed deregister or snapshot error (skipped and
missing snapshots are benign)
- The workflow prune step runs for prod bakes only, fetches master's
pins and every open refresh PR's pins at prune time, stops when the
PR listing fails, and fails the leg instead of continue-on-error so
the notify job pages
- _deregister uses --delete-associated-snapshots and exits non-zero on
a snapshot error, _prune-by-filter and prune-stale count failed
deregisters instead of stopping at the first, prune-stale describes
once and skips demoted *superseded* AMIs
- The Session Manager plugin is pinned to a versioned URL with a
SHA256 check, and a smoke packer init failure keeps the candidate
- The smoke template validates os_major and arch
0 commit comments