From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qHQvCfao+WQm5AAAG6o9tA:P1 (envelope-from ) for ; Thu, 07 Sep 2023 12:41:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qHQvCfao+WQm5AAAG6o9tA (envelope-from ) for ; Thu, 07 Sep 2023 12:41:58 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F2D2A34192 for ; Thu, 7 Sep 2023 12:41:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694083318; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=of/m/1tLKSlQkVoA7UB/auiLiyoq7xFNjf2jqWe1fF8=; b=CCfCjcuo+v6muyulJxCHWD0F+ZcqL+PBnZmBrInjWfRrcIrI4afgQQox8HVq99PywdVa/Y cly+WLGad0TO17ctxcfJryArZS8fkshkCaZIKsXHpt/CB/W8jbnTZWnhe/0SnOBgfLlIRX 3Jaxyguwe0n5RxIE0oZm/Gqs/cdEH0fd5ZGd4gKkX+K34VnoNr3+JBVGga4iVENn1jjdgC PHJvoCHGZXnIr3Vbm/SwQ+ZzWvF+cKVcN54m3s4dE7JxVYS7Oq+6ZMPbGicWEJSsEnVFGV 5sQpair6lGT7nLzT8ZhpLYKiWWB6jshY3JvgvmG5MRw7Js3yaE2fC0UiHStd+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694083318; a=rsa-sha256; cv=none; b=bhJGQ92vJL9eIBM+ppZaGdrx0y+SlksEL6jdQPAA8AWbFf/Mtg0G4Jr2QT4s3n5/I6v2g7 8PW677QE7Vq7SLgVS0P/4VLiVo1Xgjk+juy0CN2DAYkwGl7k2ItitMu0fpL8I99I9Kpzcc MJXnikqdxS+u2VPvDyZKETOML+rr7m/5jvtZ8gsJ9LfiadMFcJC1Jafkzdxp31anazgCXg 93v8AdOJDL4E+iGED5ZedpfnaK237yV02uzcDTKuwNVvxV2ZQpC0MWzvbO5yYFolvB3RvD JGNoM/ZJ5ump1rk6hnaOHAqnu4HJahi3JlygBuTUTFHE95ZmdGyVbxlJWSRqJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeCRh-0001at-8G; Thu, 07 Sep 2023 06:41:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeCRb-0001ZK-1x for guix-devel@gnu.org; Thu, 07 Sep 2023 06:41:03 -0400 Received: from ns13.heimat.it ([46.4.214.66]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeCRY-0001qW-7v; Thu, 07 Sep 2023 06:41:02 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 529ED30085C; Thu, 7 Sep 2023 10:40:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nHb2OJ03ZdFx; Thu, 7 Sep 2023 10:40:51 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.217]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id A99F530080B; Thu, 7 Sep 2023 10:40:51 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 0F765298CF73; Thu, 7 Sep 2023 12:40:51 +0200 (CEST) Received: (nullmailer pid 3051 invoked by uid 1000); Thu, 07 Sep 2023 10:40:50 -0000 From: Giovanni Biscuolo To: Maxim Cournoyer Cc: guix-devel@gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [workflow] Automatically close bug report when a patch is committed In-Reply-To: <87edjb5le5.fsf@gmail.com> Organization: Xelera.eu References: <8734zrn1sc.fsf@xelera.eu> <87edjb5le5.fsf@gmail.com> Date: Thu, 07 Sep 2023 12:40:49 +0200 Message-ID: <87jzt2feq6.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.33 X-Spam-Score: -8.33 X-Migadu-Queue-Id: F2D2A34192 X-TUID: ASLD+7DS/mMV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Maxim and Ludovic, I'm including you, Ludovic, becaus in the past you requested a similar git hook installation for Guix and maybe you have more info Maxim Cournoyer writes: > Giovanni Biscuolo writes: [...] OK, I really found the wrong examples as Christopher pointed out, but my proposal still holds valid :-D >> IMO we need a way automatically close this kind of bug reports... or am >> I missing something? >> >> Let's avoid manual gardening as much as possible! :-) > > I like the idea! Fine, let's try to do it! >> The first thing we need is a server side git post-receive hook on >> Savannah, I've opened the sr#110928 support request: >> https://savannah.nongnu.org/support/index.php?110928 > > It's something that the Savannah folks would need to maintain > themselves, right? Forgot to mention that I'm pretty sure a post-receive server side hook is already running (and maintained) for our guix.git repo on Savannah, it's the one that sends notifications to guix-commits mailing list https://lists.gnu.org/mailman/listinfo/guix-commits Maybe that server side hook is common to all Savannah hosted projects, but in this case it sould be configurable per-project since the "From:" and "To:" email headers must be project related. ...or that post-receive hook has been installed the Savannah admin of the Guix project? I don't know what is the policy for "custom" server side web hooks: for sure Someone=E2=84=A2 with ssh access to /srv/git/guix.git/hooks/ should /install/ such a script. I've not found any reference to "per project" git hooks in the Savannah documentation (https://duckduckgo.com/?q=3Dgit+hook+site%3Ahttps%3A%2F%2Fsavannah.gnu.org= %2Fmaintenance%2FFrontPage%2F&ia=3Dweb) I have found many support request mentioning git hooks: https://savannah.gnu.org/search/?words1=3Dgit+hook&type_of_search=3Dsupport= &Search=3DSearch&exact=3D1#options In particular, this support threads: =2D sr #110614: auctex-diffs emails should be in the same format as emacs-d= iffs https://savannah.nongnu.org/support/?func=3Ddetailitem&item_id=3D110614 =2D sr #110594: git push returns "hints" about ignored hooks https://savannah.nongnu.org/support/?func=3Ddetailitem&item_id=3D110594 =2D sr #110482: Install irker hooks in poke.git https://savannah.nongnu.org/support/?func=3Ddetailitem&item_id=3D110482 =2D sr #109104: Add Git 'update' hook for Guix repositories https://savannah.nongnu.org/support/?func=3Ddetailitem&item_id=3D109104 Makes me believe that server-side hooks are something that must be installed per-project by Savannah sysadmins >> When I asket I though the best way would be to scan for a string like >> "Close #" in the commit message (the committer should add >> such a string) but probably this can be avoided: the bug can be closed >> when a patch is committed to one of the listed official brances (master, >> core-updates, etc.) > > You mean by simply matching the subject? Maybe that could work. Thinking twice maybe it's better to add a "Close: #" to the commit message. Now... let's find (or develop) such a post-receive hook! Happy hacking! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmT5qLIMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkSL1cQAMeQkrebLlYjzRMGy7pTrD5XS3rWdgqxSXaZPKVy qaOyXzW0SrdQqoIAwFs9nI48eih9vcLQZo85fjmFhDt/5xY28rktMaG9KZMDAsjt AMrBghDviPnNkYXbS/vL8T3hehyY8QD3BY+EOcH7c7Zo+QQGtw3ZZ6RSsine0gGO 6zKaEoX0bfMgs8z9T0XY5RSchr0AEgx+PRQa8DWAPbXmNzNvD3b9dnA/vkbpPGVW 1Z7wbOHAA426FUtHvIGesUMVTxf5BQsJ35SDEMzFCh4TPmGuapFtHYZ8N2G2aAdj 1wiFeF1JyoLw4hY/reXlAO7K0VZvwUbN3i4ERKvzzC62Th7asBUIFwgDMsh45F2Y paLJfWlUgsvKQ71F82FviwQUHCq8rcW2UimN0mIkz2eNIMOn8RR4bNH7ZE/r2g0e 4n8fZvCCXbVRTatuHTcNvuN0c/KkPTO+3x0lSsdf3tYc+AAygK7DvQsTrp8zuPJT RdYg81Eb9Cba++EifBRIOiUQt67V73XFO6m+VOliLxTBgPjhbcfU12HWu0/zENH5 1aNJehfneNU5dE7G52H4ZSdk8dADg/Xms6X9oEtuIjkQXSs11SfetHpYM0Dujerg Vky2UbW38aleZ4dBtrUdhfJ713TMUWvou+G/574mm1coSS04pm69Nxa35BrV5CPV PL+6 =KpmI -----END PGP SIGNATURE----- --=-=-=--