| From: | Alexandre Felipe <o(dot)alexandre(dot)felipe(at)gmail(dot)com> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz> |
| Cc: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Daniel Gustafsson <daniel(at)yesql(dot)se> |
| Subject: | Re: pg_regress: schedule multi-line test groups |
| Date: | 2026-11-22 20:17:49 |
| Message-ID: | CAE8JnxPU+gJu5bo9qRFJgs6M7wAB5NCcjCmE+JhLLx2W_Q8a2Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Nov 20, 2026 at 12:38 AM Michael Paquier <michael(at)paquier(dot)xyz>
wrote:
> While reading through this patch, I am wondering if it would not be
> better to support backslashes instead of an arbitrary amount of spaces
> a-la-yaml for each group, like:
> +test: \
> + boolean \
> + char \
> + name \
>
Implemented that way in v3.0 (we can go back any time)
And that may actually make the patch simpler overall with less
> hardcoded rules arount "test:". I can see that 0001 adds two more of
> them, reducing the code readability.
Refactored that using a recursive parser, with schedule_read_group,
schedule_read_item, and schedule_read_name, and a few helpers
for reading lines and skipping spaces and comments
0002 provides a cute metric, but I doubt that it is strictly
> necessary. Performance matters for grouping, but that's not the only
> reason why we have groups: we want some organization as well.
v3.0 implements more flexible execution strategies through
concurrent and sequential test groups in addition to batch test groups.
0001 is similar to v2, but uses `\` for line continuation.
0002 computes group concurrency like v2 and measure regression concurrency.
0003 implements the same behaviour but reading the schedule file
as a dependency graph.
0004 wait tests one by one instead of waiting for all tests and
here the test groups are not limited to the test concurrency.
make check MAX_CONNECTIONS=4
(before) schedule effective concurrency 1.33, 37.57 seconds
(after) schedule effective concurrency 2.18, 24.90 seconds
I am curious to see whether this will show up on the CI run.
0005 implements concurrent groups and sequential groups
alongside existing batch groups.
a) batch, works exactly as before, one test group is ran as a batch.
The runner waits until every test finishes before scheduling any
test of the next group.
b) concurrent group: all tests can run concurrently both with tests
in the same group and tests in different groups.
c) sequential group: tests from sequential groups run concurrently
with tests in other groups. The tests might be grouped in items
+test sequentially: \
+ (hash_index brin) amutils
where hash_index and brin must finish before amutils can start.
as I modified parallel_schedule to bring more effective concurrency
Some test started to fail, e.g. two tests creating an index named "pk"
But that brought only a marginal gain.
Regards,
Alexandre
| Attachment | Content-Type | Size |
|---|---|---|
| v3.0-0002-pg_regress-report-group-effective-concurrency.patch | application/octet-stream | 3.4 KB |
| v3.0-0003-pg_regress-dependency-graph.patch | application/octet-stream | 8.6 KB |
| v3.0-0001-pg_regress-multi-line-test-groups.patch | application/octet-stream | 21.1 KB |
| v3.0-0005-pg_regress-concurrent-and-sequential-groups.patch | application/octet-stream | 15.7 KB |
| v3.0-0004-pg_regress-pool-instead-of-batches.patch | application/octet-stream | 6.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zsolt Parragi | 2026-11-22 21:15:52 | Re: pg_regress: schedule multi-line test groups |
| Previous Message | Stepan Neretin | 2026-11-22 18:16:33 | [PATCH 0/2] Parallelizing the archiver |