Created
August 18, 2010 07:08
-
-
Save florentx/533800 to your computer and use it in GitHub Desktop.
bbreport web view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gone": [ | |
{ | |
"rules": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "$", | |
"builder": ".* Ubuntu 3.x" | |
} | |
], | |
"test": "test_multiprocessing", | |
"message": "$", | |
"issue": "9572", | |
"builder": ".* Ubuntu 3.x" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_ctypes", | |
"message": "", | |
"builder": "x86 XP-4 3.x" | |
} | |
], | |
"test": "test_ctypes", | |
"message": "", | |
"issue": "8781", | |
"builder": "x86 XP-4 3.x" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "$", | |
"builder": "x86 XP-5 3.1" | |
} | |
], | |
"test": "test_multiprocessing", | |
"message": "$", | |
"issue": "9592", | |
"builder": "x86 XP-5 3.1" | |
} | |
], | |
"count_new": 8, | |
"count_build": 4, | |
"broken": [ | |
{ | |
"messages": [ | |
"* offline" | |
], | |
"host": "ARMv7Thumb Ubuntu", | |
"branches": [ | |
"2.7", | |
"3.1", | |
"3.x" | |
] | |
}, | |
{ | |
"messages": [ | |
"* offline" | |
], | |
"host": "amd64 gentoo", | |
"branches": [ | |
"2.7", | |
"3.1", | |
"3.x" | |
] | |
}, | |
{ | |
"messages": [ | |
"* offline" | |
], | |
"host": "ia64 Ubuntu", | |
"branches": [ | |
"2.7", | |
"3.1", | |
"3.x" | |
] | |
}, | |
{ | |
"messages": [ | |
"# compile" | |
], | |
"host": "x86 Windows7", | |
"branches": [ | |
"3.x" | |
] | |
}, | |
{ | |
"messages": [ | |
"# compile clean", | |
"# failed compile clean" | |
], | |
"host": "x86 XP-5", | |
"branches": [ | |
"2.7", | |
"3.1", | |
"3.x" | |
] | |
}, | |
{ | |
"messages": [ | |
"? exception svn clean" | |
], | |
"host": "x86 debian parallel", | |
"branches": [ | |
"3.1" | |
] | |
} | |
], | |
"changed": "2010-08-26 08:14 UTC", | |
"known": [ | |
{ | |
"rules": [ | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": ".* (2.7|3.x)" | |
} | |
], | |
"builder": ".* (2.7|3.x)", | |
"test": "test_subprocess", | |
"failures": [ | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "PPC Leopard 3.x", | |
"builds": [ | |
[ | |
341, | |
84320 | |
], | |
[ | |
340, | |
84317 | |
], | |
[ | |
339, | |
84315 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "PPC Tiger 3.x", | |
"builds": [ | |
[ | |
492, | |
84320 | |
], | |
[ | |
490, | |
84316 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "alpha Debian 2.7", | |
"builds": [ | |
[ | |
51, | |
84296 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "sparc Debian 3.x", | |
"builds": [ | |
[ | |
0, | |
84320 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 FreeBSD 3.x", | |
"builds": [ | |
[ | |
540, | |
84317 | |
], | |
[ | |
539, | |
84315 | |
], | |
[ | |
538, | |
84314 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 FreeBSD 7.2 2.7", | |
"builds": [ | |
[ | |
92, | |
84300 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 FreeBSD 7.2 3.x", | |
"builds": [ | |
[ | |
857, | |
84317 | |
], | |
[ | |
856, | |
84315 | |
], | |
[ | |
855, | |
84314 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 gentoo 3.x", | |
"builds": [ | |
[ | |
2919, | |
84319 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8432" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "", | |
"message": "hung", | |
"builder": "(ARM|.* debian parallel)" | |
} | |
], | |
"builder": "(ARM|.* debian parallel)", | |
"test": "", | |
"failures": [ | |
{ | |
"test": "test_io", | |
"message": "hung for 30 min", | |
"builder": "ARMv4 Debian 2.7", | |
"builds": [ | |
[ | |
110, | |
84291 | |
], | |
[ | |
109, | |
84286 | |
] | |
] | |
}, | |
{ | |
"test": "test_normalization", | |
"message": "hung for 30 min", | |
"builder": "AMD64 debian parallel 2.7", | |
"builds": [ | |
[ | |
8, | |
84311 | |
] | |
] | |
}, | |
{ | |
"test": "test_subprocess", | |
"message": "hung for 30 min", | |
"builder": "ARMv4 Debian 3.x", | |
"builds": [ | |
[ | |
393, | |
84312 | |
] | |
] | |
}, | |
{ | |
"test": "test_tokenize", | |
"message": "hung for 30 min", | |
"builder": "ARMv4 Debian 3.x", | |
"builds": [ | |
[ | |
394, | |
84314 | |
], | |
[ | |
392, | |
84299 | |
], | |
[ | |
391, | |
84295 | |
] | |
] | |
}, | |
{ | |
"test": "test_xpickle", | |
"message": "hung for 30 min", | |
"builder": "ARMv4 Debian 2.7", | |
"builds": [ | |
[ | |
111, | |
84296 | |
] | |
] | |
} | |
], | |
"message": "hung", | |
"issue": "8431" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_ttk_guionly", | |
"message": "", | |
"builder": ".* (Tiger|FreeBSD.*) (2.7|3.1|3.x)" | |
} | |
], | |
"builder": ".* (Tiger|FreeBSD.*) (2.7|3.1|3.x)", | |
"test": "test_ttk_guionly", | |
"failures": [ | |
{ | |
"test": "test_ttk_guionly", | |
"message": "", | |
"builder": "x86 FreeBSD 3.1", | |
"builds": [ | |
[ | |
408, | |
84322 | |
] | |
] | |
}, | |
{ | |
"test": "test_ttk_guionly", | |
"message": "", | |
"builder": "x86 Tiger 2.7", | |
"builds": [ | |
[ | |
171, | |
84324 | |
], | |
[ | |
170, | |
84321 | |
], | |
[ | |
169, | |
84311 | |
], | |
[ | |
168, | |
84305 | |
] | |
] | |
}, | |
{ | |
"test": "test_ttk_guionly", | |
"message": "", | |
"builder": "x86 Tiger 3.1", | |
"builds": [ | |
[ | |
498, | |
84325 | |
], | |
[ | |
497, | |
84322 | |
], | |
[ | |
496, | |
84312 | |
], | |
[ | |
495, | |
84302 | |
] | |
] | |
}, | |
{ | |
"test": "test_ttk_guionly", | |
"message": "", | |
"builder": "x86 Tiger 3.x", | |
"builds": [ | |
[ | |
884, | |
84323 | |
], | |
[ | |
883, | |
84320 | |
], | |
[ | |
881, | |
84317 | |
] | |
] | |
}, | |
{ | |
"test": "test_ttk_guionly", | |
"message": "segmentation fault", | |
"builder": "PPC Tiger 3.x", | |
"builds": [ | |
[ | |
491, | |
84317 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8445" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_pep277", | |
"message": "", | |
"builder": "x86 Tiger (2.7|3.x)" | |
} | |
], | |
"builder": "x86 Tiger (2.7|3.x)", | |
"test": "test_pep277", | |
"failures": [ | |
{ | |
"test": "test_pep277", | |
"message": "", | |
"builder": "x86 Tiger 2.7", | |
"builds": [ | |
[ | |
171, | |
84324 | |
], | |
[ | |
170, | |
84321 | |
], | |
[ | |
169, | |
84311 | |
], | |
[ | |
168, | |
84305 | |
] | |
] | |
}, | |
{ | |
"test": "test_pep277", | |
"message": "", | |
"builder": "x86 Tiger 3.x", | |
"builds": [ | |
[ | |
884, | |
84323 | |
], | |
[ | |
883, | |
84320 | |
], | |
[ | |
881, | |
84317 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8423" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_(file|file2k|bsddb3)", | |
"message": "(something crashed|hung)", | |
"builder": "x86 XP-[45] (2.6|2.7)" | |
} | |
], | |
"builder": "x86 XP-[45] (2.6|2.7)", | |
"test": "test_(file|file2k|bsddb3)", | |
"failures": [ | |
{ | |
"test": "test_bsddb3", | |
"message": "something crashed", | |
"builder": "x86 XP-4 2.7", | |
"builds": [ | |
[ | |
183, | |
84305 | |
] | |
] | |
}, | |
{ | |
"test": "test_file2k", | |
"message": "something crashed", | |
"builder": "x86 XP-4 2.7", | |
"builds": [ | |
[ | |
186, | |
84324 | |
], | |
[ | |
185, | |
84321 | |
], | |
[ | |
184, | |
84311 | |
] | |
] | |
} | |
], | |
"message": "(something crashed|hung)", | |
"issue": "9295" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "", | |
"builder": "x86 (FreeBSD 7.2 3.x|XP-4 3.x|Windows7 3.1)" | |
}, | |
{ | |
"test": "test_multiprocessing", | |
"message": "", | |
"builder": "(x86 FreeBSD 7.2 3.x|x86 XP-4 3.x|x86 Windows7 3.1|.* 2.7)" | |
} | |
], | |
"builder": "x86 (FreeBSD 7.2 3.x|XP-4 3.x|Windows7 3.1)", | |
"test": "test_multiprocessing", | |
"failures": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "hung for 20 min", | |
"builder": "x86 XP-4 3.x", | |
"builds": [ | |
[ | |
2844, | |
84317 | |
] | |
] | |
}, | |
{ | |
"test": "test_multiprocessing", | |
"message": "hung for 30 min", | |
"builder": "PPC Leopard 2.7", | |
"builds": [ | |
[ | |
116, | |
84321 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8428" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "", | |
"builder": "(x86 FreeBSD 7.2|ARMv4 Debian) 3.1" | |
} | |
], | |
"builder": "(x86 FreeBSD 7.2|ARMv4 Debian) 3.1", | |
"test": "test_multiprocessing", | |
"failures": [ | |
{ | |
"test": "test_multiprocessing", | |
"message": "", | |
"builder": "ARMv4 Debian 3.1", | |
"builds": [ | |
[ | |
289, | |
84302 | |
], | |
[ | |
288, | |
84290 | |
], | |
[ | |
287, | |
84285 | |
], | |
[ | |
286, | |
84269 | |
] | |
] | |
}, | |
{ | |
"test": "test_multiprocessing", | |
"message": "", | |
"builder": "x86 FreeBSD 7.2 3.1", | |
"builds": [ | |
[ | |
619, | |
84302 | |
], | |
[ | |
617, | |
84285 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "5930" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_cmd_line", | |
"message": "", | |
"builder": ".* Tiger (3.x|3.1)" | |
} | |
], | |
"builder": ".* Tiger (3.x|3.1)", | |
"test": "test_cmd_line", | |
"failures": [ | |
{ | |
"test": "test_cmd_line", | |
"message": "", | |
"builder": "PPC Tiger 3.1", | |
"builds": [ | |
[ | |
287, | |
84322 | |
], | |
[ | |
286, | |
84312 | |
] | |
] | |
}, | |
{ | |
"test": "test_cmd_line", | |
"message": "", | |
"builder": "PPC Tiger 3.x", | |
"builds": [ | |
[ | |
493, | |
84323 | |
], | |
[ | |
492, | |
84320 | |
], | |
[ | |
490, | |
84316 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8458" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_bsddb3", | |
"message": "$", | |
"builder": "x86 Windows7 (2.6|2.7)" | |
} | |
], | |
"builder": "x86 Windows7 (2.6|2.7)", | |
"test": "test_bsddb3", | |
"failures": [ | |
{ | |
"test": "test_bsddb3", | |
"message": "", | |
"builder": "x86 Windows7 2.7", | |
"builds": [ | |
[ | |
185, | |
84305 | |
] | |
] | |
} | |
], | |
"message": "$", | |
"issue": "6462" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 debian parallel (3.1|3.x)" | |
} | |
], | |
"builder": "x86 debian parallel (3.1|3.x)", | |
"test": "test_subprocess", | |
"failures": [ | |
{ | |
"test": "test_subprocess", | |
"message": "", | |
"builder": "x86 debian parallel 3.x", | |
"builds": [ | |
[ | |
110, | |
84323 | |
], | |
[ | |
109, | |
84320 | |
], | |
[ | |
108, | |
84319 | |
], | |
[ | |
107, | |
84317 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8391" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_warnings", | |
"message": "", | |
"builder": "x86 debian parallel 3.x" | |
} | |
], | |
"builder": "x86 debian parallel 3.x", | |
"test": "test_warnings", | |
"failures": [ | |
{ | |
"test": "test_warnings", | |
"message": "", | |
"builder": "x86 debian parallel 3.x", | |
"builds": [ | |
[ | |
110, | |
84323 | |
], | |
[ | |
109, | |
84320 | |
], | |
[ | |
108, | |
84319 | |
], | |
[ | |
107, | |
84317 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8589" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_float", | |
"message": "", | |
"builder": "ARMv4 Debian (2.6|3.1)" | |
} | |
], | |
"builder": "ARMv4 Debian (2.6|3.1)", | |
"test": "test_float", | |
"failures": [ | |
{ | |
"test": "test_float", | |
"message": "", | |
"builder": "ARMv4 Debian 3.1", | |
"builds": [ | |
[ | |
289, | |
84302 | |
], | |
[ | |
288, | |
84290 | |
], | |
[ | |
287, | |
84285 | |
], | |
[ | |
286, | |
84269 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8265" | |
}, | |
{ | |
"rules": [ | |
{ | |
"test": "test_sqlite", | |
"message": "", | |
"builder": "PPC Leopard 3.x" | |
} | |
], | |
"builder": "PPC Leopard 3.x", | |
"test": "test_sqlite", | |
"failures": [ | |
{ | |
"test": "test_sqlite", | |
"message": "", | |
"builder": "PPC Leopard 3.x", | |
"builds": [ | |
[ | |
341, | |
84320 | |
], | |
[ | |
340, | |
84317 | |
], | |
[ | |
339, | |
84315 | |
] | |
] | |
} | |
], | |
"message": "", | |
"issue": "8845" | |
} | |
], | |
"new": [ | |
{ | |
"test": "test_import", | |
"message": "", | |
"builder": "x86 XP-4 3.x", | |
"builds": [ | |
[ | |
2846, | |
84320 | |
] | |
] | |
}, | |
{ | |
"test": "test_multiprocessing", | |
"message": "hung for 30 min", | |
"builder": "sparc solaris10 gcc 3.x", | |
"builds": [ | |
[ | |
1492, | |
84319 | |
] | |
] | |
}, | |
{ | |
"test": "test_sqlite", | |
"message": "", | |
"builder": "PPC Tiger 3.x", | |
"builds": [ | |
[ | |
493, | |
84323 | |
], | |
[ | |
492, | |
84320 | |
], | |
[ | |
490, | |
84316 | |
] | |
] | |
}, | |
{ | |
"test": "test_sqlite", | |
"message": "", | |
"builder": "sparc Debian 3.x", | |
"builds": [ | |
[ | |
0, | |
84320 | |
] | |
] | |
}, | |
{ | |
"test": "test_threaded_import", | |
"message": "", | |
"builder": "x86 XP-4 3.1", | |
"builds": [ | |
[ | |
1164, | |
84322 | |
] | |
] | |
}, | |
{ | |
"test": "test_threading_local", | |
"message": "", | |
"builder": "x86 FreeBSD 3.1", | |
"builds": [ | |
[ | |
407, | |
84302 | |
] | |
] | |
}, | |
{ | |
"test": "test_threadsignals", | |
"message": "hung for 30 min", | |
"builder": "x86 Tiger 3.x", | |
"builds": [ | |
[ | |
882, | |
84319 | |
] | |
] | |
}, | |
{ | |
"test": "test_uu", | |
"message": "bus error", | |
"builder": "sparc Debian 3.1", | |
"builds": [ | |
[ | |
0, | |
84322 | |
] | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<Module> | |
<ModulePrefs title="Python Buildbot Report" | |
description="see the result of the Python test suite" | |
height="600" width="800"> | |
<Require feature="dynamic-height"/> | |
</ModulePrefs> | |
<Content type="html"> | |
<![CDATA[ | |
<base target="_top"> | |
<style> | |
body { | |
padding: 8px; | |
} | |
body, th, td { | |
line-height: 110%; | |
font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif; | |
font-size: 12.5px; | |
} | |
code { | |
font-family: 'Courier New', Courier, monospace; | |
} | |
tbody { | |
padding-top: 300px; | |
margin-top: 300px; | |
} | |
th, td { | |
border: 1px solid #aaa; | |
padding: 5px; | |
} | |
th { | |
font-weight: bold; | |
} | |
.even td { | |
background-color: #eff; | |
} | |
.odd td { | |
background-color: #fef; | |
} | |
.section_anchor, | |
.section_anchor:visited { | |
color: #fff; | |
text-decoration: none; | |
} | |
.section_anchor:hover { | |
color: #eaa; | |
} | |
</style> | |
<div id="header"> | |
<h1>Python Buildbot Report</h1> | |
<strong>Report buildbot failures.</strong> | |
</div> | |
<p><em>Generated on <span id="changed">_WAIT_</span></em></p> | |
<p>Data source: <a href="http://www.python.org/dev/buildbot/" | |
rel="nofollow">http://www.python.org/dev/buildbot/</a></p> | |
<p>Analyzing last <strong id="count_build">4</strong> builds for each builder.</p> | |
<p><input id="refresh" type="button" value="Refresh page" onclick="makeJSONRequest();"> <em>(updated hourly)</em></p> | |
<h2 id="New_failures">New failures<a href="#New_failures" class="section_anchor" target="_self">¶</a></h2> | |
<p><span id="count_new">?</span> new test failure(s): </p> | |
<table> | |
<tr><th>Test</th><th>Message</th><th>Builder</th><th>Revision(s)</th></tr> | |
<tbody id="new"></tbody> | |
</table> | |
<h2 id="Known_issues">Known issues<a href="#Known_issues" class="section_anchor" target="_self">¶</a></h2> | |
<table> | |
<tr><th>Issue</th><th>Test</th><th>Message</th><th>Builder</th><th>Revision(s)</th></tr> | |
<tbody id="known"></tbody> | |
</table> | |
<h2 id="No_recent_failure">No recent failure<a href="#No_recent_failure" class="section_anchor" target="_self">¶</a></h2> | |
<table> | |
<tr><th>Issue</th><th>Test</th><th>Message</th><th>Builder</th></tr> | |
<tbody id="gone"></tbody> | |
</table> | |
<h2 id="Broken_builders">Broken builders<a href="#Broken_builders" class="section_anchor" target="_self">¶</a></h2> | |
<table> | |
<tr><th>Host</th><th>Branch(es)</th><th>Message(s)</th></tr> | |
<tbody id="broken"></tbody> | |
</table> | |
<hr> | |
<script type="text/javascript"> | |
// var JSONURL = 'http://wiki.bbreport.googlecode.com/hg/bbreport.json'; | |
var JSONURL = 'http://gist.github.com/raw/533800/bbreport.json'; | |
var BASEURL = 'http://www.python.org/dev/buildbot/'; | |
var ROUNDUP = 'http://bugs.python.org/issue'; | |
if (location.search.indexOf('nohead') > 0) { | |
document.getElementById('header').style.display = 'none'; | |
} | |
function makeJSONRequest(url) { | |
if (!url) { | |
// Do not cache, please. | |
var rnd = Math.abs(new Date().valueOf() >> 15).toString(16); | |
url = JSONURL + '?nocache=' + rnd; | |
} | |
var params = {}; | |
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON; | |
set_html('changed', '####################'); | |
gadgets.io.makeRequest(url, response, params); | |
} | |
function format_line(line, rowspan, class) { | |
var issue = line.issue; | |
var builder = line.builder; | |
var builds = line.builds; | |
var is_issue = (builds == undefined); | |
var html = '<tr' + ((class)? ' class="' + class + '"':'') + '>'; | |
if (rowspan) { | |
issue = parseInt(issue); | |
rowspan = parseInt(rowspan); | |
html += '<td' + ((rowspan > 1)? ' rowspan="' + rowspan + '"':'') + '>'; | |
if (issue > 1000) { | |
html += '<a href="' + ROUNDUP + issue + '">' + issue + '</a>'; | |
} else { | |
html += ' \' \' '; | |
} | |
html += '</td>'; | |
} | |
var td_open = '<td>'; | |
var td_close = '</td>'; | |
if (is_issue) { | |
td_open += '<code>'; | |
td_close = '</code>' + td_close; | |
} | |
html += td_open + (line.test||' ') + td_close; | |
html += td_open + (line.message||' ') + td_close; | |
if (is_issue) { | |
html += td_open + (builder||' ') + td_close; | |
} else { | |
var burl = BASEURL + 'builders/' + encodeURIComponent(builder) + '/builds/'; | |
html += '<td><a href="' + burl + builds[0][0] + '">' + builder + '</a></td>'; | |
html += '<td> '; | |
for (var i in builds) { | |
var build = builds[i]; | |
var url = burl + build[0] + '/steps/test/logs/stdio'; | |
html += '<a href="' + url + '">' + build[1] + '</a> '; | |
} | |
html += '</td>'; | |
} | |
html += '</tr>\n'; | |
return html; | |
} | |
function format_rules(issue, parity) { | |
rule0 = issue.rules[0]; | |
rule0.issue = issue.issue; | |
html = format_line(rule0, issue.rules.length, parity); | |
for (var i = 1; i < issue.rules.length; i++) { | |
var rule = issue.rules[i]; | |
html += format_line(rule, false, parity); | |
} | |
return html; | |
} | |
function set_html(id, html) { | |
el = document.getElementById(id); | |
if (el) el.innerHTML = html; | |
} | |
function response(obj) { | |
var j = obj.data; | |
set_html('changed', j.changed); | |
set_html('count_last', j.count_last); | |
set_html('count_new', j.count_new); | |
var html = ''; | |
var parity = 'odd'; | |
var last_test = ''; | |
for (var l in j['new']) { | |
fail = j['new'][l]; | |
if (fail.test != last_test) { | |
parity = (parity == 'odd') ? 'even' : 'odd'; | |
last_test = fail.test; | |
} | |
html += format_line(fail, false, parity); | |
} | |
set_html('new', html); | |
html = ''; | |
parity = 'even'; | |
for (var l in j.known) { | |
var issue = j.known[l]; | |
if (l > 0) { | |
parity = (parity == 'odd') ? 'even' : 'odd'; | |
} | |
html += format_rules(issue, parity); | |
for (var f in issue.failures) { | |
var fail = issue.failures[f]; | |
html += format_line(fail, true, parity); | |
} | |
} | |
set_html('known', html); | |
html = ''; | |
for (var l in j.gone) { | |
html += format_rules(j.gone[l]); | |
} | |
set_html('gone', html); | |
html = ''; | |
for (var l in j.broken) { | |
var broken = j.broken[l]; | |
var branches = broken.branches; | |
var burl = BASEURL + 'builders/' + encodeURIComponent(broken.host); | |
html += '<tr>'; | |
html += '<td>' + broken.host + '</td>'; | |
html += '<td> '; | |
for (var b in branches) { | |
var branch = branches[b]; | |
html += '<a href="' + burl + ' ' + branch + '">' + branch + '</a> '; | |
} | |
html += '</td>'; | |
html += '<td>' + broken.messages.join('<br>') + '</td>'; | |
html += '</tr>\n'; | |
} | |
set_html('broken', html); | |
// Tells gadget to resize itself | |
gadgets.window.adjustHeight(); | |
} | |
gadgets.util.registerOnLoadHandler(makeJSONRequest); | |
</script> | |
]]> | |
</Content> | |
</Module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment