Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-29 Thread David G. Johnston
On Thursday, May 29, 2025, Ashutosh Bapat wrote: > > On Fri, May 16, 2025 at 1:45 PM Jelte Fennema-Nio wrote: > >> On Fri, 16 May 2025 at 12:24, Jacob Champion >> wrote: >> > >> > On Fri, May 16, 2025 at 12:12 PM Tom Lane wrote: >> > > That outcome seems entirely horrible to me. If you want to

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-29 Thread Ashutosh Bapat
On Fri, May 16, 2025 at 1:45 PM Jelte Fennema-Nio wrote: > On Fri, 16 May 2025 at 12:24, Jacob Champion > wrote: > > > > On Fri, May 16, 2025 at 12:12 PM Tom Lane wrote: > > > That outcome seems entirely horrible to me. If you want to flag the > lack > > > of a commit message somehow, fine, bu

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-19 Thread Florents Tselai
> On 19 May 2025, at 6:10 PM, Jacob Champion > wrote: > > On Mon, May 19, 2025 at 6:23 AM Aleksander Alekseev > wrote: >> In my experience people who have been contributing for some time use >> format-patch and provide at least a draft of the commit message, >> because they know it's more co

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-19 Thread Jacob Champion
On Mon, May 19, 2025 at 6:23 AM Aleksander Alekseev wrote: > In my experience people who have been contributing for some time use > format-patch and provide at least a draft of the commit message, > because they know it's more convenient both for the reviewers (the > patch has better chances to be

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-19 Thread Aleksander Alekseev
Hi, > > Is this really lowering the bar for new contributors? I've always held "be > > liberal in what you accept" as a gold standard for projects I'm involved > > in, to > > remove barriers to entry. Good commit messages are obviously very > > important, > > but having your patch rejected (ye

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Tom Lane
Jelte Fennema-Nio writes: > Okay, reasonable feedback. How about we add a CI job that does a > "quality check". That's much less strong, as all the other tests will > still run, but people would get a failing CI job which tells them that > something is wrong. We could also include a pgindent in th

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Jelte Fennema-Nio
On Fri, 16 May 2025 at 12:05, Daniel Gustafsson wrote: > > > On 16 May 2025, at 11:52, Jelte Fennema-Nio wrote: > > > Does anyone have strong opposition to this? To be clear, it means we don't > > run CI on patches created by piping "git diff" to a file anymore, as a way > > to nudge submitter

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Jelte Fennema-Nio
On Fri, 16 May 2025 at 12:24, Jacob Champion wrote: > > On Fri, May 16, 2025 at 12:12 PM Tom Lane wrote: > > That outcome seems entirely horrible to me. If you want to flag the lack > > of a commit message somehow, fine, but don't prevent CI from running. > > Personally I also prefer nudges to g

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Jacob Champion
On Fri, May 16, 2025 at 12:12 PM Tom Lane wrote: > That outcome seems entirely horrible to me. If you want to flag the lack > of a commit message somehow, fine, but don't prevent CI from running. Personally I also prefer nudges to gates. Just like people already deprioritize "Waiting on Author"

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Tom Lane
Jelte Fennema-Nio writes: > Based on the discussion there I'm planning to make the cfbot fail to apply > a patch in the following two cases: > ... > To be clear, it means we don't > run CI on patches created by piping "git diff" to a file anymore, as a way > to nudge submitters into providing use

Re: Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Daniel Gustafsson
> On 16 May 2025, at 11:52, Jelte Fennema-Nio wrote: > Does anyone have strong opposition to this? To be clear, it means we don't > run CI on patches created by piping "git diff" to a file anymore, as a way > to nudge submitters into providing useful commit messages. Disclaimer: I wasn't in t

Proposal: Make cfbot fail on patches not created by "git format-patch"

2025-05-16 Thread Jelte Fennema-Nio
In the "Scaling PostgreSQL Development" unconference session. One of the problems that came up was that people don't follow "best practices". The response to that was that people don't know what the best practices are (nor that they are important to follow), because we don't enforce them. Based on