pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Detect unused steps in isolation specs and do some cleanup
7+ messages / 2 participants
[nested] [flat]

* pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2019-08-24 02:52  Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 7+ messages in thread

From: Michael Paquier @ 2019-08-24 02:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Detect unused steps in isolation specs and do some cleanup

This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.

While on it, clean up all the specs which include steps not used in any
permutations to simplify them.

Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/989d23b04beac0c26f44c379b04ac781eaa4265e

Modified Files
--------------
src/test/isolation/isolationtester.c                  | 19 ++++++++++++++++++-
src/test/isolation/isolationtester.h                  |  1 +
src/test/isolation/specparse.y                        |  1 +
src/test/isolation/specs/freeze-the-dead.spec         |  3 ---
.../isolation/specs/insert-conflict-do-nothing.spec   |  1 -
.../isolation/specs/insert-conflict-do-update-2.spec  |  1 -
.../isolation/specs/insert-conflict-do-update.spec    |  1 -
src/test/isolation/specs/sequence-ddl.spec            |  1 -
.../specs/tuplelock-upgrade-no-deadlock.spec          |  3 ---
9 files changed, 20 insertions(+), 11 deletions(-)



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

* Re: pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2019-08-24 03:07  Stephen Frost <sfrost@snowman.net>
  parent: Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 7+ messages in thread

From: Stephen Frost @ 2019-08-24 03:07 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org

Greetings,

* Michael Paquier (michael@paquier.xyz) wrote:
> Detect unused steps in isolation specs and do some cleanup
> 
> This is useful for developers to find out if an isolation spec is
> over-engineered or if it needs more work by warning at the end of a
> test run if a step is not used, generating a failure with extra diffs.
> 
> While on it, clean up all the specs which include steps not used in any
> permutations to simplify them.

Buildfarm didn't particularly like this.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

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

* Re: pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2019-08-24 03:36  Michael Paquier <michael@paquier.xyz>
  parent: Stephen Frost <sfrost@snowman.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2019-08-24 03:36 UTC (permalink / raw)
  To: Stephen Frost <sfrost@snowman.net>; +Cc: pgsql-committers@lists.postgresql.org

On Fri, Aug 23, 2019 at 11:07:49PM -0400, Stephen Frost wrote:
> Buildfarm didn't particularly like this.

Thanks, I have noticed that.  The problem should be fixed now thanks
to 06fdc4e.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

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

* pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2021-06-17 02:58  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2021-06-17 02:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Detect unused steps in isolation specs and do some cleanup

This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.

While on it, clean up all the specs which include steps not used in any
permutations to simplify them.

This is a backpatch of 989d23b and 06fdc4e, as it is becoming useful to
make all the branches consistent for an upcoming patch that will improve
the output generated by isolationtester.

Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz
Discussion: https://postgr.es/m/794820.1623872009@sss.pgh.pa.us
Backpatch-through: 9.6

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/96f3661e4540db1f45709c5f098aeecc6e9df271

Modified Files
--------------
.../test_decoding/specs/concurrent_ddl_dml.spec    |  9 -----
contrib/test_decoding/specs/snapshot_transfer.spec |  1 -
.../isolation/expected/eval-plan-qual-trigger.out  |  2 +-
src/test/isolation/isolationtester.c               | 19 ++++++++++-
src/test/isolation/isolationtester.h               |  1 +
src/test/isolation/specparse.y                     |  1 +
.../isolation/specs/eval-plan-qual-trigger.spec    | 38 +++++++++++-----------
src/test/isolation/specs/freeze-the-dead.spec      |  3 --
.../specs/insert-conflict-do-nothing.spec          |  1 -
.../specs/insert-conflict-do-update-2.spec         |  1 -
.../isolation/specs/insert-conflict-do-update.spec |  1 -
src/test/isolation/specs/sequence-ddl.spec         |  1 -
.../specs/tuplelock-upgrade-no-deadlock.spec       |  3 --
13 files changed, 40 insertions(+), 41 deletions(-)



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

* pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2021-06-17 02:58  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2021-06-17 02:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Detect unused steps in isolation specs and do some cleanup

This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.

While on it, clean up all the specs which include steps not used in any
permutations to simplify them.

This is a backpatch of 989d23b and 06fdc4e, as it is becoming useful to
make all the branches consistent for an upcoming patch that will improve
the output generated by isolationtester.

Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz
Discussion: https://postgr.es/m/794820.1623872009@sss.pgh.pa.us
Backpatch-through: 9.6

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8f32299424d90b0dab792bf96a5b0e3a62cc63da

Modified Files
--------------
.../test_decoding/specs/concurrent_ddl_dml.spec    |  9 -----
contrib/test_decoding/specs/snapshot_transfer.spec |  1 -
.../isolation/expected/eval-plan-qual-trigger.out  |  2 +-
src/test/isolation/isolationtester.c               | 19 ++++++++++-
src/test/isolation/isolationtester.h               |  1 +
src/test/isolation/specparse.y                     |  1 +
.../isolation/specs/eval-plan-qual-trigger.spec    | 38 +++++++++++-----------
src/test/isolation/specs/freeze-the-dead.spec      |  3 --
.../specs/insert-conflict-do-nothing.spec          |  1 -
.../specs/insert-conflict-do-update-2.spec         |  1 -
.../isolation/specs/insert-conflict-do-update.spec |  1 -
.../isolation/specs/partition-key-update-1.spec    |  1 -
src/test/isolation/specs/sequence-ddl.spec         |  1 -
.../specs/tuplelock-upgrade-no-deadlock.spec       |  3 --
14 files changed, 40 insertions(+), 42 deletions(-)



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

* pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2021-06-17 02:58  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2021-06-17 02:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Detect unused steps in isolation specs and do some cleanup

This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.

While on it, clean up all the specs which include steps not used in any
permutations to simplify them.

This is a backpatch of 989d23b and 06fdc4e, as it is becoming useful to
make all the branches consistent for an upcoming patch that will improve
the output generated by isolationtester.

Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz
Discussion: https://postgr.es/m/794820.1623872009@sss.pgh.pa.us
Backpatch-through: 9.6

Branch
------
REL_10_STABLE

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

Modified Files
--------------
.../test_decoding/specs/concurrent_ddl_dml.spec    |  9 -----
contrib/test_decoding/specs/snapshot_transfer.spec |  1 -
.../isolation/expected/eval-plan-qual-trigger.out  |  2 +-
src/test/isolation/isolationtester.c               | 19 ++++++++++-
src/test/isolation/isolationtester.h               |  1 +
src/test/isolation/specparse.y                     |  1 +
.../isolation/specs/eval-plan-qual-trigger.spec    | 38 +++++++++++-----------
src/test/isolation/specs/freeze-the-dead.spec      |  3 --
.../specs/insert-conflict-do-nothing.spec          |  1 -
.../specs/insert-conflict-do-update-2.spec         |  1 -
.../isolation/specs/insert-conflict-do-update.spec |  1 -
src/test/isolation/specs/sequence-ddl.spec         |  1 -
.../specs/tuplelock-upgrade-no-deadlock.spec       |  3 --
13 files changed, 40 insertions(+), 41 deletions(-)



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

* pgsql: Detect unused steps in isolation specs and do some cleanup
@ 2021-06-17 02:58  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 7+ messages in thread

From: Michael Paquier @ 2021-06-17 02:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Detect unused steps in isolation specs and do some cleanup

This is useful for developers to find out if an isolation spec is
over-engineered or if it needs more work by warning at the end of a
test run if a step is not used, generating a failure with extra diffs.

While on it, clean up all the specs which include steps not used in any
permutations to simplify them.

This is a backpatch of 989d23b and 06fdc4e, as it is becoming useful to
make all the branches consistent for an upcoming patch that will improve
the output generated by isolationtester.

Author: Michael Paquier
Reviewed-by: Asim Praveen, Melanie Plageman
Discussion: https://postgr.es/m/20190819080820.GG18166@paquier.xyz
Discussion: https://postgr.es/m/794820.1623872009@sss.pgh.pa.us
Backpatch-through: 9.6

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/484c81bf7765862a02a2866466b140a097e36c8c

Modified Files
--------------
.../test_decoding/specs/concurrent_ddl_dml.spec    |  9 -----
contrib/test_decoding/specs/snapshot_transfer.spec |  1 -
.../isolation/expected/eval-plan-qual-trigger.out  |  2 +-
src/test/isolation/isolationtester.c               | 19 ++++++++++-
src/test/isolation/isolationtester.h               |  1 +
src/test/isolation/specparse.y                     |  1 +
.../isolation/specs/eval-plan-qual-trigger.spec    | 38 +++++++++++-----------
src/test/isolation/specs/freeze-the-dead.spec      |  3 --
.../specs/insert-conflict-do-nothing.spec          |  1 -
.../specs/insert-conflict-do-update-2.spec         |  1 -
.../isolation/specs/insert-conflict-do-update.spec |  1 -
.../specs/tuplelock-upgrade-no-deadlock.spec       |  3 --
12 files changed, 40 insertions(+), 40 deletions(-)



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


end of thread, other threads:[~2021-06-17 02:58 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-08-24 02:52 pgsql: Detect unused steps in isolation specs and do some cleanup Michael Paquier <michael@paquier.xyz>
2019-08-24 03:07 ` Stephen Frost <sfrost@snowman.net>
2019-08-24 03:36   ` Michael Paquier <michael@paquier.xyz>
2021-06-17 02:58 pgsql: Detect unused steps in isolation specs and do some cleanup Michael Paquier <michael@paquier.xyz>
2021-06-17 02:58 pgsql: Detect unused steps in isolation specs and do some cleanup Michael Paquier <michael@paquier.xyz>
2021-06-17 02:58 pgsql: Detect unused steps in isolation specs and do some cleanup Michael Paquier <michael@paquier.xyz>
2021-06-17 02:58 pgsql: Detect unused steps in isolation specs and do some cleanup Michael Paquier <michael@paquier.xyz>

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