Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795492 - "Automated Package Removal and Addition Tracker" mails have been broken since 2020-11
Summary: "Automated Package Removal and Addition Tracker" mails have been broken since...
Status: CONFIRMED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-12 05:54 UTC by Joonas Niilola
Modified: 2021-09-09 08:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2021-06-12 05:54:15 UTC
As the title says, last related mail to our mailing lists can be found on 2020-11-01 23:59 UTC. Nothing after that.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2021-08-26 16:25:47 UTC
The tool broke; let me see if I can find the sources to make them available; but its not something we have time to fix.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2021-08-26 16:29:37 UTC
https://dev.gentoo.org/~antarus/add-remove/ has the scripts and wrappers.

If you can make it all work I'm happy to redeploy it...note some of this stuff is also in packages.gentoo.org now (the adds in particular there is a feed for new packages.)

-A
Comment 3 Joonas Niilola gentoo-dev 2021-08-27 05:28:09 UTC
Thanks, I'll take a look if I can figure it out. The removal info has been very useful to me in past.
Comment 4 Joonas Niilola gentoo-dev 2021-09-09 08:46:11 UTC
Can you find what exactly is the broken part? 
I did:

@@ -81,7 +81,7 @@
 	else:
 		end_date = []
 
-	command = ["git","log","--name-status","--format=GENTOOPENGUIN:%at,%cE,%h"]
+	command = ["git","log","--name-status","--format=GENTOOPENGUIN:%at,%cE,%h"] + start_date + end_date
 	p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=None, universal_newlines=True)
 
 	removals = []

(also 
+++ tmp-antarusscripts/find-git-adds-and-removals-mailer.sh	2021-09-09 11:37:52.002621121 +0300
@@ -33,7 +33,7 @@
 TO="gentoo-dev@lists.gentoo.org, gentoo-dev-announce@lists.gentoo.org"
 REPLYTO='gentoo-dev@lists.gentoo.org'
 
-/usr/sbin/sendmail -ti <<EOF
+read -r -d '' mymail <<-EOF
 From: "Robin H. Johnson" <robbat2@gentoo.org>
 To: $TO
 Reply-To: $REPLYTO
@@ -70,4 +70,8 @@
 $(<$lf)
 --$boundary--
 
+"
+
 EOF
+
+echo $mymail


+++ tmp-antarusscripts/find-git-adds-and-removals-process.sh	2021-09-09 11:26:05.357011579 +0300
@@ -1,6 +1,6 @@
 #!/bin/sh
 BASEDIR=$(dirname $0)
-GITDIR=/var/gitroot/repo/gentoo.git/
+GITDIR=/home/joonas/git/devgentoo
 if [ -n "$1" ]; then
 	starttime=$1
 else

for debugging purposes)

it seems to work, but I'm afraid to try through sendmail. And I have a feeling the start_date and end_date were removed for some reason, because how else it would've worked in past? If there's some sort of git log to help find whatever problems this script had?