Update status.o.o pages.
Add status.o.o navigation to zuul status and rechecks pages. Update graphs on zuul status pages every minute. Update zuul status and graphs immediately when the page is visible again after being hidden. Change-Id: Iae6f845275adb60c369fdeeee1ff8008bbdca199 Reviewed-on: https://review.openstack.org/18660 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
076e908309
commit
58bd04bf69
@ -34,17 +34,12 @@
|
||||
|
||||
<div id="navigation" class="span-19">
|
||||
<ul id="Menu1">
|
||||
<li><a href="http://openstack.org/" title="Go to the Home page" class="link" >Home</a></li>
|
||||
|
||||
<li><a href="http://openstack.org/projects/" title="Go to the OpenStack Projects page" class="link">Projects</a></li>
|
||||
|
||||
<li><a href="http://openstack.org/user-stories/" title="Go to the User Stories page" class="link">User Stories</a></li>
|
||||
|
||||
<li><a href="http://openstack.org/community/" title="Go to the Community page" class="current">Community</a></li>
|
||||
|
||||
<li><a href="http://openstack.org/blog/" title="Go to the OpenStack Blog">Blog</a></li>
|
||||
<li><a href="http://wiki.openstack.org/" title="Go to the OpenStack Wiki">Wiki</a></li>
|
||||
<li><a href="http://docs.openstack.org/" title="Go to OpenStack Documentation">Documentation</a></li>
|
||||
<li><a href="/">Status</a></li>
|
||||
<li><a href="/zuul/">Zuul</a></li>
|
||||
<li><a href="/rechecks/" class="current">Rechecks</a></li>
|
||||
<li><a href="/release/">Release</a></li>
|
||||
<li><a href="/reviews/">Reviews</a></li>
|
||||
<li><a href="/bugday/">Bugday</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -84,17 +84,12 @@
|
||||
|
||||
<div id="navigation" class="span-19">
|
||||
<ul id="Menu1">
|
||||
<li><a href="http://www.openstack.org/" title="Go to the Home page" class="link" >Home</a></li>
|
||||
|
||||
<li><a href="http://www.openstack.org/projects/" title="Go to the OpenStack Projects page" class="link">Projects</a></li>
|
||||
|
||||
<li><a href="http://www.openstack.org/user-stories/" title="Go to the User Stories page" class="link">User Stories</a></li>
|
||||
|
||||
<li><a href="http://www.openstack.org/community/" title="Go to the Community page" class="current">Community</a></li>
|
||||
|
||||
<li><a href="http://www.openstack.org/blog/" title="Go to the OpenStack Blog">Blog</a></li>
|
||||
<li><a href="http://wiki.openstack.org/" title="Go to the OpenStack Wiki">Wiki</a></li>
|
||||
<li><a href="http://docs.openstack.org/" title="Go to OpenStack Documentation">Documentation</a></li>
|
||||
<li><a href="/">Status</a></li>
|
||||
<li><a href="/zuul/" class="current">Zuul</a></li>
|
||||
<li><a href="/rechecks/">Rechecks</a></li>
|
||||
<li><a href="/release/">Release</a></li>
|
||||
<li><a href="/reviews/">Reviews</a></li>
|
||||
<li><a href="/bugday/">Bugday</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@ -116,7 +111,7 @@
|
||||
|
||||
<div class="container">
|
||||
<h2> Job Stats </h2>
|
||||
<img src="http://graphite.openstack.org/render/?width=310&height=170&_salt=1356393274.997&graphOnly=false&title=Ready%20Devstack%20Jenkins%20Nodes&hideGrid=false&vtitle=&bgcolor=FFFFFF&fgcolor=000000&target=alias(sumSeries(stats.gauges.devstack.pool.*.oneiric.ready)%2C%22Oneiric%22)&target=alias(sumSeries(stats.gauges.devstack.pool.*.precise.ready)%2C%22Precise%22)"/>
|
||||
<img class="graphite" src="http://graphite.openstack.org/render/?width=310&height=170&_salt=1356393274.997&graphOnly=false&title=Ready%20Devstack%20Jenkins%20Nodes&hideGrid=false&vtitle=&bgcolor=FFFFFF&fgcolor=000000&target=alias(sumSeries(stats.gauges.devstack.pool.*.oneiric.ready)%2C%22Oneiric%22)&target=alias(sumSeries(stats.gauges.devstack.pool.*.precise.ready)%2C%22Precise%22)"/>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
|
@ -89,14 +89,27 @@ function format_change(change) {
|
||||
return html;
|
||||
}
|
||||
|
||||
function update() {
|
||||
var html = '';
|
||||
|
||||
function update_timeout() {
|
||||
if (!window.zuul_enable_status_updates) {
|
||||
setTimeout(update, 5000);
|
||||
setTimeout(update_timeout, 5000);
|
||||
return;
|
||||
}
|
||||
|
||||
window.zuul_graph_update_count += 1;
|
||||
|
||||
update();
|
||||
/* Only update graphs every minute */
|
||||
if (window.zuul_graph_update_count > 11) {
|
||||
window.zuul_graph_update_count = 0;
|
||||
update_graphs();
|
||||
}
|
||||
|
||||
setTimeout(update_timeout, 5000);
|
||||
}
|
||||
|
||||
function update() {
|
||||
var html = '';
|
||||
|
||||
$.getJSON('http://zuul.openstack.org/status.json', function(data) {
|
||||
if ('message' in data) {
|
||||
$("#message-container").attr('class', 'topMessage');
|
||||
@ -115,15 +128,28 @@ function update() {
|
||||
html += '<br style="clear:both"/>';
|
||||
$("#pipeline-container").html(html);
|
||||
});
|
||||
setTimeout(update, 5000);
|
||||
}
|
||||
|
||||
function update_graphs() {
|
||||
$('.graphite').each(function(i, img) {
|
||||
var newimg = new Image()
|
||||
var parts = img.src.split('#');
|
||||
newimg.src = parts[0] + '#' + new Date().getTime();
|
||||
$(newimg).load(function (x) {
|
||||
img.src = newimg.src;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
update();
|
||||
window.zuul_graph_update_count = 0;
|
||||
update_timeout();
|
||||
|
||||
$(document).on({
|
||||
'show.visibility': function() {
|
||||
window.zuul_enable_status_updates = true;
|
||||
update();
|
||||
update_graphs();
|
||||
},
|
||||
'hide.visibility': function() {
|
||||
window.zuul_enable_status_updates = false;
|
||||
|
Loading…
Reference in New Issue
Block a user