Skip to content

feat: adds 'data:pg:upgrade:run/wait' commands (W-21304392)#3551

Merged
sbosio merged 12 commits intomainfrom
sbosio/data-pg-upgrade-run
Apr 9, 2026
Merged

feat: adds 'data:pg:upgrade:run/wait' commands (W-21304392)#3551
sbosio merged 12 commits intomainfrom
sbosio/data-pg-upgrade-run

Conversation

@sbosio
Copy link
Copy Markdown
Contributor

@sbosio sbosio commented Mar 2, 2026

Summary

Here we implement two new commands that will be part of NGPG GA launch enabling customers to upgrade major versions of Heroku Postgres Advanced databases: data:pg:upgrade:run and data:pg:upgrade:wait.

Initially, data:pg:upgrade:wait would be an alias for data:pg:wait, but we just created a new command inheriting the behavior of data:pg:wait in order to update some static help messaging and dynamically generated error messages guiding the user to run the correct command when dealing with a Classic database.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

For smoke testing this command, pull this branch, build and run through ./bin/run:

If you need to create an upgradeable database for testing, you can use:
heroku data:pg:create --level 4G-Performance --no-high-availability --app test-app-name --version=16 --as UPGRADEABLE_DB

Steps:

  1. Pull this branch:
    git checkout sbosio/data-pg-upgrade-run
  2. Build the CLI:
    npm install && npm run build
  3. Command help should respect the UX design:
    ./bin/run data:pg:upgrade:run --help
  4. Command should work without errors against an Advanced DB on an upgradeable version:
    ./bin/run data:pg:upgrade:run UPGRADEABLE_DB --app test-app-name

Remember to destroy the database when you're finished with your tests:
./bin/run data:pg:destroy UPGRADEABLE_DB --app test-app-name --confirm test-app-name

Screenshots (if applicable)

Example run (happy path smoke test)

Captura de pantalla 2026-04-07 a la(s) 11 51 40

Static help and error messages to review by CX on data:pg:upgrade:wait

Captura de pantalla 2026-04-07 a la(s) 11 54 06

Related Issues

GUS work item: W-21304392

@sbosio sbosio temporarily deployed to AcceptanceTests March 9, 2026 23:00 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 9, 2026 23:00 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 9, 2026 23:00 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 9, 2026 23:00 — with GitHub Actions Inactive
@sbosio sbosio changed the title Add 'data:pg:upgrade:run' command (W-21304392) feat: adds 'data:pg:upgrade:run' command (W-21304392) Mar 9, 2026
@sbosio sbosio temporarily deployed to AcceptanceTests March 12, 2026 14:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 12, 2026 14:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 12, 2026 14:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 12, 2026 14:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:37 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:37 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:37 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:37 — with GitHub Actions Inactive
@sbosio sbosio changed the base branch from v11.0.0 to main March 17, 2026 12:38
@sbosio sbosio force-pushed the sbosio/data-pg-upgrade-run branch from 79f06c3 to afc5fd8 Compare March 17, 2026 12:39
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:40 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:40 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:40 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 17, 2026 12:40 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 11:47 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 11:47 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 11:47 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 11:47 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 12:45 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests March 26, 2026 12:45 — with GitHub Actions Inactive
@sbosio sbosio changed the title feat: adds 'data:pg:upgrade:run' command (W-21304392) feat: adds 'data:pg:upgrade:run/wait' commands (W-21304392) Mar 26, 2026
@sbosio sbosio marked this pull request as ready for review March 26, 2026 12:51
@sbosio sbosio requested a review from a team as a code owner March 26, 2026 12:51
@sbosio sbosio marked this pull request as draft March 26, 2026 13:16
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 14:43 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 14:43 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 14:43 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 14:43 — with GitHub Actions Inactive
@sbosio sbosio marked this pull request as ready for review April 7, 2026 15:01
@sbosio sbosio requested review from heicheng18 April 7, 2026 15:02
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 15:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 15:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 15:38 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 7, 2026 15:38 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@tlowrimore-heroku tlowrimore-heroku left a comment

Choose a reason for hiding this comment

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

LGTM!

@sbosio sbosio temporarily deployed to AcceptanceTests April 9, 2026 16:49 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 9, 2026 16:49 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 9, 2026 16:49 — with GitHub Actions Inactive
@sbosio sbosio temporarily deployed to AcceptanceTests April 9, 2026 16:49 — with GitHub Actions Inactive
@sbosio sbosio merged commit 3297c5e into main Apr 9, 2026
17 checks passed
@sbosio sbosio deleted the sbosio/data-pg-upgrade-run branch April 9, 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.

3 participants