Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts.
Noah Misch <noah@leadboat.com>
Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts. Slow hosts may avoid load-induced, spurious failures by setting environment variable PG_TEST_TIMEOUT_DEFAULT to some number of seconds greater than 180. Developers may see faster failures by setting that environment variable to some lesser number of seconds. In tests, write $PostgreSQL::Test::Utils::timeout_default wherever the convention has been to write 180. This change raises the default for some briefer timeouts. Back-patch to v10 (all supported versions). Discussion: https://postgr.es/m/20220218052842.GA3627003@rfd.leadboat.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/amcheck/t/002_cic.pl | modified | +2 −1 |
| contrib/amcheck/t/003_cic_2pc.pl | modified | +8 −6 |
| src/bin/pg_ctl/t/004_logrotate.pl | modified | +1 −1 |
| src/bin/pg_dump/t/002_pg_dump.pl | modified | +2 −1 |
| src/bin/psql/t/010_tab_completion.pl | modified | +3 −3 |
| src/bin/scripts/t/080_pg_isready.pl | modified | +2 −2 |
| src/test/perl/PostgresNode.pm | modified | +14 −10 |
| src/test/perl/TestLib.pm | modified | +6 −1 |
| src/test/recovery/t/003_recovery_targets.pl | modified | +2 −2 |
| src/test/recovery/t/006_logical_decoding.pl | modified | +2 −2 |
| src/test/recovery/t/010_logical_decoding_timelines.pl | modified | +2 −2 |
| src/test/recovery/t/013_crash_restart.pl | modified | +1 −1 |
| src/test/recovery/t/017_shm.pl | modified | +7 −6 |
| src/test/recovery/t/019_replslot_limit.pl | modified | +1 −1 |
Discussion
- Timeout control within tests 6 messages · 2022-02-18 → 2022-04-18