[Ubuntu] Install PostgreSQL on ARM64 images - #14479
Open
v-davit-ioramashvili wants to merge 1 commit into
Open
Conversation
PostgreSQL is installed only on the x64 Ubuntu images, so postgresql, the client tools and libpq-dev are all missing on ARM64. This blocks building psycopg2 and the pg gem, and driving a PostgreSQL container from the runner. The ARM64 toolsets already pin a PostgreSQL version (14/16/18), the value was simply unused, so no toolset change is needed: - add install-postgresql.sh to the three arm64 templates - drop -Skip:(Test-IsArm64) so the existing tests run on ARM64 - remove the Test-IsX64 gate so the software report lists PostgreSQL Resolves actions#14070
Contributor
There was a problem hiding this comment.
🟡 Human review recommended
It changes core image provisioning across multiple Ubuntu ARM64 images (including 26.04 ARM64, noted as unverified), which warrants a final human review of build outcomes.
Pull request overview
This PR enables PostgreSQL installation and validation on Ubuntu ARM64 runner images so ARM64 images match x64 in providing PostgreSQL client tooling and libpq-dev (needed for building packages like psycopg2).
Changes:
- Added
install-postgresql.shto the Ubuntu 22.04/24.04/26.04 ARM64 Packer templates. - Enabled PostgreSQL Pester tests on ARM64 by removing the ARM64 skip.
- Included PostgreSQL in the generated Ubuntu software report for all architectures.
File summaries
| File | Description |
|---|---|
| images/ubuntu/templates/build.ubuntu-26_04-arm64.pkr.hcl | Adds PostgreSQL installation during Ubuntu 26.04 ARM64 image provisioning. |
| images/ubuntu/templates/build.ubuntu-24_04-arm64.pkr.hcl | Adds PostgreSQL installation during Ubuntu 24.04 ARM64 image provisioning. |
| images/ubuntu/templates/build.ubuntu-22_04-arm64.pkr.hcl | Adds PostgreSQL installation during Ubuntu 22.04 ARM64 image provisioning. |
| images/ubuntu/scripts/tests/Databases.Tests.ps1 | Runs PostgreSQL validation tests on ARM64 now that PostgreSQL is installed there. |
| images/ubuntu/scripts/docs-gen/Generate-SoftwareReport.ps1 | Ensures PostgreSQL appears in the software report across architectures. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Low
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
v-AndriiKhyliuk
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
PostgreSQL is installed on x64 only, so
libpq-devand the client tools are missing on the ARM64 images. The ARM64 toolsets already pin a version (14/16/18), it was just unused.Changes:
install-postgresql.shto the threebuild.ubuntu-*-arm64.pkr.hcltemplatesDatabases.Tests.ps1: removed-Skip:(Test-IsArm64)Generate-SoftwareReport.ps1: removed theTest-IsX64gate around the PostgreSQL sectionTesting: ran
install-postgresql.shonubuntu-22.04-armandubuntu-24.04-arm— installs in 36s (~100/109 MB), versions match the toolset (14.23/16.14), service disabled, tests pass,psycopg2builds from source. No hosted 26.04 ARM runner yet, so 18 is unverified.https://github.com/v-davit-ioramashvili/runner-images/actions/runs/30546903523
Related issue:
Resolves #14070
Check list