From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_createsubscriber TAP test wrapping makes command options hard to read. |
Date: | 2025-01-21 07:40:18 |
Message-ID: | Z49PYgXnbyU6IiEe@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 21, 2025 at 10:31:01AM +1100, Peter Smith wrote:
> I applied the v5* patches and ran make check-world. All passed OK.
>
> Your fat comma changes have greatly improved readability, particularly
> in 040_createsubscriber (the file that caused me to start this
> thread). Thanks!
It is not an improvement in only 040_createsubscriber, all the places
Dagfinn is touching here feel much better with this new syntax. You
have spent a lot of time on the change from short to long names and on
the new convention grammar for the option/value duos, clearly.
It took me some time to read through the patch to catch
inconsistencies.
- [ 'pg_verifybackup', '-s', $backup_path ],
+ [ 'pg_verifybackup', '--skip-checksum', $backup_path ],
qr/backup successfully verified/,
'-s skips checksumming');
This one in pg_verifybackup should perhaps switch to the long option
for the test description, like the rest. The option should be named
--skip-checksums, causing a test failure in the CI.
-my @pg_basebackup_cmd = (@pg_basebackup_defs, '-U', 'backupuser', '-Xfetch');
+my @pg_basebackup_cmd = (
+ @pg_basebackup_defs,
+ '--user' => 'backupuser',
There was a second series of failures in the test
basebackup_to_shell/t/001_basic.pl because of this part. The option
name should be "--username" for pg_basebackup.
With these two fixes, the CI is happy, which should hopefully be
enough for the buildfarm. But we'll see..
I'd like to apply what you have done here (planning to do a second
lookup, FWIW). If anybody has objections, feel free to post that
here.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Davis | 2025-01-21 07:46:20 | Re: Update Unicode data to Unicode 16.0.0 |
Previous Message | Logan MAUZAIZE | 2025-01-21 07:25:18 | Re: Proper way to clean-up connection for reuse (`DISCARD ALL` and default role) |