From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
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:58:17 |
Message-ID: | 2368400.1704873497@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> writes:
> On Wed, Jan 10, 2024 at 12:54 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> 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.
Well, we expect committers to know what they're doing. I'm not
quite suggesting that committers add "export I_AM_A_PG_COMMITTER=1"
in their ~/.profile and then have the Makefiles check that to decide
what tests are invoked by "make check-world" ... but it doesn't
seem like a totally untenable idea, either.
> 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.
But that puts the burden of pgindent-cleanliness onto initial patch
submitters, which I think is the wrong thing for reasons mentioned
upthread. We want to enforce this at commit into the master repo, but
I fear enforcing it earlier will drive novice contributors away for
no very good reason.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | John Naylor | 2024-01-10 08:00:23 | Re: generate syscache info automatically |
Previous Message | Masahiko Sawada | 2024-01-10 07:53:48 | Re: Make COPY format extendable: Extract COPY TO format implementations |