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: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-10-03T07:03:59Z
Lists: pgsql-hackers
On Sat, Oct 02, 2021 at 11:34:38PM -0400, Tom Lane wrote: > Maybe we could leave test.sh in place for awhile? I'd rather > not cause a flag day for buildfarm owners. (Also, how do we > see this working in the back branches?) I would be fine with test.sh staying around for now. If we do that, though, I think that we had better remove the support for upgrades across different major versions in test.sh, and keep this capability in the new script. I am not sure that a lot of people use that to begin with, but it would be weird to support that with a different configuration layer for both at the same time (test.sh uses a combination of bin/ and lib/ paths, while TAP uses just installation path to accomodate with what PostgresNode.pm is able to do). The patch of this thread also adds support for the load of an old dump instead of an installcheck run of the old instance, which is something the buildfarm could use. I also looked two days ago at a proposal to move all the pg_upgrade-specific SQLs into a new, separate, file that makes use of psql's \if to do the job encoded now in test.sh. I think that it would be strange to duplicate this logic in a the pg_upgrade TAP test and test.sh if we finish by keeping both around for now. So that's a second item we had better deal with first, in my opinion: https://www.postgresql.org/message-id/YVa/se5gxr1PsXDy@paquier.xyz Thoughts? -- 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