Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joseph Myers via Gdb <gdb@sourceware.org>
To: Carlos O'Donell <carlos@redhat.com>
Cc: gcc@gcc.gnu.org, libc-alpha@sourceware.org,
	binutils@sourceware.org,  gdb@sourceware.org
Subject: Re: On pull request workflows for the GNU toolchain
Date: Fri, 20 Sep 2024 20:41:48 +0000 (UTC)	[thread overview]
Message-ID: <927637c6-c0ac-1efe-b1ae-d2dfdbcfc02a@redhat.com> (raw)
In-Reply-To: <975a575f-1284-4902-81a9-331e4d1f90d4@redhat.com>

On Fri, 20 Sep 2024, Carlos O'Donell via Gcc wrote:

> > (e) All existing pre-commit checks from hooks should be kept in some
> > form, to maintain existing invariants on both tree and commit contents
> > (some hook checks make sure that commits don't have commit messages
> > that would cause other automated processes to fall over later, for
> > example).
> 
> These could all move to pre-commit CI checks that block merging.

Checks are supposed to apply to direct pushes as well as to merging 
through the PR system.  (Direct pushes should I hope end up being rare on 
mainline, not necessarily rare on other branches.  Some invariants of 
commit history should apply to all commits on all refs, e.g. that no-one 
accidentally copies an old GCC commit message in a way that confuses 
tooling searching for From-SVN: lines.  On mainline, we might eventually 
want an *additional* check on direct pushes, e.g. that they have a 
Reason-for-direct-push: line that explains why the commit can't go through 
the PR system.)

Obviously this does not assert what technology should be used to implement 
such checks on permitted ref updates in the repository (though hopefully 
as little code as possible is executed in the repository context, as much 
as possible in some separate isolated context).  And arranging the 
implementation so as much code as possible can be used both when checking 
the final ref update, and in CI to check a PR that would result in such a 
ref update if accepted, is desirable (just as e.g. GCC shares code between 
the cron job that does ChangeLog updates, and the hook that checks if 
commits have properly formatted ChangeLog entries - though there are 
unfortunately still some cases that only result in the cron job falling 
over, not in the commits being rejected at push time).

-- 
Joseph S. Myers
josmyers@redhat.com


  reply	other threads:[~2024-09-20 20:42 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-19 15:51 Joseph Myers via Gdb
2024-09-20 18:25 ` Carlos O'Donell via Gdb
2024-09-20 20:41   ` Joseph Myers via Gdb [this message]
2024-09-20 21:43   ` Sam James via Gdb
2024-09-20 19:58 ` Matt Rice via Gdb
2024-09-20 20:47   ` Joseph Myers via Gdb
2024-09-23 12:07 ` Thomas Koenig via Gdb
2024-09-23 12:53   ` Jeffrey Walton via Gdb
2024-09-23 13:23   ` Jonathan Wakely via Gdb
2024-09-23 13:36     ` enh via Gdb
2024-09-23 14:33       ` Jonathan Wakely via Gdb
2024-09-23 15:56         ` Iain Sandoe
2024-09-23 15:03       ` Joseph Myers via Gdb
2024-09-23 15:20     ` Florian Weimer via Gdb
2024-09-23 15:44       ` Jonathan Wakely via Gdb
2024-09-23 17:57   ` Eric Gallager via Gdb
2024-09-23 18:39     ` Jonathan Wakely via Gdb
2024-09-23 18:30   ` Arsen Arsenović via Gdb
2024-09-23 12:56 ` Richard Earnshaw (lists) via Gdb
2024-09-23 14:59   ` Joseph Myers via Gdb
2024-09-24  3:43 ` Jiang, Haochen via Gdb
2024-09-24 16:42   ` Joseph Myers via Gdb
2024-09-25  3:01     ` Jiang, Haochen via Gdb
2024-09-25 14:46       ` Joseph Myers via Gdb
2024-09-26  1:42         ` Jiang, Haochen via Gdb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=927637c6-c0ac-1efe-b1ae-d2dfdbcfc02a@redhat.com \
    --to=gdb@sourceware.org \
    --cc=binutils@sourceware.org \
    --cc=carlos@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=josmyers@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox