pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid low-probability regression test failures in timestamp[tz] 7+ messages / 1 participants [nested] [flat]
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e1c056cc4d7bcc0dfe8a3808550e7b7f73b64643 Modified Files -------------- src/test/regress/expected/timestamp.out | 37 +++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 20 +++++++-------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 63 insertions(+), 59 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b265aa1f39b672d263e37bdb715516d32128d0c4 Modified Files -------------- src/test/regress/expected/timestamp.out | 37 +++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 20 +++++++-------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 63 insertions(+), 59 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8f735c0488c68d02ed9a484851277fd5df4570c5 Modified Files -------------- src/test/regress/expected/timestamp.out | 39 ++++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 22 ++++++++--------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 65 insertions(+), 61 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/365052abbc114a4269405bd7ac97b4b86dcfdca7 Modified Files -------------- src/test/regress/expected/timestamp.out | 39 ++++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 22 ++++++++--------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 65 insertions(+), 61 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b399d01fd7bb5d3f056e9b65933b9e3d89fb2d45 Modified Files -------------- src/test/regress/expected/timestamp.out | 39 ++++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 22 ++++++++--------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 65 insertions(+), 61 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/37ae8640ed9b96267da0b05fd09f60bdffe58482 Modified Files -------------- src/test/regress/expected/timestamp.out | 39 ++++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 22 ++++++++--------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 65 insertions(+), 61 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Avoid low-probability regression test failures in timestamp[tz] @ 2019-12-22 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-12-22 23:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid low-probability regression test failures in timestamp[tz] tests. If the first transaction block in these tests were entered exactly at midnight (California time), they'd report a bogus failure due to 'now' and 'midnight' having the same values. Commit 8c2ac75c5 had dismissed this as being of negligible probability, but we've now seen it happen in the buildfarm, so let's prevent it. We can get pretty much the same test coverage without an it's-not-midnight assumption by moving the does-'now'-work cases into their own test step. While here, apply commit 47169c255's s/DELETE/TRUNCATE/ change to timestamptz as well as timestamp (not sure why that didn't occur to me at the time; the risk of failure is the same). Back-patch to all supported branches, since the main point is to get rid of potential buildfarm failures. Discussion: https://postgr.es/m/14821.1577031117@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fd06985cb9e780237c87cef9c27f134eb0abb4d3 Modified Files -------------- src/test/regress/expected/timestamp.out | 39 ++++++++++++++--------------- src/test/regress/expected/timestamptz.out | 41 +++++++++++++++++++------------ src/test/regress/sql/timestamp.sql | 22 ++++++++--------- src/test/regress/sql/timestamptz.sql | 24 +++++++++--------- 4 files changed, 65 insertions(+), 61 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-12-22 23:00 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us> 2019-12-22 23:00 pgsql: Avoid low-probability regression test failures in timestamp[tz] Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox