Re: Cleanup isolation specs from unused steps
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Michael Paquier <michael@paquier.xyz>,
Melanie Plageman <melanieplageman@gmail.com>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-08-20T13:47:22Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes: > On 2019-Aug-20, Michael Paquier wrote: >> On Mon, Aug 19, 2019 at 10:23:19AM -0700, Melanie Plageman wrote: >>> Could you do the check that all steps have been used in dry_run mode >>> instead of when running the tests for real? >> Sure, I was hesitating to do so. I have no issue in moving the check >> into run_testspec(). So done as attached. > I created the dry-run mode to be able to easily generate the set of > possible permutations for a new test, then edit the result and put it > back in the spec file; but after the deadlock tests were added (with > necessary hacking of the lock-detection in isolationtester) that manner > of operation became almost completely useless. Maybe we need to rethink > what facilities isolationtester offers -- possibly making dry-run have a > completely different behavior than currently, which I doubt anybody is > using. Hm, does that mean that this version of the patch would fail to warn during a normal run? Doesn't sound good, since as Alvaro says, hardly anyone uses dry-run. If you can warn in both cases, that'd be OK perhaps. But Alvaro's description of the intended use of dry-run makes it sound like it would be expected for there to be unreferenced steps, since there'd be no permutations yet in the input. regards, tom lane
Commits
-
Detect unused steps in isolation specs and do some cleanup
- 484c81bf7765 9.6.23 landed
- feac82fa8550 10.18 landed
- 8f32299424d9 11.13 landed
- 96f3661e4540 12.8 landed
- 989d23b04bea 13.0 landed
-
Remove dry-run mode from isolationtester
- b7cd5c5b02fa 9.6.23 landed
- 0ed218048932 10.18 landed
- 834cb7269166 11.13 landed
- a8f687927eea 12.8 landed
- 9903338b5ea5 13.0 landed