/[collab-qa]/buildd-failures/stats.rb
ViewVC logotype

Contents of /buildd-failures/stats.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 911 - (show annotations) (download)
Sat Jul 12 09:42:48 2008 UTC (4 years, 10 months ago) by lucas
File size: 618 byte(s)
add script to gather stats about build failures on buildds
1 #!/usr/bin/ruby -w
2
3
4 oods = {}
5 IO::read('ood_excuses.txt').each_line do |l|
6 pkg, ver, archs = l.chomp.split(' ')
7 oods[pkg] = archs.split(/,/)
8 end
9
10 archs = []
11 oods.each_pair do |k, v|
12 archs += v
13 end
14 archs.sort!
15 archs.uniq!
16
17 bugs = {}
18 IO::read('bugs').each_line do |l|
19 pkg, bug, rest = l.split(' ')
20 bugs[pkg] = bug
21 end
22
23 archs.each do |arch|
24 nfail = 0
25 nbug = 0
26 oods.each_pair do |k,v|
27 next if not v.include?(arch)
28 nfail += 1
29 if bugs.include?(k)
30 nbug += 1
31 else
32 puts "# #{k} #{arch} #{oods[k].length - 1}"
33 end
34 end
35 puts "#{arch}: #{nbug}/#{nfail} #{nbug*100/nfail}%"
36 end

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5