Re: Rewriting the test of pg_upgrade as a TAP test - take three - remastered set
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Thomas Munro <thomas.munro@gmail.com>, Noah Misch <noah@leadboat.com>, Julien Rouhaud <rjuju123@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Andrew Dunstan <andrew@dunslane.net>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-16T04:58:10Z
Lists: pgsql-hackers
Attachments
- v9-0001-Fix-sanity-check-for-PGHOST-ADDR-in-pg_upgrade-wi.patch (text/x-diff) patch v9-0001
- v9-0002-Switch-tests-of-pg_upgrade-to-use-TAP.patch (text/x-diff) patch v9-0002
On Tue, Feb 15, 2022 at 01:02:41PM +0900, Michael Paquier wrote: > Hmm. At the end of the day, I am wondering whether we should not give > up entirely on the concept of running the regression tests on older > branches in the TAP script of a newer branch. pg_regress needs to > come from the old source tree, meaning that we would most likely need > to maintain a set of compatibility tweaks that would most probably > rot over the time, and the buildfarm only cares about the possibility > to set up old instances by loading dumps rather than running > pg_regress. This would also make the switch to TAP much easier (no > need for the extra createdb or --locale AFAIK). So attempting to > maintain all that is going to be a PITA in the long term, and there is > nothing running that automatically anyway. > > There is also the extra requirement to adjust dump files, but that's > independent of setting up the old instance to upgrade, and I don't > really plan to tackle that as of this thread (note that the buildfarm > client has extra tweaks regarding that). > > Any thoughts about that? I have been looking at how much simplicity this brings, and I have to admit that it is tempting to just support the loading of dumps when setting up the old instance to upgrade from. We'd still need to do an extra effort in terms of cleaning up the diffs for the dump of the old instance with older versions once/if this is plugged into the buildfarm, but that could be addressed later depending on the versions that need to be covered. -- Michael
Commits
-
Improve and fix some issues in the TAP tests of pg_upgrade
- eaa5ebe046c4 15.0 landed
-
Fix several issues with the TAP tests of pg_upgrade
- 7dd3ee508432 15.0 landed
-
Make upgradecheck a no-op in MSVC's vcregress.pl
- d2a2ce4184b0 15.0 landed
-
Switch the regression tests of pg_upgrade to use TAP tests
- 322becb6085c 15.0 landed
-
Fix check for PGHOST[ADDR] in pg_upgrade with Windows and temporary paths
- dc57366c5836 15.0 landed
-
Remove REGRESS_OUTPUTDIR environment variable.
- 7e6124ca7d81 15.0 landed
-
Add PostgreSQL::Test::Cluster::config_data()
- ba15f16107be 15.0 landed