[Collab-qa-commits] r193 - in archive-rebuilds: . 2007-05-22-unstable-main-i386
lucas at alioth.debian.org
lucas at alioth.debian.org
Thu May 24 17:04:28 UTC 2007
Author: lucas
Date: 2007-05-24 17:04:28 +0000 (Thu, 24 May 2007)
New Revision: 193
Added:
archive-rebuilds/mb.rb
archive-rebuilds/sb.rb
Modified:
archive-rebuilds/2007-05-22-unstable-main-i386/00failed.sid.i386.20070522.main.txt
Log:
wrote small helper scripts for log reviewing
Modified: archive-rebuilds/2007-05-22-unstable-main-i386/00failed.sid.i386.20070522.main.txt
===================================================================
--- archive-rebuilds/2007-05-22-unstable-main-i386/00failed.sid.i386.20070522.main.txt 2007-05-24 15:46:02 UTC (rev 192)
+++ archive-rebuilds/2007-05-22-unstable-main-i386/00failed.sid.i386.20070522.main.txt 2007-05-24 17:04:28 UTC (rev 193)
@@ -1,8 +1,8 @@
-abiword 2.4.6-2 Failed 623.268155s GCC_ERROR TODO NEWFAIL
-ace 5.4.7-12 Failed 83.824494s GCC_ERROR TODO NEWFAIL
+abiword 2.4.6-2 Failed 623.268155s GCC_ERROR #425066: abiword: FTBFS with new libpoppler
+ace 5.4.7-12 Failed 83.824494s GCC_ERROR NEEDNUMB: ace: FTBFS: error: operator '>=' has no left operand
adept 2.1.2 Failed 296.802192s NO_SUCH_FILE #423736: Acknowledgement of maintainer-only report (adept: FTBFS: i386: libtool: link: cannot find the library RECHECK
aes2501-wy 0.1-2 Failed 43.581648s HEADER_NO_SUCH_FILE/NO_SUCH_FILE/GCC_ERROR TODO NEWFAIL
-airsnort 0.2.7e-2 Failed 53.203108s GCC_ERROR TODO NEWFAIL
+airsnort 0.2.7e-2 Failed 53.203108s GCC_ERROR NEEDNUMB: airsnort: FTBFS: /usr/include/linux/wireless.h:646: error: expected specifier-qualifier-list before '__s32'
alps-light1 1.2.2-2 Failed 40.728037s UNKNOWN TODO NEWFAIL
alsa-lib 1.0.13-2 Failed 18.014569s UNKNOWN #422513: gcc-4.1: Can't crosscompile: /usr/bin/ld: cannot find -lgcc RECHECK
am-utils 6.1.5-5 Failed 70.586432s UNKNOWN TODO NEWFAIL
Added: archive-rebuilds/mb.rb
===================================================================
--- archive-rebuilds/mb.rb (rev 0)
+++ archive-rebuilds/mb.rb 2007-05-24 17:04:28 UTC (rev 193)
@@ -0,0 +1,103 @@
+#!/usr/bin/ruby -w
+# mb - prepares a mail for a bug report
+
+# max number of lines to include in the bug report
+$maxlines=20
+
+if ARGV.length > 1
+ $maxlines = ARGV[1].to_i
+end
+
+# fetch the error from a build that failed during the build phase
+def get_buglog_build(log, lines)
+ if $idxbuildfinished - $idxbuilding < $maxlines
+ STDERR.puts "Log is short enough, sending everything"
+ return lines[$idxbuilding..$idxbuildfinished]
+ end
+ # get the last "entering" message
+# p lines.grep(/^make.*: Entering directory `/)
+ if not (l = lines.grep(/^make.*: Entering directory `/)).empty?
+ idxent = lines.rindex(l[-1])
+ puts l[-1]
+ if $idxbuildfinished - idxent < $maxlines
+ STDERR.puts "Cutting from last 'Entering directory'"
+ return lines[idxent..$idxbuildfinished]
+ end
+ end
+ STDERR.puts "Cutting last #{$maxlines} lines"
+ return lines[($idxbuildfinished - $maxlines)..$idxbuildfinished]
+end
+
+# guess the log filename
+file = ARGV[0]
+if not File::exists?(file)
+ lst = Dir::glob("#{file}*")
+ if lst.length == 0
+ puts "No matching logfile."
+ exit 1
+ elsif lst.length > 1
+ lst2 = lst.join("\n ")
+ puts "Several matching logfiles:\n #{lst2}"
+ exit 1
+ else
+ file = lst[0]
+ end
+end
+
+$log = IO::read(file)
+$lines = $log.split(/\n/)
+
+# gets the important stuff
+dbh = $lines.grep(/^DC-Build-Header:/)[0]
+dbs = $lines.grep(/^DC-Build-Status:/)[0]
+junk, $package, $version, rest = dbh.split(' ', 4)
+junk, $result, $time = dbs.split(' ', 3)
+
+STDERR.puts "P:#{$package} V:#{$version} R:#{$result} T:#{$time}"
+
+$idxbuildfinished = $lines.index($lines.grep(/^Build finished at /)[0]) - 2
+
+if not (l = $lines.grep(/^dpkg-source: building.*\.dsc$/)).empty?
+ STDERR.puts "Failed during build phase ..."
+ $idxbuilding = $lines.index(l[0])
+ $buglog = get_buglog_build($log, $lines)
+else
+ STDERR.puts "Failed BEFORE build phase, dunno what to do."
+ exit 1
+end
+
+File::open("mutt.#{$package}", "w") do |f|
+ f.puts "From: #{ENV['DEBFULLNAME']} <#{ENV['DEBEMAIL']}>"
+ f.puts "To: submit at bugs.debian.org"
+ f.puts "Subject: #{$package}: FTBFS: XXX"
+ f.puts
+ f.puts "Package: #{$package}"
+ f.puts "version: #{$version}"
+ f.puts "Severity: serious"
+ f.puts "Justification: FTBFS on i386"
+ f.puts
+ f.puts <<-EOF
+Hi,
+
+During a rebuild of all packages in sid, your package failed to build on i386.
+
+Relevant part:
+ EOF
+ f.puts $buglog.join("\n")
+ f.puts <<-EOF
+
+The full build log is available from
+http://people.debian.org/~lucas/logs/2007/05/22/
+
+About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
+of the Grid'5000 platform, using a clean chroot containing a sid i386
+environment. Internet was not accessible from the build systems.
+--
+#{ENV['DEBFULLNAME']}
+ EOF
+end
+STDERR.puts
+cmd = "mutt -H mutt.#{$package}"
+STDERR.puts cmd
+STDIN.getc
+system(cmd)
Property changes on: archive-rebuilds/mb.rb
___________________________________________________________________
Name: svn:executable
+ *
Added: archive-rebuilds/sb.rb
===================================================================
--- archive-rebuilds/sb.rb (rev 0)
+++ archive-rebuilds/sb.rb 2007-05-24 17:04:28 UTC (rev 193)
@@ -0,0 +1,11 @@
+#!/usr/bin/ruby -w
+# Show bugs
+
+pkg = ARGV[0]
+url = "http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=#{pkg}&archive=no&repeatmerged=no&version=&dist=unstable&pend-inc=pending&pend-inc=forwarded&pend-inc=pending-fixed&pend-inc=fixed&pend-inc=done&sev-inc=critical&sev-inc=grave&sev-inc=serious&sev-inc=important"
+cmd = "epiphany-browser \"#{url}\""
+puts cmd
+system(cmd)
+cmd = "epiphany-browser \"http://packages.qa.debian.org/#{pkg}\""
+puts cmd
+system(cmd)
Property changes on: archive-rebuilds/sb.rb
___________________________________________________________________
Name: svn:executable
+ *
More information about the Collab-qa-commits
mailing list