[Collab-qa-commits] r1740 - in collab-qa-tools: . bin

Lucas Nussbaum lucas at alioth.debian.org
Tue May 4 15:05:45 UTC 2010


Author: lucas
Date: 2010-05-04 15:05:43 +0000 (Tue, 04 May 2010)
New Revision: 1740

Added:
   collab-qa-tools/bin/cqa-check-bugs
   collab-qa-tools/cmpres.rb
Modified:
   collab-qa-tools/bin/cqa-fetchbugs
Log:
some collab-qa-tools changes

Added: collab-qa-tools/bin/cqa-check-bugs
===================================================================
--- collab-qa-tools/bin/cqa-check-bugs	                        (rev 0)
+++ collab-qa-tools/bin/cqa-check-bugs	2010-05-04 15:05:43 UTC (rev 1740)
@@ -0,0 +1,61 @@
+#! /usr/bin/ruby1.8 -w
+require 'soap/rpc/driver'
+require 'pp'
+bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
+bts.add_method('get_status', 'bugs')
+bts.add_method('get_bugs', 'params')
+bts.add_method('get_bug_log', 'params')
+bts.add_method('get_usertag', 'email', 'tag')
+bts.add_method('newest_bugs', 'num')
+
+# E: not serious: 470440 sbuild (important) sbuild doesn't cope with Checksums-Sha1 and Checksums-Sha256 headers
+# E: not serious: 395271 sbuild (important) sbuild: incorrectly handles versioned provides
+# E: not serious: 474902 gnumach (important) gnumach: FTBFS: bad_user_access_length
+# E: not serious: 473951 gtk-doc (important) gtk-doc: FTBFS: Unsatisfiable build-dependency: openjade(still installed)
+# E: not serious: 395260 sablevm (important) sablevm: cannot create VM when run into a i386 chroot on a AMD64 system.
+# E: not serious: 458879 debian-edu-doc (important) FTBFS in sid, builds fine in etch
+# E: not serious: 441159 9base (important) FTBFS in i386 chroot on amd64
+# E: not serious: 474894 newlib (normal) newlib: FTBFS: Nonexistent build-dependency: binutils-spu [package only for ppc/ppc64]
+# E: not serious: 470337 python-axiom (important) python-axiom: FTBFS: failed tests
+# E: not serious: 422609 swish-e (important) don't mess with other packages namespaces
+# E: not serious: 534089 libcomplearn-mod-ppmd (important) libcomplearn-mod-ppmd: FTBFS: Nonexistent build-dependency: ppmd
+NOT_SERIOUS = [ 470440, 395271, 474902, 473951, 395260, 458879, 441159, 474894, 470337, 422609, 505307, 534058, 534063, 534059, 534089 ]
+
+# E: only in first set: 474888 gnat-4.3 gnat-4.3: FTBFS: Bootstrap comparison failure!
+# E: only in first set: 471614 gnat-4.1 gnat-4.1: FTBFS: b~gnatfind.adb:(.text+0x225): undefined reference to `xr_tabls___elabs'
+# E: only in first set: 458634 glib2.0 glib2.0: FTBFS: undefined reference to `g_type_module_register_type'
+# E: only in first set: 489112 mailutils mailutils: FTBFS: ERROR: Cannot create /build/user-mailutils_1.2+dfsg1-1-amd64-g60eu0/mailutils-1.2+dfsg1-1 /imap4d/testsuite/data/spool/INBOX:
+# E: only in first set: 490324 xulrunner-1.9 xulrunner: FTBFS: build blocks
+# E: only in first set: 490329 setools setools: FTBFS: dpkg-gencontrol: failure: install new files list file: No such file or directory
+# E: only in first set: 465635 latex-cjk-chinese-arphic latex-cjk-chinese-arphic: FTBFS: debhelper errors
+# E: only in first set: 483352 liboil liboil: FTBFS: FAIL: stride
+RANDOM_FAIL = [ 474888, 471614, 458634, 489112, 490324, 490329, 465635, 483352]
+
+IGNORE_DONE = true
+
+bugs = {}
+IO::readlines(ARGV[0]).each do |l|
+  pkg, r = l.split(' ', 2)
+  b = r.scan(/#\d+/)[0]
+  next if b.nil?
+  b = b.gsub(/#/, '').to_i
+  bugs[b] = pkg
+end
+bs1 = bts.get_status(bugs.keys.sort.uniq)
+bs1.each_pair do |k,v|
+  if v.pending == 'done'
+    modif = Time::at(v.log_modified.to_i)
+    if Time::now - modif < 86400*2
+      modif = " [MODIFIED: #{modif}]"
+    else
+      modif = ""
+    end
+    puts "E: marked as done#{modif}: #{k} #{v.package} #{v.subject}"
+  end
+  if not ['serious','grave','critical'].include?(v.severity) and not NOT_SERIOUS.include?(k.to_i)
+    puts "E: not serious: #{k} #{v.package} (#{v.severity}) #{v.subject}"
+  end
+  if v.package != "src:#{bugs[k]}" and v.package != bugs[k]
+    puts "E: different package: #{k} #{v.package} != #{bugs[k]}"
+  end
+end


Property changes on: collab-qa-tools/bin/cqa-check-bugs
___________________________________________________________________
Added: svn:executable
   + *

Modified: collab-qa-tools/bin/cqa-fetchbugs
===================================================================
--- collab-qa-tools/bin/cqa-fetchbugs	2010-05-04 13:36:54 UTC (rev 1739)
+++ collab-qa-tools/bin/cqa-fetchbugs	2010-05-04 15:05:43 UTC (rev 1740)
@@ -8,7 +8,7 @@
 require 'thread'
 mutex = Mutex.new
 cv = ConditionVariable.new
-nbfree = 40
+nbfree = 10
 
 bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
 bts.add_method('get_status', 'bugs')

Added: collab-qa-tools/cmpres.rb
===================================================================
--- collab-qa-tools/cmpres.rb	                        (rev 0)
+++ collab-qa-tools/cmpres.rb	2010-05-04 15:05:43 UTC (rev 1740)
@@ -0,0 +1,10 @@
+#!/usr/bin/ruby -w
+
+require 'pp'
+
+norm = IO::readlines(ARGV[0]).map { |l| l.chomp.split(' ', 4) }
+diff = IO::readlines(ARGV[1]).map { |l| l.chomp.split(' ', 4) }
+oks_norm = norm.select { |l| l[2] == 'OK' }.map { |e| e[0] }
+failed_diff = diff.select { |l| l[2] == 'Failed' }
+interesting = failed_diff.select { |l| oks_norm.include?(l[0]) }
+puts interesting.map { |e| e[0] + "_" + e[1] }


Property changes on: collab-qa-tools/cmpres.rb
___________________________________________________________________
Added: svn:executable
   + *




More information about the Collab-qa-commits mailing list