Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add branch-based versioning for PR AMI builds#1910

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jfroche wants to merge2 commits intodevelop
base:develop
Choose a base branch
Loading
fromfeat/pull-request-image-version-v2

Conversation

@jfroche
Copy link
Collaborator

Improvement of#1902 (reverted in#1905).

Manually create unique Postgres version names in branch often leads to version conflicts with the base branch versions. These conflicts force developers to deal with manual conflict resolution and unnecessary rebuilds.

To address this, this change implement automatic branch-based versioning for AMI builds triggered via workflow_dispatch on non-develop and non-release branches. The branch name is sanitized and appended to the Postgres version string.

We also publish pg_upgrade scripts and bin flake version right after the AMI release workflow completes.

Example: Branch 'multi-version-ext/pg-partman' produces postgres version 'multi-version-ext-pg-partman'

@jfrochejfroche requested review froma team ascode ownersNovember 11, 2025 21:08
* feat: add branch-based versioning for PR AMI buildsManually create unique Postgres version names in branch often leads toversion conflicts with the base branch versions. These conflicts forcedevelopers to deal with manual conflict resolution and unnecessaryrebuilds.To address this, this change implement automatic branch-based versioningfor AMI builds triggered via workflow_dispatch on non-develop andnon-release branches. The branch name is sanitized and appended to thePostgres version string.Example: Branch 'multi-version-ext/pg-partman' produces postgres version'multi-version-ext-pg-partman'* feat: add notice message for published AMI versionDisplay the published postgres AMI version using GitHub Actions `::notice` annotation.* feat: run actionlint on GitHub Actions workflowsStarting to lint GitHub Actions workflows with actionlint.* fix: generate a unique AMI versionGitHub run_id is appended to the version suffix to ensure uniqueness.It also enables to track the AMI back to the specific workflow run thatcreated it using url like:https://github.com/supabase/postgres/actions/runs/<run_id>
@jfrochejfrocheforce-pushed thefeat/pull-request-image-version-v2 branch frombe51860 to4b0d2d2CompareNovember 12, 2025 15:56
…d bin flake version workflowsOnce the AMI release workflow completes, it now triggers the pg_upgrade_scripts and pg_upgrade_bin flake version publishing workflows. This ensures that the necessary upgrade tools are published in sync with new PostgreSQL releases with the correct versioning.
@jfrochejfrocheforce-pushed thefeat/pull-request-image-version-v2 branch from4b0d2d2 to6817c84CompareNovember 12, 2025 16:07
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hunleydhunleydhunleyd approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jfroche@hunleyd

[8]ページ先頭

©2009-2025 Movatter.jp