Re: RFC: adding pytest as a supported test framework - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: RFC: adding pytest as a supported test framework
Date
Msg-id DH2K7UQ0S6Z8.13OLYFR32GEGB@jeltef.nl
Whole thread Raw
In response to Re: RFC: adding pytest as a supported test framework  ("Jelte Fennema-Nio" <postgres@jeltef.nl>)
List pgsql-hackers
On Sun Mar 1, 2026 at 11:16 PM CET, Jelte Fennema-Nio wrote:
> These patches caused CI to fail after the addition of the protocol
> grease (4966bd3ed95). I fixed the tests (by forcing usage of 3.2), but I
> attached them as nocfbot now, so that they can't be the reason that CI
> fails again.

Turns out one of the nocfbot patches was needed to have MacOS passing in
CI due to:

    PYTEST_DEBUG_TEMPROOT: /tmp  # default is too long for UNIX sockets on Mac

I've removed that now and am using shorter temp paths for UNIX sockets
always now, so that people running tests locally on MacOS don't run into
this problem either.

I've also improved the inclusion of Postgres logs in the failure report.
They are now split by phase (setup, test, teardown) and are also shown
when the server failed to start up.

Attachment

pgsql-hackers by date:

Previous
From: "Jelte Fennema-Nio"
Date:
Subject: Re: Safer hash table initialization macro
Next
From: Henson Choi
Date:
Subject: Re: Row pattern recognition