From owner-freebsd-ports@freebsd.org Sun Aug 30 05:48:37 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3EC783CBDDB for ; Sun, 30 Aug 2020 05:48:37 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BfMnx0MWKz4c2L for ; Sun, 30 Aug 2020 05:48:37 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0C3333CBDDA; Sun, 30 Aug 2020 05:48:37 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A6833CBEC0 for ; Sun, 30 Aug 2020 05:48:37 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from mail.gundo.com (gibson.gundo.com [75.145.166.65]) by mx1.freebsd.org (Postfix) with ESMTP id 4BfMnw2Hqmz4blH; Sun, 30 Aug 2020 05:48:36 +0000 (UTC) (envelope-from pauamma@gundo.com) Received: from webmail.gundo.com (variax.gundo.com [75.145.166.70]) by mail.gundo.com (Postfix) with ESMTP id 109544C05E9; Sun, 30 Aug 2020 00:48:35 -0500 (CDT) MIME-Version: 1.0 Date: Sun, 30 Aug 2020 05:48:34 +0000 From: Pau Amma To: Adam Weinberger Cc: Warner Losh , tcberner@freebsd.org, FreeBSD Developers , Michael Gmelin , Niclas Zeising , ports@freebsd.org, portmgr@freebsd.org, Greg 'groggy' Lehey Subject: Re: Maintainer notification script (was Re: Aggressive ports removal) In-Reply-To: References: User-Agent: Roundcube Webmail/1.4.8 Message-ID: <83dbff194c67404b94031364c0fd7d82@gundo.com> X-Sender: pauamma@gundo.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BfMnw2Hqmz4blH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pauamma@gundo.com designates 75.145.166.65 as permitted sender) smtp.mailfrom=pauamma@gundo.com X-Spamd-Result: default: False [-3.06 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.960]; FREEFALL_USER(0.00)[pauamma]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gundo.com]; NEURAL_HAM_LONG(-0.97)[-0.973]; RWL_MAILSPIKE_GOOD(0.00)[75.145.166.65:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_MED(-0.20)[75.145.166.65:from]; NEURAL_HAM_SHORT(-0.73)[-0.730]; RCPT_COUNT_SEVEN(0.00)[9]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:75.144.0.0/13, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 05:48:37 -0000 On 2020-08-30 05:14, Adam Weinberger wrote: >> On Aug 29, 2020, at 22:37, Pau Amma wrote: >> >> On 2020-08-30 00:50, Adam Weinberger wrote: >>> [major snip] >>> This is a serious issue that we’ve been dealing with for a long time. >>> I’ve advocated very strongly for a script that automatically notifies >>> the maintainer (+/- ports@?) when a port is marked BROKEN and/or >>> DEPRECATED. Community notification is always a good thing, and it >>> opens the door for objections and discussion. Nobody has written such >>> a script, but I would be thrilled to help deploy such a script if >>> someone writes it. >> >> What would be needed in such a notifier? I imagine it would be called >> by the post-receive hook in the central git repository-to-be for >> ports. I'm not very familiar with python or git hooks, but perhaps >> contrib/hooks/multimail/post-receive.example could be extended or >> modified and made into (part of) a post-receive hook to: >> 1- check whether one or more port Makefiles were modified; >> 2- get from the port Makefiles in step 1 those that have a >> changed/removed/added BROKEN(_[a-zA-Z0-9_]*)?, DEPRECATED, or >> EXPIRATION_DATE; >> 3- email each MAINTAINER= address (for the ports coming out of step 2) >> using a suitable template. > > In my mind, commit hooks are there to perform tasks that the repo > cannot function without, as fragility in a commit hook could bring > down the whole tree. But perhaps I am giving the commit hooks too much > credit here? Well, git help hook says: post-receive This hook is invoked by git-receive-pack(1) when it reacts to git push and updates reference(s) in its repository. It executes on the remote repository once after all the refs have been updated. This hook executes once for the receive operation. It takes no arguments, but gets the same information as the pre-receive hook does on its standard input. This hook does not affect the outcome of git receive-pack, as it is called after the real work is done. [...] But perhaps I'm reading too much about the (lack of) consequences for failures from that specific hook into that. > Perhaps we could sweep the tree at certain intervals and notify > maintainers when a new entry is added. Perhaps. How is the "comment on Bugzilla PR with commit log message" feature currently implemented? Or how will the git implementation work, if that's different?