Skip to content

ci: fix pg_upgrade script publish - #2603

Open
mmlb wants to merge 3 commits into
developfrom
push-xvvnuuzxozpw
Open

mmlb wants to merge 3 commits into
developfrom
push-xvvnuuzxozpw

Conversation

@mmlb

@mmlb mmlb commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

pg_upgrade scripts aren't being pushed correctly, failure is silent.

What is the new behavior?

AMI Release Nix waits for the triggered workflow so that if any of them fail the release fails. AMIs are still up in s3 and a re-run would fail when trying to build the AMIs but at least we have noisy failures instead of silent ones.

mmlb added 3 commits October 28, 2026 17:06
Move publish-staging and publish-prod in publish-nix-pgupgrade-*.yml and
from large-linux-x86 to blacksmith-2vcpu-ubuntu-2404, matching their
prepare jobs.

Need to run install-nix now since blacksmith runners don't ship with it
installed while large-linux-x86 did.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Dispatching "Publish nix pg_upgrade_bin flake version" with
postgresVersion=15.19.0.009 failed in every publish-staging leg with
"git revision '15.19.0.009' not found". postgresVersion is resolved as a
git revision but would fail due to code being checked out with default
shallow clone sans tags.

Use the full checkout so the git show works.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Previously Release AMI Nix dispatched both publish workflows
fire-and-forget, so a failed publish left the release green while
upgrade scripts were missing from S3. Now we save the runids for both
and watch/wait for them and bubble up any errors.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@mmlb
mmlb requested a review from a team as a code owner October 28, 2026 21:36
@mmlb
mmlb added this pull request to stack #2604 October 28, 2026 21:36
@github-actions

Copy link
Copy Markdown

Package version diff: none (aarch64-linux, x86_64-linux)

@mmlb
mmlb force-pushed the push-xvvnuuzxozpw branch from 42ba569 to 4f58a11 Compare October 28, 2026 22:13

@brainrake brainrake left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gh workflow run may fail, eg. it returns an url only if available. Moving the publishing step to a separate workflow withon: workflow_call and needs could be better here. Not blocker.

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.

2 participants