Re: Add BF member koel-like indentation checks to SanityCheck CI

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, John Naylor <johncnaylorls(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tristan Partin <tristan(at)neon(dot)tech>, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add BF member koel-like indentation checks to SanityCheck CI
Date: 2024-01-10 07:44:58
Message-ID: CALj2ACVYDYOQ-bWvJHqp4bEfBvZxx0z=a_PzVhfVJj7vomvOeQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jan 10, 2024 at 12:54 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Michael Paquier <michael(at)paquier(dot)xyz> writes:
> > On Wed, Jan 10, 2024 at 01:25:36AM -0500, Tom Lane wrote:
> >> So that leads to the conclusion that I wouldn't want an automatic
> >> pgindent check to happen during "make all" or "make check", because
> >> I want those things to succeed before I consider pgindent'ing.
> >> Maybe it's okay to include it as part of check-world, but I'm
> >> not quite sure about that either.
>
> > Another possibility would be to hide the test behind a PG_TEST_EXTRA.
>
> Yeah. I'm not quite sure what's a good way to make this work, but
> it seems like having "make check-world" always invoke it would not
> be desirable. Making that conditional on an environment variable
> setting could be a better idea, perhaps?

It's easy to miss setting the environment variable and eventually end
up with code incompatible with pgindent committed. IMO, running the
pgindent in at least one of the CI systems if not all (either as part
task SyanityCheck or task Linux - Debian Bullseye - Autoconf) help
catches things early on in CF bot runs itself. This saves committers
time but at the cost of free run-time that cirrus-ci provides.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeevan Chalke 2024-01-10 07:49:04 Re: More new SQL/JSON item methods
Previous Message Masahiko Sawada 2024-01-10 07:42:07 Re: POC PATCH: copy from ... exceptions to: (was Re: VLDB Features)