From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Support new perl module namespace in stable branches
Date: Thu, 21 Apr 2022 13:41:50 +0000
Message-ID: <E1nhX4A-000R29-3O@gemulon.postgresql.org> (raw)
Support new perl module namespace in stable branches
Commit b3b4d8e68a moved our perl test modules to a better namespace
structure, but this has made life hard for people wishing to backpatch
improvements in the TAP tests. Here we alleviate much of that difficulty
by implementing the new module names on top of the old modules, mostly
by using a little perl typeglob aliasing magic, so that we don't have a
dual maintenance burden. This should work both for the case where a new
test is backpatched and the case where a fix to an existing test that
uses the new namespace is backpatched.
Reviewed by Michael Paquier
Per complaint from Andres Freund
Discussion: https://postgr.es/m/20220418141530.nfxtkohefvwnzncl@alap3.anarazel.de
Applied to branches 10 through 14
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1c60a99dd9a2064125d503227d8f8b17d33dc4ed
Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 16 ++++++++++++
src/test/perl/PostgreSQL/Test/Utils.pm | 45 ++++++++++++++++++++++++++++++++
src/test/perl/PostgresNode.pm | 14 ++++++++++
src/test/perl/TestLib.pm | 40 ++++++++++++++++++++++++++++
4 files changed, 115 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: andrew@dunslane.net
Subject: Re: pgsql: Support new perl module namespace in stable branches
In-Reply-To: <E1nhX4A-000R29-3O@gemulon.postgresql.org>
References: <E1nhX4A-000R29-3O@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