Skip to content

ami: Re-arrange some values#2239

Open
mmlb wants to merge 1 commit into
developfrom
manny/psql-1322-ami-naming-scheme-changed-unexpectedly
Open

ami: Re-arrange some values#2239
mmlb wants to merge 1 commit into
developfrom
manny/psql-1322-ami-naming-scheme-changed-unexpectedly

Conversation

@mmlb

@mmlb mmlb commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Recently created AMIs that were created by running build-ami nix package (should be all AMIs...) have the GHA run id in the name. This is a change in naming scheme for the Release AMI Nix based AMIs which customers will ultimately see. Its not too useful for them and not something that I intended to change. This also causes issues in internal tooling which should be fixed but needs a band-aid for now.

What is the new behavior?

No GHA Run ID in the AMI name, preserving naming schemed used by Release AMI Nix. Should not be an issue for other workflows since they weren't really looking at the ami name for anything.

Drop run_id from the ami name as its load bearing in supadev and is
likely to show up in front of customers (definitely from admin page),
this needs to change.

Also re-arranged the PACKER_EXECUTION_ID so that it sorts better. Having
the run_id at the front is pretty useless for sorting/searching since
each individual build gets its own run id, thus no 2 AMIs will ever have
the same runid. If we move it to the end then we can sort/filter by
postgres_version too. This can probably all go away at some point, we
have better ways to find images from the same "cohort" (inputHash?) and
can make PACKER_EXECUTION_ID just be gha run_id or default to
date+$RANDOM.
@mmlb mmlb requested review from a team as code owners June 25, 2026 17:00
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