let tinderbox handle the new TinderboxPrint keyword in the log files.

This commit is contained in:
kestes%walrus.com 2002-04-24 23:25:34 +00:00
Родитель e260288d81
Коммит f6977d0831
2 изменённых файлов: 41 добавлений и 6 удалений

Просмотреть файл

@ -12,8 +12,8 @@
# server. No locks are used by the mail processes, data is passed to
# the tinderbox server in a maildir like format.
# $Revision: 1.12 $
# $Date: 2002/04/24 03:27:35 $
# $Revision: 1.13 $
# $Date: 2002/04/24 23:25:34 $
# $Author: kestes%walrus.com $
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/bin/processmail_builds,v $
# $Name: $
@ -246,6 +246,21 @@ page. The rendered HTML is found in the
entry of the update file.
TinderboxPrint:
Arbitrary links and text can be embedded in the tinderbox build
cells. Any log file which contains a line beginnging with
"TinderboxPrint: " will be copied into the build cell. Here are some
examples of embedded performance numbers (and links to the web page
relevant to these numbers) from one mozilla build.
TinderboxPrint: <a title="Leaks: total bytes 'malloc'ed and not 'free'd"href="http://tegu.mozilla.org/graph/query.cgi?testname=trace_malloc_leaks&units=bytes&tbox=backupboy&autoscale=1&days=7&avg=1">Lk:301KB</a>
TinderboxPrint: <a title="Maximum Heap: max (bytes 'malloc'ed - bytes 'free'd) over run"href="http://tegu.mozilla.org/graph/query.cgi?testname=trace_malloc_maxheap&units=bytes&tbox=backupboy&autoscale=1&days=7&avg=1">MH:7.82MB</a>
TinderboxPrint: <a title="Allocations: number of calls to 'malloc' and friends"href="http://tegu.mozilla.org/graph/query.cgi?testname=trace_malloc_allocs&units=bytes&tbox=backupboy&autoscale=1&days=7&avg=1">A:284K</a>
Log Files
@ -871,6 +886,13 @@ sub parse_mail_body {
next;
}
# Find and save the TinderboxPrint data
if ($line =~ m/\s*TinderboxPrint\s*:\s*(.*)/) {
$TINDERBOX{'print'} .= $1;
next;
}
# process bloat statistics
if ( ($line =~ m/^\#+ BLOAT STATISTICS/) ..

Просмотреть файл

@ -7,8 +7,8 @@
# the build was and display a link to the build log.
# $Revision: 1.26 $
# $Date: 2002/04/24 03:18:58 $
# $Revision: 1.27 $
# $Date: 2002/04/24 23:25:31 $
# $Author: kestes%walrus.com $
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/lib/TinderDB/Build.pm,v $
# $Name: $
@ -66,6 +66,10 @@
# run the build scrips through cron and this will cause
# 'deadtime'.
#
# errors => The number of errors found in the build file, will be displayed
# in the build cell.
# print => Any strings or links which were sent from the buildmachine
# to be displayed in the build cell.
# errorparser => The error parser to use when parsing the logfiles
# full-log => The basename of the log file contianing the full log
# brief-log => The basename of the log file contianing the brief log
@ -1120,8 +1124,17 @@ sub status_table_row {
# Error count (not a link, but hey)
if ($current_rec->{'errors'}) {
$links .= "\t\t<br>errs: ".
$current_rec->{'errors'}."\n";
$links .= (
"\t\t<br>errs: ".
$current_rec->{'errors'}."\n".
"");
}
if ($current_rec->{'print'}) {
$links .= (
"\t\t<br>".
$current_rec->{'print'}."\n".
"");
}