Date: Thu, 13 Nov 2003 20:05:20 -0600 (CST) From: Mark Linimon <linimon@lonesome.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: marcus@FreeBSD.org Subject: ports/59272: [patch] add errortype column to bento "new build failures" reports Message-ID: <200311140205.hAE25K0g012928@lonesome.lonesome.com> Resent-Message-ID: <200311140210.hAE2AMag016294@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311140205.hAE25K0g012928>