From: Peter Geoghegan <pg@bowt.ie>
To: Noah Misch <noah@leadboat.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Pg Committers <pgsql-committers@postgresql.org>
Subject: Re: Tips on committing
Date: Wed, 11 Jul 2018 16:35:33 -0700
Message-ID: <CAH2-WzmiyqnpF5b9Psk0X-Rn7omrpjP5CONzMX+jYzcN6Z44Sw@mail.gmail.com> (raw)
In-Reply-To: <20180711041404.GA945895@rfd.leadboat.com>
References: <CAH2-WzktkdJ4GCU=0aMpQ6KiC8pv-zsOy-Mc0m4isS7BP-9Z2Q@mail.gmail.com>
<20180628165214.fwx7r7xbnballusn@alvherre.pgsql>
<CAH2-Wz=BkTRfYB9az=G3roKR7d=ob0kDhEkvL8oDPn1XKYDeyg@mail.gmail.com>
<20180711041404.GA945895@rfd.leadboat.com>
On Tue, Jul 10, 2018 at 9:14 PM, Noah Misch <noah@leadboat.com> wrote:
> My rule has been to add to my private checklist anytime I mail or push a patch
> containing a readily-checkable mistake. I go through the checklist before
> mailing or pushing any patch. It has things in common with your list, plus
> these:
>
> * Validate err*() calls against https://www.postgresql.org/docs/devel/static/error-style-guide.html
> * Validate *printf calls for trailing newlines
>
> * Spellcheck the patch
>
> * Verify long lines are not better broken
> git diff origin/master | grep -E '^(\+|diff)' | sed 's/^+//' | expand -t4 | awk "length > 78 || /^diff/"
>
> * Run pgindent on changed files; keep the changes I made necessary
>
> * Update version numbers, if needed
> CATALOG_VERSION_NO, PG_CONTROL_VERSION, XLOG_PAGE_MAGIC, PGSTAT_FILE_FORMAT_ID
I'm going to use some of these, myself.
>> I'll try to do that, but I'd still recommend personalizing it. A lot
>> of the stuff in there is specific to my own workflow and tool
>> preferences, and my own personal working style.
>
> I agree we won't all want the exact same checklist. Still, it wouldn't hurt
> to have a wiki page of checklist entry ideas from which folks cherry-pick the
> entries they like.
You've convinced me that we should definitely have such a list. I've
put it on my TODO list.
--
Peter Geoghegan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: pg@bowt.ie, noah@leadboat.com, alvherre@2ndquadrant.com, bruce@momjian.us, pgsql-hackers@postgresql.org
Subject: Re: Tips on committing
In-Reply-To: <CAH2-WzmiyqnpF5b9Psk0X-Rn7omrpjP5CONzMX+jYzcN6Z44Sw@mail.gmail.com>
References: <CAH2-WzktkdJ4GCU=0aMpQ6KiC8pv-zsOy-Mc0m4isS7BP-9Z2Q@mail.gmail.com> <20180628165214.fwx7r7xbnballusn@alvherre.pgsql> <CAH2-Wz=BkTRfYB9az=G3roKR7d=ob0kDhEkvL8oDPn1XKYDeyg@mail.gmail.com> <20180711041404.GA945895@rfd.leadboat.com> <CAH2-WzmiyqnpF5b9Psk0X-Rn7omrpjP5CONzMX+jYzcN6Z44Sw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox