Skip to content

test(ami): add qemu pg_upgrade test - #2668

Draft
brainrake wants to merge 2 commits into
developfrom
test/pg-upgrade-qemu
Draft

brainrake wants to merge 2 commits into
developfrom
test/pg-upgrade-qemu

Conversation

@brainrake

@brainrake brainrake commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Adds tests/pg_upgrade/qemu.sh. It boots a build-qemu-image VM, seeds it with the repo migrations and fixtures, then runs initiate.sh and complete.sh and the pgTAP checks in tests/pg_upgrade/tests.

Usage:

IMAGE=<qemu image> PG_UPGRADE_STORE_PATH=<pg17 store path> tests/pg_upgrade/qemu.sh
  • Target is hardcoded to PG 17.
  • The PG 17 closure is copied into the VM with nix copy.
  • initiate.sh reads PG_UPGRADE_STORE_PATH instead of fetching the catalog from S3.
  • Single VM. The two-VM shared data disk flow is not covered.

Testing

  • 17 to 17
  • 15 to 17

Run initiate.sh and complete.sh against a build-qemu-image VM. Target is
PG 17, binaries come from PG_UPGRADE_STORE_PATH.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Package version diff

Compares built package versions in legacyPackages between this PR and the tip of the base branch, per system.

aarch64-linux: Closure size: 372 -> 372 (2 paths added, 2 paths removed, delta +0, disk usage +248B).
<<< /nix/store/7h581c4y787wn5izszjrimnglyfavd0m-build-ami
>>> /nix/store/majcbgs543x2q66xiyc740yxva8avhbz-build-ami
No version or selection state changes.
Closure size: 98 -> 98 (2 paths added, 2 paths removed, delta +0, disk usage +248B).
<<< /nix/store/336vykfaa7phiia5csbliai8g8ls9nv0-build-qemu-image
>>> /nix/store/a13m4ps4s8f2blvn87bc02m8lrrxz6vv-build-qemu-image
No version or selection state changes.
Closure size: 372 -> 372 (2 paths added, 2 paths removed, delta +0, disk usage +248B).
x86_64-linux: Closure size: 370 -> 370 (2 paths added, 2 paths removed, delta +0, disk usage +248B).
<<< /nix/store/5dgg2dlhva678vsdv6fsbg2s99c3qhms-build-ami
>>> /nix/store/mmp6hnmi4bi6fdpr6x02rm932zifklxm-build-ami
No version or selection state changes.
Closure size: 99 -> 99 (2 paths added, 2 paths removed, delta +0, disk usage +248B).
<<< /nix/store/p9r771kc3h2hl9nhw2hqczfr7qq342wm-build-qemu-image
>>> /nix/store/74ych0hssmi6giv4n8vm0wnmsp96v99b-build-qemu-image
No version or selection state changes.
Closure size: 370 -> 370 (2 paths added, 2 paths removed, delta +0, disk usage +248B).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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