Re: CI: Add task that runs pgindent
Nazir Bilal Yavuz <byavuz81@gmail.com>
From: Nazir Bilal Yavuz <byavuz81@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Florents Tselai <florents.tselai@gmail.com>,
Jelte Fennema-Nio <me@jeltef.nl>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-10-21T14:10:15Z
Lists: pgsql-hackers
Hi, On Tue, 21 Oct 2025 at 16:46, Daniel Gustafsson <daniel@yesql.se> wrote: > > > On 21 Oct 2025, at 15:39, Florents Tselai <florents.tselai@gmail.com> wrote: > > > > That wouldn’t preclude having a CI task as well, of course. > > The hook would mainly help contributors catch formatting issues locally, while the CI task would serve as a failsafe for committers. > > One common argument against enforcing proper indentation in submissions is that > it adds a barrier to entry, I think this patch targets two type of people, those who know how to run CI but: 1- Do not know how to run indentation checks 2- Forgot to run indentation checks For #1, perhaps we could print a note suggesting people check "src/tools/pgindent/README" when formatting fails. This might help lower the barrier. Though it is possible it could raise it instead, I am not entirely sure. For #2, I think this patch is clearly helpful. We can discuss if it is worth it to spend CI credits, though. -- Regards, Nazir Bilal Yavuz Microsoft