pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: pg_regress: Don't use absolute paths for the diff
6+ messages / 6 participants
[nested] [flat]
* pgsql: pg_regress: Don't use absolute paths for the diff
@ 2019-02-21 18:01 Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Geoghegan <pg@bowt.ie>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Eisentraut @ 2019-02-21 18:01 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
pg_regress: Don't use absolute paths for the diff
Don't expand inputfile and outputfile to absolute paths globally, just
where needed. In particular, pass them as is to the file name
arguments of the diff command, so that we don't see the full absolute
path in the diff header, which makes the diff unnecessarily verbose
and harder to read.
Discussion: https://www.postgresql.org/message-id/0cc82900-c457-1cee-3ab2-7b0f5d215061@2ndquadrant.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1995552deb5479a50ec9044f0179f906ff7772e0
Modified Files
--------------
src/test/regress/pg_regress.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: pg_regress: Don't use absolute paths for the diff
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
@ 2019-02-22 23:18 ` Peter Geoghegan <pg@bowt.ie>
2019-02-22 23:26 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Geoghegan @ 2019-02-22 23:18 UTC (permalink / raw)
To: Peter Eisentraut <peter@eisentraut.org>; +Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
On Thu, Feb 21, 2019 at 10:01 AM Peter Eisentraut <peter@eisentraut.org> wrote:
> pg_regress: Don't use absolute paths for the diff
>
> Don't expand inputfile and outputfile to absolute paths globally, just
> where needed. In particular, pass them as is to the file name
> arguments of the diff command, so that we don't see the full absolute
> path in the diff header, which makes the diff unnecessarily verbose
> and harder to read.
This broke some of my tooling for quickly reconciling expected and
actual test outputs from my text editor.
I don't think that this was a great idea.
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: pg_regress: Don't use absolute paths for the diff
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Geoghegan <pg@bowt.ie>
@ 2019-02-22 23:26 ` Andres Freund <andres@anarazel.de>
2019-02-22 23:34 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 6+ messages in thread
From: Andres Freund @ 2019-02-22 23:26 UTC (permalink / raw)
To: Peter Geoghegan <pg@bowt.ie>; +Cc: Peter Eisentraut <peter@eisentraut.org>; pgsql-committers <pgsql-committers@lists.postgresql.org>
On 2019-02-22 15:18:51 -0800, Peter Geoghegan wrote:
> On Thu, Feb 21, 2019 at 10:01 AM Peter Eisentraut <peter@eisentraut.org> wrote:
> > pg_regress: Don't use absolute paths for the diff
> >
> > Don't expand inputfile and outputfile to absolute paths globally, just
> > where needed. In particular, pass them as is to the file name
> > arguments of the diff command, so that we don't see the full absolute
> > path in the diff header, which makes the diff unnecessarily verbose
> > and harder to read.
>
> This broke some of my tooling for quickly reconciling expected and
> actual test outputs from my text editor.
>
> I don't think that this was a great idea.
Same. The output in my local vpath build is now:
diff -du10 /home/andres/src/postgresql/src/test/regress/expected/strings.out ./results/strings.out
--- /home/andres/src/postgresql/src/test/regress/expected/strings.out 2019-02-08 23:47:42.975815837 -0800
+++ ./results/strings.out 2019-02-22 15:23:41.857719662 -0800
that's useless, because I can't trivially copy the result file into the
expected file anymore. I have to figure out where in the tree it
is. Which isn't exactly predictable, between the different tests we
have as they locate their test results in different places.
This is a bad idea.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: pg_regress: Don't use absolute paths for the diff
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Geoghegan <pg@bowt.ie>
2019-02-22 23:26 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Andres Freund <andres@anarazel.de>
@ 2019-02-22 23:34 ` Michael Paquier <michael@paquier.xyz>
2019-02-23 00:39 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 6+ messages in thread
From: Michael Paquier @ 2019-02-22 23:34 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Peter Geoghegan <pg@bowt.ie>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers <pgsql-committers@lists.postgresql.org>
On Fri, Feb 22, 2019 at 03:26:35PM -0800, Andres Freund wrote:
> that's useless, because I can't trivially copy the result file into the
> expected file anymore. I have to figure out where in the tree it
> is. Which isn't exactly predictable, between the different tests we
> have as they locate their test results in different places.
I haven't paid much attention to this commit, but the new behavior is
likely something which will become annoying in some not-so-far future
for me as well.
> This is a bad idea.
+1.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: pg_regress: Don't use absolute paths for the diff
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Geoghegan <pg@bowt.ie>
2019-02-22 23:26 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Andres Freund <andres@anarazel.de>
2019-02-22 23:34 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Michael Paquier <michael@paquier.xyz>
@ 2019-02-23 00:39 ` Stephen Frost <sfrost@snowman.net>
2019-02-23 08:42 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Frost @ 2019-02-23 00:39 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Andres Freund <andres@anarazel.de>; Peter Geoghegan <pg@bowt.ie>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers <pgsql-committers@lists.postgresql.org>
Greetings,
* Michael Paquier (michael@paquier.xyz) wrote:
> On Fri, Feb 22, 2019 at 03:26:35PM -0800, Andres Freund wrote:
> > that's useless, because I can't trivially copy the result file into the
> > expected file anymore. I have to figure out where in the tree it
> > is. Which isn't exactly predictable, between the different tests we
> > have as they locate their test results in different places.
>
> I haven't paid much attention to this commit, but the new behavior is
> likely something which will become annoying in some not-so-far future
> for me as well.
>
> > This is a bad idea.
>
> +1.
Yeah, same here, if I can't easily copy the result file into the
expected file, I'm going to be *most* annoyed...
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pgsql: pg_regress: Don't use absolute paths for the diff
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Peter Geoghegan <pg@bowt.ie>
2019-02-22 23:26 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Andres Freund <andres@anarazel.de>
2019-02-22 23:34 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Michael Paquier <michael@paquier.xyz>
2019-02-23 00:39 ` Re: pgsql: pg_regress: Don't use absolute paths for the diff Stephen Frost <sfrost@snowman.net>
@ 2019-02-23 08:42 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Eisentraut @ 2019-02-23 08:42 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
OK, reverted.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-02-23 08:42 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 18:01 pgsql: pg_regress: Don't use absolute paths for the diff Peter Eisentraut <peter@eisentraut.org>
2019-02-22 23:18 ` Peter Geoghegan <pg@bowt.ie>
2019-02-22 23:26 ` Andres Freund <andres@anarazel.de>
2019-02-22 23:34 ` Michael Paquier <michael@paquier.xyz>
2019-02-23 00:39 ` Stephen Frost <sfrost@snowman.net>
2019-02-23 08:42 ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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