[Piuparts-commits] rev 399 - in piatti/home/piupartsm: . bin

Holger Levsen holger at alioth.debian.org
Mon May 11 09:08:40 UTC 2009


Author: holger
Date: 2009-05-11 09:08:40 +0000 (Mon, 11 May 2009)
New Revision: 399

Added:
   piatti/home/piupartsm/bin/detect_well_known_errors
Modified:
   piatti/home/piupartsm/bin/detect_archive_issues
   piatti/home/piupartsm/crontab
Log:
new script to ease mass bug filing by analysing logs and grouping common errors together. so far it only knows about violations of policy 9.1.2 and 6.8

Modified: piatti/home/piupartsm/bin/detect_archive_issues
===================================================================
--- piatti/home/piupartsm/bin/detect_archive_issues	2009-05-11 08:49:34 UTC (rev 398)
+++ piatti/home/piupartsm/bin/detect_archive_issues	2009-05-11 09:08:40 UTC (rev 399)
@@ -37,7 +37,7 @@
 	echo "(By grep'ing for 'E: Broken packages' in failed logs.)"
 	echo 
 	echo 'The following packages have been moved to $distro/untestable and will be'
-	echo "tested again in 5 days."
+	echo "tested again in 7 days."
 	echo
         echo "Broken packages are usually a temporarily problem in the archive and are"
         echo "caught by other tools like britney or http://edos.debian.net/edos-debcheck/"

Added: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors	                        (rev 0)
+++ piatti/home/piupartsm/bin/detect_well_known_errors	2009-05-11 09:08:40 UTC (rev 399)
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Copyright 2009 Holger Levsen (holger at layer-acht.org)
+# 
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; either version 2 of the License, or (at your
+# option) any later version.
+# 
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+MASTER=/org/piuparts.debian.org/master
+DISTROS="sid squeeze"
+
+#
+# detect packages which leave stuff in /usr/local (see policy 9.1.2)
+#
+
+LOGS=`mktemp`
+for distro in $DISTROS ; do 
+	rgrep "not owned" $MASTER/$distro/fail|grep -v "owned by"|grep usr/local/|cut -d " " -f1|sed -e "s#log:#log#"|sort -u 2>/dev/null >> $LOGS
+done
+if [ -s $LOGS ] ; then 
+	echo
+	echo "Packages with files and/or directories in /usr/local/ after purge," 
+	echo "which is a violation of policy 9.1.2:"
+	echo "see http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.1.2"
+	echo 
+	echo "Please file bugs!"
+	echo
+	cat $LOGS | sed -e "s#/org/piuparts.debian.org/master/#http://piuparts.debian.org/#g" 
+	echo
+fi
+rm $LOGS
+
+#
+# detect packages with unowned files after purge (policy 6.8)
+#
+
+LOGS=`mktemp`
+for distro in $DISTROS ; do 
+	rgrep "not owned" $MASTER/$distro/fail|grep -v "owned by"|grep -v usr/local/|cut -d " " -f1|sed -e "s#log:#log#"|sort -u 2>/dev/null >> $LOGS
+done
+if [ -s $LOGS ] ; then 
+	echo 
+	echo "Packages with unowned files after purge (violating policy 6.8)"
+	echo "see http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-removedetails"
+	echo 
+	echo "Please file bugs!"
+	echo
+	cat $LOGS | sed -e "s#/org/piuparts.debian.org/master/#http://piuparts.debian.org/#g" 
+	echo
+fi
+rm $LOGS
+
+


Property changes on: piatti/home/piupartsm/bin/detect_well_known_errors
___________________________________________________________________
Added: svn:executable
   + *

Modified: piatti/home/piupartsm/crontab
===================================================================
--- piatti/home/piupartsm/crontab	2009-05-11 08:49:34 UTC (rev 398)
+++ piatti/home/piupartsm/crontab	2009-05-11 09:08:40 UTC (rev 399)
@@ -28,6 +28,7 @@
 55 22 * * * /home/piupartsm/bin/detect_network_issues
 0  23 * * * /home/piupartsm/bin/detect_archive_issues
 05 23 * * * /home/piupartsm/bin/report_untestable_packages
+10 23 * * * /home/piupartsm/bin/detect_well_known_errors
 
 #
 # misc




More information about the Piuparts-commits mailing list