Re: pg_regress: schedule multi-line test groups

From: Alexandre Felipe <o(dot)alexandre(dot)felipe(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Michael Paquier <michael(at)paquier(dot)xyz>, Daniel Gustafsson <daniel(at)yesql(dot)se>
Subject: Re: pg_regress: schedule multi-line test groups
Date: 2026-11-23 20:33:24
Message-ID: CAE8JnxOti_c4nSjDcvPXMd4DtiC31SHB3ueGpW4_uTbkq231jQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Nov 22, 2026 at 9:15 PM Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
wrote:

> Wouldn't it be better to first discuss 0001, and leave 2-5 for later?
>

Up to you.

> There is a bit complexity to it than just picking from a pool since there
> are inter-suite dependencies.

Exactly, and the schedule language can't express that. There are a few
comments,
but as we know, good comments don't make the code work.

Currently the conflicting, or dependencies are ordered by placing them in
different
batches (that implies a fence between them)
instead of
17: test: \
35: rangetypes \
44: test: \
45: strings \
64: multirangetypes
71: test: \
77: opr_sanity

It works, but doesn't express the intent.

For that what I am suggesting is to put the related tests in one single
group that expresses the relation more clearly.

e.g.
+ test sequentially: rangetypes (multirangetypes strings) type_sanity

We could choose other schemes, like the makefile syntax, but I like
this approach because we don't have to do string lookups.
And if we want to run the same tests multiple times it is also fine.

things like
+ test sequentially: setup part1 reconfigure part1 part2

where test1 is evaluated twice with different initial states.

The grammar comment says test-name = [^ \t\n\r\\#]+, but the code uses
> a byte range:

Fixed,
making the test name [^ \t\n\r#\\,:()]+ in addition to the characters in use
,
I am reserving the comma and colon.
I just noticed an implicit TESTNAME_WIDTH=36 but that was never a hard
limit.

Regards,
Alexandre.

Attachment Content-Type Size
v3.1-0004-pg_regress-pool-instead-of-batches.patch application/octet-stream 6.9 KB
v3.1-0005-pg_regress-concurrent-and-sequential-groups.patch application/octet-stream 8.8 KB
v3.1-0003-pg_regress-dependency-graph.patch application/octet-stream 8.5 KB
v3.1-0002-pg_regress-report-group-effective-concurrency.patch application/octet-stream 3.4 KB
v3.1-0001-pg_regress-multi-line-test-groups.patch application/octet-stream 20.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-11-23 20:46:14 Re: Compression of bigger WAL records
Previous Message Nathan Bossart 2026-11-23 20:11:20 Re: simplehash: Undefine SH_RAW_ALLOCATOR after inclusion