pgbackrest.git / summary / log / commit / refs
commit ef0fdc99ff26df6cab494d23e3cd4601d0edc02f
Author: David Steele <david@pgbackrest.org>
Date: Wed Jul 29 02:33:48 2026 +0000
Update tests and documentation builds to Ubuntu 24.04.
Add a u24 vm and split the PostgreSQL versions between it and u22 so the integration tests run as two jobs instead of one. u22 tests 9.6 and 11 and no longer installs anything above 14, while u24 installs the full range and tests 12, 13, and 19. The unit test jobs (coverage/backtrace and valgrind), the coverage summary generated for a release, and the Debian/Ubuntu documentation build all move to u24, so the PostgreSQL 19 beta repository is now enabled there rather than on u22. The manual container revision for the beta is dropped since the u24 base image is new and has no cached tag to invalidate.
Build the contributing guide development environment and the user guide host from ubuntu:24.04 rather than ubuntu:22.04.
Remove the guard that skipped PostgreSQL 18 unless the container was being built for a particular vm and architecture. It dates from when 18 was in beta and not built for ppc64le and s390x, and those architectures no longer reach it since they install a single version via the postgresql metapackage.
Drop python3-distutils, which no longer exists on Ubuntu 24.04. Nothing here uses distutils and on the older distributions it is pulled in as a meson dependency anyway.
Install the AWS CLI from the vendor installer on the Debian/Ubuntu documentation host since awscli is no longer packaged for Ubuntu 24.04. This matches what the RHEL host already does with awscli2 and means ca_bundle must now be set for both, since the vendored CLI ships its own certificate bundle instead of using the system store.
Leave the arch workflow and the code format check on u22 and ubuntu-22.04. Ubuntu 22.04 is still supported and uncrustify formats differently on 24.04, which is a separate change.
.github/workflows/test-doc.yml | 2 +-
.github/workflows/test-linux.yml | 7 ++++--
doc/release.pl | 4 ++--
doc/xml/contributing.xml | 16 ++++++-------
doc/xml/user-guide.xml | 13 +++++++---
test/ci.pl | 2 +-
test/container.yaml | 4 ----
test/lib/pgBackRestTest/Common/ContainerTest.pm | 12 ++++------
test/lib/pgBackRestTest/Common/VmTest.pm | 32 ++++++++++++++++++++++---
9 files changed, 60 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/test-doc.yml b/.github/workflows/test-doc.yml
index b1c709f30..72f4c2455 100644
--- a/.github/workflows/test-doc.yml
+++ b/.github/workflows/test-doc.yml
@@ -26,7 +26,7 @@ jobs:
matrix:
include:
# Debian/Ubuntu documentation
- - vm: u22
+ - vm: u24
# RHEL documentation
- vm: rh9
diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml
index 65fedba98..6f1d3531f 100644
--- a/.github/workflows/test-linux.yml
+++ b/.github/workflows/test-linux.yml
@@ -29,11 +29,14 @@ jobs:
# All integration tests
- param: test --vm=u22 --param=module=integration
+ # All integration tests
+ - param: test --vm=u24 --param=module=integration
+
# All unit tests with coverage, backtrace and alternate timezone
- - param: test --vm=u22 --param=c-only --param=no-valgrind --param=tz=America/New_York
+ - param: test --vm=u24 --param=c-only --param=no-valgrind --param=tz=America/New_York
# All unit tests with valgrind (disable coverage and backtrace for performance)
- - param: test --vm=u22 --param=c-only --param=no-coverage --param=no-back-trace
+ - param: test --vm=u24 --param=c-only --param=no-coverage --param=no-back-trace
# All unit tests on the newest gcc available
- param: test --vm=f44 --param=c-only --param=no-valgrind --param=no-coverage --param=no-performance
diff --git a/doc/release.pl b/doc/release.pl
index 99d78748e..e70820e6a 100755
--- a/doc/release.pl
+++ b/doc/release.pl
@@ -228,7 +228,7 @@ eval
# Generate coverage summary
&log(INFO, "Generate Coverage Summary");
- executeTest("${strTestExe} --vm=u22 --no-valgrind --clean --coverage-summary", {bShowOutputAsync => true});
+ executeTest("${strTestExe} --vm=u24 --no-valgrind --clean --coverage-summary", {bShowOutputAsync => true});
}
# Remove permanent cache file
@@ -246,7 +246,7 @@ eval
}
# Generate deployment docs for Debian
- if (!defined($strVm) || $strVm eq VM_U22)
+ if (!defined($strVm) || $strVm eq VM_U24)
{
&log(INFO, "Generate Debian/Ubuntu documentation");
diff --git a/doc/xml/contributing.xml b/doc/xml/contributing.xml
index d8904598a..00161bec2 100644
--- a/doc/xml/contributing.xml
+++ b/doc/xml/contributing.xml
@@ -24,7 +24,7 @@
</variable-list>
<!-- Setup hosts used to build the documentation =========================================================================== -->
- <host-define if="{[os-type-is-debian]}" image="{[host-contrib-image]}" from="ubuntu:22.04" revision="20260721A">
+ <host-define if="{[os-type-is-debian]}" image="{[host-contrib-image]}" from="ubuntu:24.04" revision="20260721A">
{[copy-ca-cert]}
# Fix root tty
@@ -76,9 +76,9 @@
<section id="environment">
<title>Building a Development Environment</title>
- <p>This example is based on <proper>Ubuntu 22.04</proper>, but it should work on many versions of <proper>Debian</proper> and <proper>Ubuntu</proper>.</p>
+ <p>This example is based on <proper>Ubuntu 24.04</proper>, but it should work on many versions of <proper>Debian</proper> and <proper>Ubuntu</proper>.</p>
- <host-add id="{[host-contrib-id]}" name="{[host-contrib]}" user="{[host-contrib-user]}" image="{[host-contrib-image]}" os="u22" option="-v /var/run/docker.sock:/var/run/docker.sock -v {[cwd]}/test:{[cwd]}/test" mount="/home/{[host-contrib-user]}/pgbackrest:/home/{[host-contrib-user]}/pgbackrest"/>
+ <host-add id="{[host-contrib-id]}" name="{[host-contrib]}" user="{[host-contrib-user]}" image="{[host-contrib-image]}" os="u24" option="-v /var/run/docker.sock:/var/run/docker.sock -v {[cwd]}/test:{[cwd]}/test" mount="/home/{[host-contrib-user]}/pgbackrest:/home/{[host-contrib-user]}/pgbackrest"/>
<execute-list host="{[host-contrib]}">
<title>Install development tools</title>
@@ -94,7 +94,7 @@
apt-get install rsync git devscripts build-essential valgrind autoconf
autoconf-archive libssl-dev zlib1g-dev libxml2-dev libpq-dev pkg-config
libxml-checker-perl libyaml-perl libdbd-pg-perl liblz4-dev liblz4-tool
- zstd libzstd-dev bzip2 libbz2-dev libyaml-dev ccache python3-distutils meson
+ zstd libzstd-dev bzip2 libbz2-dev libyaml-dev ccache meson
</exe-cmd>
<exe-cmd-extra>-y 2>&1</exe-cmd-extra>
</execute>
@@ -381,13 +381,13 @@ pgbackrest/doc/doc.pl --help
<section id="with-docker" depend="/environment">
<title>With Docker</title>
- <p>Build a container to run tests. The vm must be pre-configured but a variety are available. A vagrant file is provided in the test directory as an example of running in a virtual environment. The vm names are all three character abbreviations, e.g. <id>u22</id> for <proper>Ubuntu 22.04</proper>.</p>
+ <p>Build a container to run tests. The vm must be pre-configured but a variety are available. A vagrant file is provided in the test directory as an example of running in a virtual environment. The vm names are all three character abbreviations, e.g. <id>u24</id> for <proper>Ubuntu 24.04</proper>.</p>
<execute-list host="{[host-contrib]}">
<title>Build a VM</title>
<execute output="y">
- <exe-cmd>pgbackrest/test/test.pl --vm-build --vm=u22</exe-cmd>
+ <exe-cmd>pgbackrest/test/test.pl --vm-build --vm=u24</exe-cmd>
<exe-cmd-extra>{[test-cmd-extra]}</exe-cmd-extra>
</execute>
</execute-list>
@@ -398,7 +398,7 @@ pgbackrest/doc/doc.pl --help
<title>Run a Specific Test Run</title>
<execute output="y">
- <exe-cmd>pgbackrest/test/test.pl {[dash]}-vm=u22 {[dash]}-module=postgres {[dash]}-test=interface {[dash]}-run=2</exe-cmd>
+ <exe-cmd>pgbackrest/test/test.pl {[dash]}-vm=u24 {[dash]}-module=postgres {[dash]}-test=interface {[dash]}-run=2</exe-cmd>
<exe-cmd-extra>{[test-cmd-extra]}</exe-cmd-extra>
</execute>
</execute-list>
@@ -592,7 +592,7 @@ TEST_ERROR(cmdCheck(), ConfigError, "primary database not found\nHINT: check ind
<p>Unit tests are run for all files that are listed in <file>define.yaml</file> and a coverage report generated for each file listed under the tag <code>coverage:</code>. Note that some files are listed in multiple <code>coverage:</code> sections for a module; in this case, each test for the file being modified should be specified for the module in which the file exists (e.g. <code>--module=storage --test=posix --test=gcs</code>, etc.) or, alternatively, simply run the module without the <code>--test</code> option. It is recommended that a <code>--vm</code> be specified since running the same test for multiple vms is unnecessary for coverage. The following example would run the test set from the <b>define.yaml</b> section detailed above.</p>
<code-block>
-pgbackrest/test/test.pl --vm-out --module=command --test=check --vm=u22
+pgbackrest/test/test.pl --vm-out --module=command --test=check --vm=u24
</code-block>
<admonition type="note">Not all systems perform at the same speed, so if a test is timing out, try rerunning with another vm.</admonition>
diff --git a/doc/xml/user-guide.xml b/doc/xml/user-guide.xml
index fe330effb..ac574288c 100644
--- a/doc/xml/user-guide.xml
+++ b/doc/xml/user-guide.xml
@@ -36,7 +36,7 @@
<variable key="os-type-is-rhel">'{[os-type]}' eq '{[os-rhel]}'</variable>
<!-- Defines the container image that will be used to build the host -->
- <variable key="os-image" if="{[os-type-is-debian]}">ubuntu:22.04</variable>
+ <variable key="os-image" if="{[os-type-is-debian]}">ubuntu:24.04</variable>
<variable key="os-image" if="{[os-type-is-rhel]}">rockylinux/rockylinux:9</variable>
<variable key="user-guide-subtitle" if="{[os-type-is-debian]}">{[os-debian-title]}</variable>
@@ -322,7 +322,13 @@
RUN rm /etc/apt/apt.conf.d/70debconf && \
apt-get update && \
apt-get install -y --no-install-recommends sudo ssh curl vim gnupg lsb-release iputils-ping ca-certificates \
- tzdata locales libssh2-1-dev awscli git libyaml-dev libxml-checker-perl 2>&1
+ tzdata locales libssh2-1-dev unzip git libyaml-dev libxml-checker-perl 2>&1
+
+ # Install the AWS CLI from the vendor installer since it is no longer packaged for Debian/Ubuntu
+ RUN curl -sL "https://awscli.amazonaws.com/awscli-exe-linux-`uname -m`.zip" -o /tmp/awscliv2.zip && \
+ unzip -q /tmp/awscliv2.zip -d /tmp && \
+ /tmp/aws/install && \
+ rm -rf /tmp/awscliv2.zip /tmp/aws
{[sudo-disable-core-dump]}
@@ -804,7 +810,8 @@
<execute user="root" user-force="y">
<exe-cmd>aws configure set region {[s3-region]}</exe-cmd>
</execute>
- <execute if ="{[os-type-is-rhel]}" user="root" user-force="y">
+ <!-- The CA bundle must be set explicitly because the AWS CLI ships its own rather than using the system store -->
+ <execute user="root" user-force="y">
<exe-cmd>aws configure set ca_bundle {[ca-cert-path]}/pgbackrest-ca.crt</exe-cmd>
</execute>
<!-- Retry to allow time for the S3 server (SeaweedFS) to start up and for the new bucket to become available -->
diff --git a/test/ci.pl b/test/ci.pl
index 8eb6c6435..b428cbe56 100755
--- a/test/ci.pl
+++ b/test/ci.pl
@@ -172,7 +172,7 @@ eval
{
# Build list of packages that need to be installed
my $strPackage =
- "gcc ccache python3-distutils git rsync zlib1g-dev libssl-dev libxml2-dev libpq-dev libyaml-dev pkg-config uncrustify" .
+ "gcc ccache git rsync zlib1g-dev libssl-dev libxml2-dev libpq-dev libyaml-dev pkg-config uncrustify" .
" libssh2-1-dev valgrind";
# Extra packages required when testing without containers
diff --git a/test/container.yaml b/test/container.yaml
index 812181be7..26354e9df 100644
--- a/test/container.yaml
+++ b/test/container.yaml
@@ -27,7 +27,3 @@
# rh10-x86_64: 20260710A # rebuild rh10 on x86_64 only (independent of "all" and "rh10")
# **********************************************************************************************************************************
all: 20260710A
-
-# PostgreSQL 19 beta 2
-u22-x86_64: 20260717A
-u22-aarch64: 20260717A
diff --git a/test/lib/pgBackRestTest/Common/ContainerTest.pm b/test/lib/pgBackRestTest/Common/ContainerTest.pm
index 117122b14..881e9ad73 100644
--- a/test/lib/pgBackRestTest/Common/ContainerTest.pm
+++ b/test/lib/pgBackRestTest/Common/ContainerTest.pm
@@ -500,13 +500,13 @@ sub containerBuild
" export DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_FRONTEND=noninteractive && \\\n" .
" apt-get update && \\\n" .
" apt-get install -y --no-install-recommends openssh-server sudo gcc make git \\\n" .
- " libdbd-pg-perl libhtml-parser-perl libssl-dev libperl-dev python3-distutils \\\n" .
+ " libdbd-pg-perl libhtml-parser-perl libssl-dev libperl-dev \\\n" .
" libyaml-libyaml-perl tzdata devscripts lintian libxml-checker-perl txt2man debhelper \\\n" .
" libppi-html-perl libtemplate-perl libtest-differences-perl zlib1g-dev libxml2-dev pkg-config \\\n" .
" libbz2-dev bzip2 libyaml-dev libjson-pp-perl liblz4-dev liblz4-tool gnupg lsb-release ccache meson \\\n" .
" libssh2-1-dev libcurl4-openssl-dev libsystemd-dev";
- if ($strOS eq VM_U22)
+ if ($strOS eq VM_U22 || $strOS eq VM_U24)
{
$strScript .= " valgrind";
}
@@ -605,7 +605,7 @@ sub containerBuild
$strScript .=
" apt-get install -y --no-install-recommends postgresql-common && \\\n" .
" /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y" .
- ($strOS eq VM_U22 && ($strArch eq VM_ARCH_AARCH64 || $strArch eq VM_ARCH_X86_64) ? ' -c 19' : '') .
+ ($strOS eq VM_U24 && ($strArch eq VM_ARCH_AARCH64 || $strArch eq VM_ARCH_X86_64) ? ' -c 19' : '') .
" && \\\n";
}
@@ -660,10 +660,6 @@ sub containerBuild
}
elsif ($$oVm{$strOS}{&VM_OS_BASE} eq VM_OS_BASE_DEBIAN)
{
- # Disable PostgreSQL 18 on architectures that do not support it yet
- next if ($strDbVersion eq '18' &&
- !($strOS eq VM_U22 && ($strArch eq VM_ARCH_AARCH64 || $strArch eq VM_ARCH_X86_64)));
-
$strScript .= " postgresql-${strDbVersion}";
}
elsif ($$oVm{$strOS}{&VM_OS_BASE} eq VM_OS_BASE_ALPINE)
@@ -737,7 +733,7 @@ sub containerBuild
" echo '***********************************************' >> /etc/issue.net && \\\n" .
" echo 'Banner /etc/issue.net' >> /etc/ssh/sshd_config";
- if ($strOS eq VM_U22 || $strOS eq VM_A321)
+ if ($strOS eq VM_U22 || $strOS eq VM_U24 || $strOS eq VM_A321)
{
$strScript .= sectionHeader() .
" echo '# Add PubkeyAcceptedAlgorithms (required for SFTP)' >> /etc/ssh/sshd_config && \\\n" .
diff --git a/test/lib/pgBackRestTest/Common/VmTest.pm b/test/lib/pgBackRestTest/Common/VmTest.pm
index 97fef6bc6..6d33e2ef7 100644
--- a/test/lib/pgBackRestTest/Common/VmTest.pm
+++ b/test/lib/pgBackRestTest/Common/VmTest.pm
@@ -92,9 +92,12 @@ use constant VM_F44 => 'f44';
push @EXPORT, qw(VM_F44);
use constant VM_U22 => 'u22';
push @EXPORT, qw(VM_U22);
+use constant VM_U24 => 'u24';
+ push @EXPORT, qw(VM_U24);
# List of default test VMs
-use constant VM_LIST => (VM_D12, VM_RH8, VM_RH9, VM_RH10, VM_U22, VM_A321, VM_A324);
+use constant VM_LIST =>
+ (VM_D12, VM_RH8, VM_RH9, VM_RH10, VM_U22, VM_U24, VM_A321, VM_A324);
push @EXPORT, qw(VM_LIST);
my $oyVm =
@@ -272,6 +275,31 @@ my $oyVm =
&VMDEF_COVERAGE_C => true,
&VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
+ &VM_DB =>
+ [
+ PG_VERSION_96,
+ PG_VERSION_10,
+ PG_VERSION_11,
+ PG_VERSION_12,
+ PG_VERSION_13,
+ PG_VERSION_14,
+ ],
+
+ &VM_DB_TEST =>
+ [
+ PG_VERSION_96,
+ PG_VERSION_11,
+ ],
+ },
+
+ # Ubuntu 24.04
+ &VM_U24 =>
+ {
+ &VM_OS_BASE => VM_OS_BASE_DEBIAN,
+ &VM_IMAGE => 'ubuntu:24.04',
+ &VMDEF_COVERAGE_C => true,
+ &VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
+
&VM_DB =>
[
PG_VERSION_96,
@@ -289,8 +317,6 @@ my $oyVm =
&VM_DB_TEST =>
[
- PG_VERSION_96,
- PG_VERSION_11,
PG_VERSION_12,
PG_VERSION_13,
PG_VERSION_19,
[parent: 6454d59f7016]