Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdOeN-0001dx-Lw for pgsql-committers@arkaria.postgresql.org; Wed, 11 Jul 2018 23:35:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdOeL-00076o-S7 for pgsql-committers@arkaria.postgresql.org; Wed, 11 Jul 2018 23:35:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdOeL-00076h-Jy for pgsql-committers@lists.postgresql.org; Wed, 11 Jul 2018 23:35:57 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fdOeI-0008OH-TX for pgsql-committers@postgresql.org; Wed, 11 Jul 2018 23:35:56 +0000 Received: by mail-oi0-x243.google.com with SMTP id s198-v6so52450899oih.11 for ; Wed, 11 Jul 2018 16:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bowt-ie.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q9xg2j6GoYuC9zMINYKpwiRs8zfB2vnQtY/Rfy8rEkg=; b=ThIflH8SuFRE7RJi8zrEhvofQXUltJNko0V2bLaw8JTUoxHGzyb8GBMyRbPYNcb8Zw B9Up7OK479d14lPmK4eJ8kxHC+XxzY9MX9kV2JkEMtsI3/HjxpzzwXQehz9xwysyqLh2 XgvG8E3OmG7nkbYFLvayrRmadjlRDRsmD8chVDRQCPY75N8jCIg0WY4aNezmyTaZkNPt 6u8vYBsjwEuUmvT1kURhQwq74PgZYhUxSSL0WYU8PdcE4de6pofqNrw+7HaOL2YEOAlx 3CgTtzIensgB64/SFePX5ZGDL0MU6wIAZyW+i4Y52FG9wp3WHRFWHJ8k0g5KCuC7VgOd ue+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q9xg2j6GoYuC9zMINYKpwiRs8zfB2vnQtY/Rfy8rEkg=; b=BWE0PU0j/r+s8PrvsEN4Lvcm5ThDgq+LdnBSgNRxHcMztu9haCsU+SQQ7WQwt0/vnr FjThfhjYCO9p1Pj5Ym8NXBktaWtyyLn4cxyLvfDLVstHkl9hz4W3Fnn+Y6cJl2ZfaKlY 99a/BzODwo07SNmz1ymo+SjfAzanZ5ZBQTQmggxlG9TWlSKYSShUpQRCzJabJ1HJSBcL qCNn2ThwQUHAB2fv1azctNvXHM4tzgbZSnOBhcJEuVccB8qEL16X+TLd90eA8VHVEXWT cSFfiOYMOBRp8GlUW/qve9Y5DlkI8Clox9C/E6SxDlx73ZKS3p7iQi0H/GZKZ1VpI6jt V4rQ== X-Gm-Message-State: AOUpUlFWHz3R6lrQVdC9NubQ9dISxrVkKOKblZiCdLdM04SDv+VAsm5+ 8CoGTKFpCcay0gGZl0xZaIt+RX8BmBP//Tk6wtB2Oxx5oks= X-Google-Smtp-Source: AAOMgpde9QgY+OKqhQoOWtWl++rvMS75hW2VSnPdXopYqQxK+WHvUM3lgxPXGjBgXVSxuKX4MtcYi9/240fRob1g8BM= X-Received: by 2002:aca:dc55:: with SMTP id t82-v6mr802705oig.159.1531352153879; Wed, 11 Jul 2018 16:35:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:5134:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 16:35:33 -0700 (PDT) In-Reply-To: <20180711041404.GA945895@rfd.leadboat.com> References: <20180628165214.fwx7r7xbnballusn@alvherre.pgsql> <20180711041404.GA945895@rfd.leadboat.com> From: Peter Geoghegan Date: Wed, 11 Jul 2018 16:35:33 -0700 Message-ID: Subject: Re: Tips on committing To: Noah Misch Cc: Alvaro Herrera , Bruce Momjian , PostgreSQL Hackers , Pg Committers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jul 10, 2018 at 9:14 PM, Noah Misch 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