pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Detect unused steps in isolation specs and do some cleanup
Date: Sat, 24 Aug 2019 02:52:51 +0000
Message-ID: <E1i1MAd-0005cr-TR@gemulon.postgresql.org> (raw)

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(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1i1MAd-0005cr-TR@gemulon.postgresql.org>
Permalink:  ../E1i1MAd-0005cr-TR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i1MAd-0005cr-TR@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Detect unused steps in isolation specs and do some cleanup
  In-Reply-To: <E1i1MAd-0005cr-TR@gemulon.postgresql.org>
  References: <E1i1MAd-0005cr-TR@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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