Skip to content

fix: needed a release to rollout fixes that address pgmq issues #1693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025

Conversation

samrose
Copy link
Collaborator

@samrose samrose commented Jul 7, 2025

related to #1471

To roll out new upgrade scripts for a new Postgres version, you must update the relevant version in ansible/vars.yml. The workflow will use whatever is defined there as the source of truth for Postgres versions and release strings.
you can see in https://github.com/supabase/postgres/blob/develop/.github/workflows/publish-nix-pgupgrade-bin-flake-version.yml and https://github.com/supabase/postgres/blob/develop/.github/workflows/publish-nix-pgupgrade-scripts.yml
The workflow explicitly reads versions from ansible/vars.yml:
In the prepare job, it runs: VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c 'split("\n")[:-1]') This extracts the list of Postgres major versions directly from the .postgres_major array in ansible/vars.yml.
It looks up exact release strings from ansible/vars.yml for each version: In both publish-staging and publish-prod jobs, it runs: VERSION=(nix{{ matrix.postgres_version }}'"]' ansible/vars.yml)
This uses the major version (from the previous step) to look up the corresponding release string in .postgres_release in ansible/vars.yml.
The workflow uses these values for publishing: The workflow matrix cycles through each version found in ansible/vars.yml. All script uploads, tarball creation, and artifact naming are based on these values.
Unless you explicitly override the version via workflow_dispatch input, these values are always sourced from ansible/vars.yml.
.github/workflows/publish-nix-pgupgrade-scripts.yml is also tied to the version and release info in ansible/vars.yml. To roll out upgrade scripts for new Postgres versions, you must update ansible/vars.yml with the new version and release string.

@samrose samrose requested review from a team as code owners July 7, 2025 20:10
@samrose samrose merged commit 4db4d5b into develop Jul 7, 2025
14 checks passed
@samrose samrose deleted the sam/publish-pgmq-fixes branch July 7, 2025 21:52
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