ports/59272: [patch] add errortype column to bento "new build failures" reports

Mark Linimon linimon at lonesome.com
Fri Nov 14 02:10:24 UTC 2003


>Number:         59272
>Category:       ports
>Synopsis:       [patch] add errortype column to bento "new build failures" reports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 13 18:10:21 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Linimon
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
Lonesome Dove Computing Services
>Environment:
System: FreeBSD lonesome.lonesome.com 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Fri Sep 5 01:19:33 CDT 2003 linimon at lonesome.lonesome.com:/usr/src/sys/compile/MULTIMEDIA_DEBUG i386
>Description:
	The "new build failures" reports can be enhanced with the error
	type column to make them more useful.  Prerequisite: application
	of ports/50258.
>How-To-Repeat:
	(n/a)
>Fix:

	NB: I tested an earlier version of this script, but modified
	to run in my own environment, here.  It needs to be tested
	on the bento -exp runs before incorporation.

--- processfail.dist	Mon Oct 13 01:33:04 2003
+++ processfail	Thu Nov 13 19:56:30 2003
@@ -5,6 +5,9 @@
 arch=$1
 branch=$2
 
+scriptdir=$(dirname $0)
+errorscript=${scriptdir}/processonelog
+
 pb=/var/portbuild
 
 of=/usr/local/www/data/errorlogs/.${arch}-${branch}-failure.html
@@ -41,10 +44,16 @@
   echo "</html>" >>$of
 }
 
+geterrortype() {
+  set $(echo `${errorscript} $logfile` | tr \| " ")
+  reason=$(echo $7 | tr '_' ' ')
+  echo "<a href=\"http://bento.freebsd.org/#$8\">$reason</a>"
+}
+
 #
 # Create "default" output, sorted on portname
 #
-header "<th>Port</th><th>Package</th><th>Broken</th><th>Last</th><th>#</th>"
+header "<th>Port</th><th>Package</th><th>Error</th><th>Broken</th><th>Last</th><th>#</th>"
 
 sort -r -n -k 4 -t \| failure > newfailure
 IFS='|'
@@ -57,6 +66,10 @@
 #    echo "<td><a href=\"http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/$5\">$5</a></td>" >> $of
 #    echo "<td><a href=\"mailto:$6\">$6</a></td>" >> $of
 #    echo "<td>" >> $of
+
+    logfile=$3.log
+    errortype=`geterrortype`
+    echo "<td>$errortype</td>" >> $of
 
     alphadate=$(date -jf %s ${date} "+%F %T")
     alphalast=$(date -jf %s ${last} "+%F %T")
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list