Re: Adding "large" to PG_TEST_EXTRA - Mailing list pgsql-hackers
From | Andres Freund |
---|---|
Subject | Re: Adding "large" to PG_TEST_EXTRA |
Date | |
Msg-id | 20230213193422.ulcshw2x2f6iavoy@awork3.anarazel.de Whole thread Raw |
In response to | Re: Adding "large" to PG_TEST_EXTRA (Stephen Frost <sfrost@snowman.net>) |
Responses |
Re: Adding "large" to PG_TEST_EXTRA
|
List | pgsql-hackers |
Hi, On 2023-02-13 14:15:24 -0500, Stephen Frost wrote: > * Andres Freund (andres@anarazel.de) wrote: > > On 2023-02-13 13:45:41 -0500, Stephen Frost wrote: > > > Are there existing tests that we should add into that set that you're > > > thinking of..? I've been working with the Kerberos tests and that's > > > definitely one that seems to fit this description... > > > > I think the kerberos tests are already opt-in, so I don't think we need to > > gate it further. > > I'd like to lump them in with a bunch of other tests though, to give it > more chance to run.. My issue currently is that they're *too* gated. Isn't the reason that we gate them that much that the test poses a security hazard on a multi-user system? I don't think we should combine opting into security hazards with opting into using disk space. FWIW, the kerberos tests run on all CI OSs other than windows. I have additional CI coverage for openbsd and netbsd in a separate branch, providing further coverage - but I'm not sure we want those additional covered OSs in core PG. I think the tests for kerberos run frequently enough in practice. I don't know how good the coverage they provide is, though, but that's a separate aspect to improve anyway. > > I guess there's an argument to be made that we should use this for e.g. > > 002_pg_upgrade.pl or 027_stream_regress.pl - but I think both of these test > > pretty fundamental behaviour like WAL replay, which is unfortunately is pretty > > easy to break, so I'd be hesitant. > > Hm. If you aren't playing with that part of the code though, maybe it'd > be nice to not run them. It's surprisingly easy to break it accidentally... > The pg_dump tests might also make sense to segregate out as they can add up > to be a lot, and there's more that we could and probably should be doing > there. IMO the main issue with the pg_dump test is their verbosity, rather than the runtime... ~8.8k subtests is a lot. find . -name 'regress_log*'|xargs -n 1 wc -l|sort -nr|head -n 5|less 12712 ./testrun/pg_dump/002_pg_dump/log/regress_log_002_pg_dump 5124 ./testrun/pg_rewind/002_databases/log/regress_log_002_databases 1928 ./testrun/pg_rewind/001_basic/log/regress_log_001_basic 1589 ./testrun/recovery/017_shm/log/regress_log_017_shm 1077 ./testrun/pg_rewind/004_pg_xlog_symlink/log/regress_log_004_pg_xlog_symlink > > I guess we could stop running the full regression tests in 002_pg_upgrade.pl > > if !large? > > Perhaps... but then what are we testing? There's plenty to pg_upgrade other than the pg_dump comparison aspect. I'm not sure it's worth spending too much energy finding tests that we can run less commonly than now. We've pushed back on tests using lots of resources so far, so we don't really have them... Greetings, Andres Freund
pgsql-hackers by date: