Re: Implement generalized sub routine find_in_log for tap test
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Amit Kapila <amit.kapila16@gmail.com>, Andrew Dunstan <andrew@dunslane.net>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-06-06T13:13:44Z
Lists: pgsql-hackers
Attachments
- v5-0001-Remove-duplicate-find_in_log-sub-routines-from-ta_PG13.patch (text/x-patch) patch v5-0001
- v5-0001-Have-find_in_log-sub-routine-as-a-common-routine_PG12.patch (text/x-patch) patch v5-0001
- v5-0001-Remove-duplicate-find_in_log-sub-routines-from-ta_PG14.patch (text/x-patch) patch v5-0001
- v5-0001-Remove-duplicate-find_in_log-sub-routines-from-ta_master.patch (text/x-patch) patch v5-0001
- v5-0001-Remove-duplicate-find_in_log-sub-routines-from-ta_PG15.patch (text/x-patch) patch v5-0001
- v5-0002-Move-common-connection-log-content-verification-c_master.patch (text/x-patch) patch v5-0002
- v5-0002-Move-common-connection-log-content-verification-c_PG14.patch (text/x-patch) patch v5-0002
- v5-0002-Move-common-connection-log-content-verification-c_PG15.patch (text/x-patch) patch v5-0002
On Tue, 6 Jun 2023 at 09:36, Michael Paquier <michael@paquier.xyz> wrote: > > On Tue, Jun 06, 2023 at 08:05:49AM +0530, Amit Kapila wrote: > > Personally, I don't see any problem to do this refactoring for v16. > > However, sometimes, we do decide to backpatch refactoring in tests to > > avoid backpatch effort. I am not completely sure if that is the case > > here. > > 033_replay_tsp_drops.pl has one find_in_log() down to 11, and > 019_replslot_limit.pl has four calls down to 14. Making things > consistent everywhere is a rather appealing argument to ease future > backpatching. So I am OK to spend a few extra cycles in adjusting > these routines all the way down where needed. I'll do that tomorrow > once I get back in front of my laptop. > > Note that connect_ok() and connect_fails() are new to 14, so this > part has no need to go further down than that. Please find the attached patches that can be applied on back branches too. v5*master.patch can be applied on master, v5*PG15.patch can be applied on PG15, v5*PG14.patch can be applied on PG14, v5*PG13.patch can be applied on PG13, v5*PG12.patch can be applied on PG12, PG11 and PG10. Regards, Vignesh
Commits
-
Refactor routine to find single log content pattern in TAP tests
- ced4cc30d5de 11.21 landed
- 3509a060d731 12.16 landed
- a9231fedae7a 13.12 landed
- 28af91b4e797 14.9 landed
- e25e5f7fc6b7 15.4 landed
- 392ea0c78fdb 16.0 landed
-
Refactor log check logic for connect_ok/fails in PostgreSQL::Test::Cluster
- 30469a6ed424 14.9 landed
- 7fa7911c7675 15.4 landed
- 26eaf82e7138 16.0 landed