From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add custom filtering rules to the TAP tests of pg_upgrade
Date: Tue, 27 Dec 2022 05:37:32 +0000
Message-ID: <E1pA2ea-000cfJ-6z@gemulon.postgresql.org> (raw)
Add custom filtering rules to the TAP tests of pg_upgrade
002_pg_upgrade.pl gains support for a new environment variable called
"filter_rules", that can be used to point to a file that includes a
set of custom regular expressions that would be applied to the dumps of
the origin and target clusters when doing a cross-version test (aka when
defining olddump and oldinstall), to give the possibility to reshape
dynamically the dumps in the same way as the internals of the buildfarm
code so as the tests are able to pass in scenarios where one expects
them to even if pg_dump generates slightly-different outputs depending
on the versions involved.
This option is not used when pg_upgrade runs with the same version for
the origin and target clusters, and it is the last piece I see as
required to be able to plug-in more efficiently the TAP tests of
pg_upgrade with the buildfarm or just a CI.
Author: Anton A. Melnikov
Discussion: https://postgr.es/m/49f389ba-95ce-8a9b-09ae-f60650c0e7c7@inbox.ru
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9814ff550046f825b751803191b29a2fbbc79283
Modified Files
--------------
src/bin/pg_upgrade/TESTING | 15 +++++++++++++++
src/bin/pg_upgrade/t/002_pg_upgrade.pl | 25 +++++++++++++++++++++++++
2 files changed, 40 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add custom filtering rules to the TAP tests of pg_upgrade
In-Reply-To: <E1pA2ea-000cfJ-6z@gemulon.postgresql.org>
References: <E1pA2ea-000cfJ-6z@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox