Re: meson: Make test output much more useful on failure (both in CI and locally) - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: meson: Make test output much more useful on failure (both in CI and locally)
Date
Msg-id DH4ZF4BENK7C.IXW5BEFGMFHQ@jeltef.nl
Whole thread Raw
In response to Re: meson: Make test output much more useful on failure (both in CI and locally)  (Zsolt Parragi <zsolt.parragi@percona.com>)
List pgsql-hackers
On Wed Mar 4, 2026 at 11:56 PM CET, Zsolt Parragi wrote:
> Previously this printed a line about running the command even on
> success, and the new version removes that. Was this intentional? It's
> not mentioned in the commit message and that seems like a useful
> feature to me.

Fixed this now. I also fixed two off-by-one errors in counting the
number of outputted lines (found by local AI review).

And I also changed the logic to write to the diff file to close and
re-open, because I realized that on Windows the new logic would create
these errors when trying to write to the diffs file:

[09:00:49.251] stderr:
[09:00:49.251] The process cannot access the file because it is being used by another process.
[09:00:49.251] The process cannot access the file because it is being used by another process.
[09:00:49.251] The process cannot access the file because it is being used by another process.
[09:00:49.251] The process cannot access the file because it is being used by another process.
[09:00:49.251] # 4 of 239 tests failed.
[09:00:49.251] # The differences that caused some tests to fail can be viewed in the file
"C:/cirrus/build/testrun/regress/regress/regression.diffs".
[09:00:49.251] # A copy of the test summary that you see above is saved in the file
"C:/cirrus/build/testrun/regress/regress/regression.out".
[09:00:49.251]

Finally I added a new commit which starts to use command_ok in
002_pg_upgrade.pl and 027_stream_regress.pl to get the new nicer output.

Attachment

pgsql-hackers by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: Read-only connection mode for AI workflows.
Next
From: Matsumura, Ryo/松村 量
Date:
Subject: Re: [PATCH] Docs: clarify default values of EXPLAIN BUFFERS and SERIALIZE