Skip to content

[Ubuntu] Install PostgreSQL on ARM64 images - #14479

Open
v-davit-ioramashvili wants to merge 1 commit into
actions:mainfrom
v-davit-ioramashvili:feat/14070-postgresql-arm64
Open

[Ubuntu] Install PostgreSQL on ARM64 images#14479
v-davit-ioramashvili wants to merge 1 commit into
actions:mainfrom
v-davit-ioramashvili:feat/14070-postgresql-arm64

Conversation

@v-davit-ioramashvili

Copy link
Copy Markdown
Contributor

Description

PostgreSQL is installed on x64 only, so libpq-dev and the client tools are missing on the ARM64 images. The ARM64 toolsets already pin a version (14/16/18), it was just unused.

Changes:

  • added install-postgresql.sh to the three build.ubuntu-*-arm64.pkr.hcl templates
  • Databases.Tests.ps1: removed -Skip:(Test-IsArm64)
  • Generate-SoftwareReport.ps1: removed the Test-IsX64 gate around the PostgreSQL section

Testing: ran install-postgresql.sh on ubuntu-22.04-arm and ubuntu-24.04-arm — installs in 36s (~100/109 MB), versions match the toolset (14.23/16.14), service disabled, tests pass, psycopg2 builds 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

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

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
Copilot AI review requested due to automatic review settings July 30, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.sh to 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.

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.

Postgres Support

3 participants