Re: TAP output format in pg_regress - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: TAP output format in pg_regress
Date
Msg-id E3FDEFE1-6460-4714-BC8F-0A1693B2BED5@yesql.se
Whole thread Raw
In response to Re: TAP output format in pg_regress  (Nikolay Shaplov <dhyan@nataraj.su>)
Responses Re: TAP output format in pg_regress
List pgsql-hackers
> On 27 Nov 2022, at 11:22, Nikolay Shaplov <dhyan@nataraj.su> wrote:
> В письме от суббота, 26 ноября 2022 г. 23:35:45 MSK пользователь Daniel
> Gustafsson написал:

> I wold suggest to use word immediate instead of noatexit. This will do the
> code much more sensible for me.

I think noatexit is clearer since the codepath is specifically to avoid any
registered atexit functions.  The point of this function is to be able to call
bail while in a function registered with atexit() so I think the current name
is better.

> I've also rewritten the comment, the way I would understand it better, if I
> read it for the first time. I am not sure about my English, but key features
> there are:
>
> - "terminate process" instead of "exit". Too many exist in the sentence,
> better to use synonyms wherever is possible.

Sure, I can do that before pushing if the current version of the patch is
acceptable.

>> That would if so make the output something like the below.  Personally I
>> think the "test" prefix adds little value since everything printed are test
>> suites, and we are already today using indentation for grouping parallel
>> tests.
>
> So this extra offset indicates that test is being included into parallel
> group? Guess it not really obvious...

Grouping parallel tests via an initial list of test and then indenting each
test with whitespace was committed 22 years ago.  While there might be better
ways to do this, the lack of complaints so far at least seems to indicate that
it isn't all too terrible.

> Theoretically TAP 14 has subtests and this parallel tests looks like
> subtests... but TAP 14 is not supported by modern harnesses..

Parallel tests aren't subtests though, they are single top-level tests which
run in parallel to each other.

--
Daniel Gustafsson        https://vmware.com/




pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Perform streaming logical transactions by background workers and parallel apply
Next
From: Peter Eisentraut
Date:
Subject: Re: Non-decimal integer literals