Re: [HACKERS] A note about debugging TAP failures - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [HACKERS] A note about debugging TAP failures
Date
Msg-id 20170422220656.4xx6o6gxwshyfyth@alap3.anarazel.de
Whole thread Raw
In response to Re: [HACKERS] A note about debugging TAP failures  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: [HACKERS] A note about debugging TAP failures  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
On 2017-04-22 23:59:11 +0200, Daniel Gustafsson wrote:
> Since we have the name of the running testscript, can’t we just add that to the
> tempdir to make the name more descriptive?  With the attached patch I get
> tmp_check/001_pgbench_data_main_ItEm when running tests in src/bin/pgbench for
> example which gives a decent clue to what was executed.  To allow for
> retain-on-success, checking for an environment variable in the cleanup phase
> seems the simplest approach.

Because it means we'd still, by default, have to delete on
failure. Otherwise you'd end up with an endless number of such partial
directories.  There's really no reason to do delete a failed directory
ever, since the space usage is obviously bound.

As there appears to be no benefit in the randomness of these
directories, why work on retaining it?

- Andres



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: [HACKERS] A note about debugging TAP failures
Next
From: Daniel Gustafsson
Date:
Subject: Re: [HACKERS] A note about debugging TAP failures