| From: | "Jelte Fennema-Nio" <me(at)jeltef(dot)nl> |
|---|---|
| To: | "Pavlo Sukhanov" <pavlo(at)toothywalrus(dot)dev> |
| Cc: | <nik(at)postgres(dot)ai>, <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Python/pytest test framework take two |
| Date: | 2026-11-26 13:07:18 |
| Message-ID: | DN55YYAHBHYF.3C7QMVGXSJPJ0@jeltef.nl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, 22 Nov 2026 at 11:06, Pavlo Sukhanov <pavlo(at)toothywalrus(dot)dev> wrote:
> This is my first review on this list.
Thanks for the review! Attached is v4, which addresses almost all of it.
- Rebased, including section 11e of 049 and PG_TEST_SERVER_POSTGRES_OPTS.
- 1 (SIGTERM): SIGTERM now raises a KeyboardInterrupt subclass, so
teardown runs like on Ctrl-C. It can't be SystemExit, because pytest
treats that as a test failure and continues. pytest.exit() would be
the natural choice, but it derives from Exception instead of
BaseException (I opened a PR[1] to change that, but it'll be years
before we can rely on that). Teardown also needed to ignore
BrokenPipeError, because meson closes the output pipes right after
sending SIGTERM.
- 2 (auth): initdb now always uses trust. Like Cluster.pm, servers now
also only listen on their Unix socket (or use SSPI on Windows), since
otherwise any local user could connect over TCP.
- 3 (versions): Kept the floors. Hook wrappers are now old-style, and
timestamps are normalized on Python < 3.11. Tested with Python 3.9,
pytest
7.2.1 and pluggy 1.0.0.
- 4, 5, PG_CONFIG, README, pip install: all fixed.
- The result(timeout=...) issue I left as is: a test that catches the
timeout has decided it doesn't care about that query anymore.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | 신성준 | 2026-11-26 13:16:53 | Preserve tablespace of exclusion constraint indexes in ALTER TYPE |
| Previous Message | vignesh C | 2026-11-26 12:57:37 | Re: Wrong table in "conflicting or redundant WHERE clauses / column lists" publicaiton error |