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 1fd6W6-00027t-FG for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jul 2018 04:14:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fd6W4-0007js-RI for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jul 2018 04:14:12 +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 1fd6W4-0007jl-9L for pgsql-hackers@lists.postgresql.org; Wed, 11 Jul 2018 04:14:12 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fd6W1-0007Y6-6v for pgsql-hackers@postgresql.org; Wed, 11 Jul 2018 04:14:10 +0000 Received: by mail-pf0-x244.google.com with SMTP id y8-v6so17507473pfm.10 for ; Tue, 10 Jul 2018 21:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LII1/T5jC8/t2TYUiiPwv5rdtng6g1qtc30Aq1JRUnI=; b=gnQdfT4AgrRsqjTbonsbkO/2JgH4jAoFbRfWobEOpDd6W5sndj+6yyREVvx4Lu6as5 sVLMzBJRokLZgtkDxbGs0XTRJm3NEzV/B5EXE2JLfQljOW+x9tevRqg3NE9VytiLTu6q U5bCIcRG6DHacR3dkn5Zm1KiCs7j1HL3quDA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LII1/T5jC8/t2TYUiiPwv5rdtng6g1qtc30Aq1JRUnI=; b=MxOxj+1S+ZiByhHMFXx0ZQ2FVmUjmKKm+MYOUvZe10P2W50RGPo7dFuGYAzeWnFK2W hQLF+6YwwRWBvLRviwEq1v34vBuEwkmA0Sl5v8DcruKyMgmgn/UInMQxHCzJYgEkaCSi GEt5P2brQU0D/E+AxH2KMOUg9Mvczct9pZJdee0kwlOn8XC4DG0/LEJPfEc9/ync8pm3 TFIoOpz12+WvS6TI2lZC74YH6lqtGHOs8Phg0oC330bRoKA4Hz53bnvuUQf+/W8O5C0i si7hlML7KPh+tZyXNX+LwHmZk70CeN0H1gtkM5/TetWVvNhgFsv1LeNAGGdcUJ+Hah8o J0bg== X-Gm-Message-State: APt69E0geJ6RtQC0kn8bn112XZ4uPPEEuDz+ctGBIwYzMJHEWJ7+2oEu sEZd4vyvJ1jKWaVLQxleC+3Kmg== X-Google-Smtp-Source: AAOMgpemjpqfpmqvol7gZiid3aFpp0cJ9WrzVhWlbvDlg/Mkb9+KZrCIIqwDfkYMHzc9/RH9AhwRkw== X-Received: by 2002:a65:5c02:: with SMTP id u2-v6mr25021421pgr.304.1531282447958; Tue, 10 Jul 2018 21:14:07 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id n22-v6sm25999518pgv.60.2018.07.10.21.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 21:14:06 -0700 (PDT) Date: Tue, 10 Jul 2018 21:14:04 -0700 From: Noah Misch To: Peter Geoghegan Cc: Alvaro Herrera , Bruce Momjian , PostgreSQL Hackers , Pg Committers Subject: Re: Tips on committing Message-ID: <20180711041404.GA945895@rfd.leadboat.com> References: <20180628165214.fwx7r7xbnballusn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jun 28, 2018 at 10:52:42AM -0700, Peter Geoghegan wrote: > On Thu, Jun 28, 2018 at 9:52 AM, Alvaro Herrera > wrote: > >> FWIW, I developed a document on committing for my own reference, with > >> some help from Andres. 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 * Write log message Discussion: https://postgr.es/m/ Back-patch depth? What should the release notes say? Credit any reviewer. * Check merge with master (not applicable to commits) > > How about turning it into a wiki page, for everybody's benefit? > > 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.