pgsql: Add custom filtering rules to the TAP tests of pg_upgrade

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add custom filtering rules to the TAP tests of pg_upgrade
Date: 2022-12-27 05:37:32
Message-ID: E1pA2ea-000cfJ-6z@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2022-12-27 07:43:07 pgsql: Remove overzealous MultiXact freeze assertion.
Previous Message Michael Paquier 2022-12-27 03:18:51 pgsql: Fix incorrect copy-pasto in error message of pg_waldump.c