pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Improve isolationtester's timeout management.
5+ messages / 1 participants
[nested] [flat]

* pgsql: Improve isolationtester's timeout management.
@ 2019-12-09 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2019-12-09 19:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve isolationtester's timeout management.

isolationtester.c had a hard-wired limit of 3 minutes per test step.
It now emerges that this isn't quite enough for some of the slowest
buildfarm animals.  This isn't the first time we've had to raise
this limit (cf. 1db439ad4), so let's make it configurable.  This
patch raises the default to 5 minutes, and introduces an environment
variable PGISOLATIONTIMEOUT that can be set if more time is needed,
following the precedent of PGCTLTIMEOUT.

Also, modify isolationtester so that when the timeout is hit,
it explicitly reports having sent a cancel.  This makes the regression
failure log considerably more intelligible.  (In the worst case, a
timed-out test might actually be reported as "passing" without this
extra output, so arguably this is a bug fix in itself.)

In passing, update the README file, which had apparently not gotten
touched when we added "make check" support here.

Back-patch to 9.6; older versions don't have comparable timeout logic.

Discussion: https://postgr.es/m/22964.1575842935@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/235eab52c059b07d57e8f18aaa17d7528bb523e9

Modified Files
--------------
src/test/isolation/README            | 29 +++++++++++++++++++++--------
src/test/isolation/isolationtester.c | 33 +++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Improve isolationtester's timeout management.
@ 2019-12-09 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2019-12-09 19:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve isolationtester's timeout management.

isolationtester.c had a hard-wired limit of 3 minutes per test step.
It now emerges that this isn't quite enough for some of the slowest
buildfarm animals.  This isn't the first time we've had to raise
this limit (cf. 1db439ad4), so let's make it configurable.  This
patch raises the default to 5 minutes, and introduces an environment
variable PGISOLATIONTIMEOUT that can be set if more time is needed,
following the precedent of PGCTLTIMEOUT.

Also, modify isolationtester so that when the timeout is hit,
it explicitly reports having sent a cancel.  This makes the regression
failure log considerably more intelligible.  (In the worst case, a
timed-out test might actually be reported as "passing" without this
extra output, so arguably this is a bug fix in itself.)

In passing, update the README file, which had apparently not gotten
touched when we added "make check" support here.

Back-patch to 9.6; older versions don't have comparable timeout logic.

Discussion: https://postgr.es/m/22964.1575842935@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/999c72b4dc2e0e67869f698af32b24ed14d9edc3

Modified Files
--------------
src/test/isolation/README            | 29 +++++++++++++++++++++--------
src/test/isolation/isolationtester.c | 33 +++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Improve isolationtester's timeout management.
@ 2019-12-09 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2019-12-09 19:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve isolationtester's timeout management.

isolationtester.c had a hard-wired limit of 3 minutes per test step.
It now emerges that this isn't quite enough for some of the slowest
buildfarm animals.  This isn't the first time we've had to raise
this limit (cf. 1db439ad4), so let's make it configurable.  This
patch raises the default to 5 minutes, and introduces an environment
variable PGISOLATIONTIMEOUT that can be set if more time is needed,
following the precedent of PGCTLTIMEOUT.

Also, modify isolationtester so that when the timeout is hit,
it explicitly reports having sent a cancel.  This makes the regression
failure log considerably more intelligible.  (In the worst case, a
timed-out test might actually be reported as "passing" without this
extra output, so arguably this is a bug fix in itself.)

In passing, update the README file, which had apparently not gotten
touched when we added "make check" support here.

Back-patch to 9.6; older versions don't have comparable timeout logic.

Discussion: https://postgr.es/m/22964.1575842935@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/eadfafda049e3081f8078aa30ea33f538c45aecd

Modified Files
--------------
src/test/isolation/README            | 29 +++++++++++++++++++++--------
src/test/isolation/isolationtester.c | 33 +++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Improve isolationtester's timeout management.
@ 2019-12-09 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2019-12-09 19:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve isolationtester's timeout management.

isolationtester.c had a hard-wired limit of 3 minutes per test step.
It now emerges that this isn't quite enough for some of the slowest
buildfarm animals.  This isn't the first time we've had to raise
this limit (cf. 1db439ad4), so let's make it configurable.  This
patch raises the default to 5 minutes, and introduces an environment
variable PGISOLATIONTIMEOUT that can be set if more time is needed,
following the precedent of PGCTLTIMEOUT.

Also, modify isolationtester so that when the timeout is hit,
it explicitly reports having sent a cancel.  This makes the regression
failure log considerably more intelligible.  (In the worst case, a
timed-out test might actually be reported as "passing" without this
extra output, so arguably this is a bug fix in itself.)

In passing, update the README file, which had apparently not gotten
touched when we added "make check" support here.

Back-patch to 9.6; older versions don't have comparable timeout logic.

Discussion: https://postgr.es/m/22964.1575842935@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99351a8b5a3882ee5d131bd37d03a67ab07b4fea

Modified Files
--------------
src/test/isolation/README            | 29 +++++++++++++++++++++--------
src/test/isolation/isolationtester.c | 33 +++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: Improve isolationtester's timeout management.
@ 2019-12-09 19:32  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2019-12-09 19:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Improve isolationtester's timeout management.

isolationtester.c had a hard-wired limit of 3 minutes per test step.
It now emerges that this isn't quite enough for some of the slowest
buildfarm animals.  This isn't the first time we've had to raise
this limit (cf. 1db439ad4), so let's make it configurable.  This
patch raises the default to 5 minutes, and introduces an environment
variable PGISOLATIONTIMEOUT that can be set if more time is needed,
following the precedent of PGCTLTIMEOUT.

Also, modify isolationtester so that when the timeout is hit,
it explicitly reports having sent a cancel.  This makes the regression
failure log considerably more intelligible.  (In the worst case, a
timed-out test might actually be reported as "passing" without this
extra output, so arguably this is a bug fix in itself.)

In passing, update the README file, which had apparently not gotten
touched when we added "make check" support here.

Back-patch to 9.6; older versions don't have comparable timeout logic.

Discussion: https://postgr.es/m/22964.1575842935@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd0c44bdf477766f3ae6de295687390c69a857a9

Modified Files
--------------
src/test/isolation/README            | 29 +++++++++++++++++++++--------
src/test/isolation/isolationtester.c | 33 +++++++++++++++++++++++++++------
2 files changed, 48 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2019-12-09 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09 19:32 pgsql: Improve isolationtester's timeout management. Tom Lane <tgl@sss.pgh.pa.us>
2019-12-09 19:32 pgsql: Improve isolationtester's timeout management. Tom Lane <tgl@sss.pgh.pa.us>
2019-12-09 19:32 pgsql: Improve isolationtester's timeout management. Tom Lane <tgl@sss.pgh.pa.us>
2019-12-09 19:32 pgsql: Improve isolationtester's timeout management. Tom Lane <tgl@sss.pgh.pa.us>
2019-12-09 19:32 pgsql: Improve isolationtester's timeout management. 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