mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-12 10:04:14 +02:00
Move 32-bit CI testing from Debian 9 to Ubuntu 18.04.
Debian 9 will be EOL before our next release, so move 32-bit testing to Ubuntu 18.04, which is older than Debian 10.
This commit is contained in:
parent
24f138b067
commit
7d9b2e267c
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -29,10 +29,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# All unit tests (without coverage) for 32-bit
|
# All unit tests (without coverage) for 32-bit
|
||||||
- param: test --vm=d9 --param=no-performance --param=c-only
|
- param: test --vm=u18 --param=no-performance --param=c-only
|
||||||
|
|
||||||
# All integration tests for 32-bit
|
# All integration tests for 32-bit
|
||||||
- param: test --vm=d9 --param=module=mock --param=module=real
|
- param: test --vm=u18 --param=module=mock --param=module=real
|
||||||
|
|
||||||
# Debian/Ubuntu documentation
|
# Debian/Ubuntu documentation
|
||||||
- param: doc --vm=u18
|
- param: doc --vm=u18
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
# - docker login -u pgbackrest
|
# - docker login -u pgbackrest
|
||||||
# - VM=XXX;DATE=YYYYMMDDX;BASE=pgbackrest/test:${VM?}-base;docker tag ${BASE?} ${BASE?}-${DATE?} && docker push ${BASE?}-${DATE?}
|
# - VM=XXX;DATE=YYYYMMDDX;BASE=pgbackrest/test:${VM?}-base;docker tag ${BASE?} ${BASE?}-${DATE?} && docker push ${BASE?}-${DATE?}
|
||||||
# **********************************************************************************************************************************
|
# **********************************************************************************************************************************
|
||||||
20220506A:
|
20220512A:
|
||||||
x86_64:
|
x86_64:
|
||||||
d9: 5af02d378de0f10edcfc86ea27aa8400b825d39b
|
u18: ab7da2bc87492aa0231b5014f05166cdeb9a3d30
|
||||||
|
|
||||||
20220504A:
|
20220504A:
|
||||||
x86_64:
|
x86_64:
|
||||||
|
@ -90,11 +90,9 @@ use constant VM_U18 => 'u18';
|
|||||||
push @EXPORT, qw(VM_U18);
|
push @EXPORT, qw(VM_U18);
|
||||||
use constant VM_U20 => 'u20';
|
use constant VM_U20 => 'u20';
|
||||||
push @EXPORT, qw(VM_U20);
|
push @EXPORT, qw(VM_U20);
|
||||||
use constant VM_D9 => 'd9';
|
|
||||||
push @EXPORT, qw(VM_D9);
|
|
||||||
|
|
||||||
# VM aliases for run matrices (numbered oldest to newest)
|
# VM aliases for run matrices (numbered oldest to newest)
|
||||||
use constant VM2 => VM_D9;
|
use constant VM2 => VM_U18;
|
||||||
push @EXPORT, qw(VM2);
|
push @EXPORT, qw(VM2);
|
||||||
use constant VM3 => VM_RH7;
|
use constant VM3 => VM_RH7;
|
||||||
push @EXPORT, qw(VM3);
|
push @EXPORT, qw(VM3);
|
||||||
@ -186,38 +184,13 @@ my $oyVm =
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
# Debian 9
|
|
||||||
&VM_D9 =>
|
|
||||||
{
|
|
||||||
&VM_OS_BASE => VM_OS_BASE_DEBIAN,
|
|
||||||
&VM_OS_REPO => 'stretch',
|
|
||||||
&VM_IMAGE => 'i386/debian:9',
|
|
||||||
&VM_ARCH => VM_ARCH_I386,
|
|
||||||
&VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
|
|
||||||
|
|
||||||
&VM_DB =>
|
|
||||||
[
|
|
||||||
PG_VERSION_90,
|
|
||||||
PG_VERSION_91,
|
|
||||||
PG_VERSION_92,
|
|
||||||
],
|
|
||||||
|
|
||||||
&VM_DB_TEST =>
|
|
||||||
[
|
|
||||||
PG_VERSION_90,
|
|
||||||
PG_VERSION_91,
|
|
||||||
PG_VERSION_92,
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
# Ubuntu 18.04
|
# Ubuntu 18.04
|
||||||
&VM_U18 =>
|
&VM_U18 =>
|
||||||
{
|
{
|
||||||
&VM_OS_BASE => VM_OS_BASE_DEBIAN,
|
&VM_OS_BASE => VM_OS_BASE_DEBIAN,
|
||||||
&VM_OS_REPO => 'bionic',
|
&VM_OS_REPO => 'bionic',
|
||||||
&VM_IMAGE => 'ubuntu:18.04',
|
&VM_IMAGE => 'i386/ubuntu:18.04',
|
||||||
&VM_ARCH => VM_ARCH_AMD64,
|
&VM_ARCH => VM_ARCH_I386,
|
||||||
&VMDEF_COVERAGE_C => true,
|
|
||||||
&VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
|
&VMDEF_PGSQL_BIN => '/usr/lib/postgresql/{[version]}/bin',
|
||||||
|
|
||||||
&VMDEF_WITH_BACKTRACE => true,
|
&VMDEF_WITH_BACKTRACE => true,
|
||||||
@ -232,21 +205,14 @@ my $oyVm =
|
|||||||
PG_VERSION_94,
|
PG_VERSION_94,
|
||||||
PG_VERSION_95,
|
PG_VERSION_95,
|
||||||
PG_VERSION_96,
|
PG_VERSION_96,
|
||||||
PG_VERSION_10,
|
|
||||||
PG_VERSION_11,
|
|
||||||
PG_VERSION_12,
|
|
||||||
PG_VERSION_13,
|
|
||||||
],
|
],
|
||||||
|
|
||||||
&VM_DB_TEST =>
|
&VM_DB_TEST =>
|
||||||
[
|
[
|
||||||
|
PG_VERSION_90,
|
||||||
|
PG_VERSION_91,
|
||||||
|
PG_VERSION_92,
|
||||||
PG_VERSION_93,
|
PG_VERSION_93,
|
||||||
PG_VERSION_94,
|
|
||||||
PG_VERSION_95,
|
|
||||||
PG_VERSION_10,
|
|
||||||
PG_VERSION_11,
|
|
||||||
PG_VERSION_12,
|
|
||||||
PG_VERSION_13,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -282,7 +248,6 @@ my $oyVm =
|
|||||||
|
|
||||||
&VM_DB_TEST =>
|
&VM_DB_TEST =>
|
||||||
[
|
[
|
||||||
PG_VERSION_93,
|
|
||||||
PG_VERSION_94,
|
PG_VERSION_94,
|
||||||
PG_VERSION_95,
|
PG_VERSION_95,
|
||||||
PG_VERSION_14,
|
PG_VERSION_14,
|
||||||
|
@ -649,14 +649,11 @@ testRun(void)
|
|||||||
TEST_RESULT_STR_Z(ioServerName(tlsServer), "localhost", "tls server name");
|
TEST_RESULT_STR_Z(ioServerName(tlsServer), "localhost", "tls server name");
|
||||||
|
|
||||||
// Invalid client cert
|
// Invalid client cert
|
||||||
if (TEST_64BIT()) // Older 32-bit gives inconsistent results
|
|
||||||
{
|
|
||||||
socketSession = ioServerAccept(socketServer, NULL);
|
socketSession = ioServerAccept(socketServer, NULL);
|
||||||
|
|
||||||
TEST_ERROR(
|
TEST_ERROR(
|
||||||
ioServerAccept(tlsServer, socketSession), ServiceError,
|
ioServerAccept(tlsServer, socketSession), ServiceError,
|
||||||
"TLS error [1:337100934] certificate verify failed");
|
"TLS error [1:337100934] certificate verify failed");
|
||||||
}
|
|
||||||
|
|
||||||
// Valid client cert
|
// Valid client cert
|
||||||
socketSession = ioServerAccept(socketServer, NULL);
|
socketSession = ioServerAccept(socketServer, NULL);
|
||||||
@ -689,8 +686,6 @@ testRun(void)
|
|||||||
{
|
{
|
||||||
IoSession *clientSession = NULL;
|
IoSession *clientSession = NULL;
|
||||||
|
|
||||||
if (TEST_64BIT()) // Older 32-bit gives inconsistent results
|
|
||||||
{
|
|
||||||
TEST_TITLE("client cert is invalid (signed by another CA)");
|
TEST_TITLE("client cert is invalid (signed by another CA)");
|
||||||
|
|
||||||
TEST_ASSIGN(
|
TEST_ASSIGN(
|
||||||
@ -707,7 +702,6 @@ testRun(void)
|
|||||||
"TLS error [1:336151576] tlsv1 alert unknown ca");
|
"TLS error [1:336151576] tlsv1 alert unknown ca");
|
||||||
|
|
||||||
TEST_RESULT_VOID(ioSessionFree(clientSession), "free client session");
|
TEST_RESULT_VOID(ioSessionFree(clientSession), "free client session");
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------------------------------------------
|
||||||
TEST_TITLE("client cert is valid");
|
TEST_TITLE("client cert is valid");
|
||||||
|
Loading…
Reference in New Issue
Block a user