Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: Joel Brobecker <brobecker@adacore.com>,
	gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: FYI: git-hooks update on sourceware.org
Date: Fri, 7 Aug 2020 12:00:22 -0400	[thread overview]
Message-ID: <31207ab5-403b-180f-e74f-9b6e8d1dc5a4@simark.ca> (raw)
In-Reply-To: <20200807155017.GC3362@adacore.com>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

On 2020-08-07 11:50 a.m., Joel Brobecker wrote:
>> These changes have been extensively tested, and we've been using
>> the same version at AdaCore for over a week, now; but do let me
>> know if you have any issues.
> 
> Well, that didn't take long. Simon just emailed me about an error.
> Apparently, the Python installed on sourceware.org doesn't have
> the enum module installed.

What version of Python are you using, is it really old?  All the reasonably recent
and supported Python versions ship with the enum module.

> I will revert the update, and ask overseers to install it.

See the attached file, it's a very simple script to reject commits with the author
name/email munged by the mailing list.  I don't think it will produce too many false
positives.

Simon

[-- Attachment #2: reject-via-ml.py --]
[-- Type: text/x-python, Size: 512 bytes --]

#!/usr/bin/env python3

import json
import sys


data = sys.stdin.read()
data = json.loads(data)

author_name = data["author_name"]
author_email = data["author_email"]

if " via " in author_name and "@sourceware.org" in author_email:
    print(
        "The author name ({}) and email address ({}) appear to have been munged by a mailing list.".format(
            author_name, author_email
        )
    )
    print("Please amend to the commit to put the proper author name and email address.")
    sys.exit(1)

  reply	other threads:[~2020-08-07 16:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 15:44 Joel Brobecker
2020-08-07 15:50 ` Joel Brobecker
2020-08-07 16:00   ` Simon Marchi [this message]
2020-08-07 16:02     ` Simon Marchi
2020-08-07 16:21       ` Joel Brobecker
2020-08-07 16:27         ` H.J. Lu
2020-08-07 16:44           ` Joel Brobecker
2020-08-10 16:57         ` Joel Brobecker

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=31207ab5-403b-180f-e74f-9b6e8d1dc5a4@simark.ca \
    --to=simark@simark.ca \
    --cc=binutils@sourceware.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@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