[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [sysadmin/gerrit-ci-matrix] /: Spice up the UI a bit
From: Jan_Kundrát <jkt () kde ! org>
Date: 2016-10-01 0:45:38
Message-ID: E1bq8Qs-0003GL-Ej () code ! kde ! org
[Download RAW message or body]
Git commit 0dfb54eb43277d884d61b56bad9013cfe0e24298 by Jan Kundrát.
Committed on 14/09/2016 at 19:47.
Pushed by jkt into branch 'master'.
Spice up the UI a bit
M +26 -20 matrix.html
http://commits.kde.org/sysadmin/gerrit-ci-matrix/0dfb54eb43277d884d61b56bad9013cfe0e24298
diff --git a/matrix.html b/matrix.html
index 124df89..b65d917 100644
--- a/matrix.html
+++ b/matrix.html
@@ -1,17 +1,20 @@
<html>
<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<link rel="icon" type="image/png" \
href="https://gerrit.vesnicky.cesnet.cz/r/static/gerrit-favicon.png" /> <title>CI \
Status Matrix</title> <style type="text/css">
body { background: white; text-color: black; }
tr.heading { font-weight: bold; }
.hidden { display: none; }
- td { border: 1px solid #222222; }
+ td { border: 1px solid #222222; padding: 0.3em; }
table { border-collapse: collapse; }
td.SUCCESS { background-color: #aaffaa; }
td.FAILURE { background-color: #ff8888; }
+ td.FAILURE_deps { background-color: #ff88ff; }
td.FAILURE_build { background-color: #ff8888; }
+ td.FAILURE_configure { background-color: #ff8888; }
td.FAILURE_tests { background-color: #ffaaaa; }
- td.FAILURE_deps { background-color: #ff88ff; }
td.NOT_REGISTERED { background-color: #9999ff; }
td.not-run { background-color: #dddddd; }
</style>
@@ -89,7 +92,8 @@ function loadCI(jQuery) {
name = name.substr(prefix.length);
}
}
- var td = $('<td>').text(name);
+ var prettyName = name.replace(/-el7$/, '').replace(/-/g, ' ');
+ var td = $('<td>').text(prettyName);
$('tr.heading').append(td);
}
@@ -102,29 +106,31 @@ function loadCI(jQuery) {
if (allResults[projectName][jobName]) {
var job = allResults[projectName][jobName];
var res = job.result;
- td.append(res);
- td.append(' ');
- if (job.url != null) {
- var consoleLink = job.url.replace(/\/index\.html$/, \
'/shell_output.log');
- if (consoleLink != job.url) {
- td.append($('<a>').attr('href', consoleLink).text('console'));
- td.append(', ');
- }
- td.append($('<a>').attr('href', job.url).text('logs'));
- }
- td.attr('title', format_duration(job.duration) + '\non ' + new \
Date(job.time * 1000)); + td.attr('title', 'Duration: ' + \
format_duration(job.duration) + '\non ' + new Date(job.time * 1000)); if (res == \
'SUCCESS' || res == 'NOT_REGISTERED') { td.addClass(res);
- } else if (res.lastIndexOf('FAILURE_tests', 0) === 0) {
- td.addClass('FAILURE_tests');
- } else if (res.lastIndexOf('FAILURE_build', 0) === 0) {
- td.addClass('FAILURE_build');
+ td.append('OK');
} else if (res.lastIndexOf('FAILURE_deps', 0) === 0) {
td.addClass('FAILURE_deps');
- } else if (res.lastIndexOf('Tests failed', 0) === 0) {
+ td.append('dependencies');
+ } else if (res.lastIndexOf('FAILURE_cofigure', 0) === 0) {
+ td.addClass('FAILURE_cofigure');
+ td.append('cofigure');
+ } else if (res.lastIndexOf('FAILURE_build', 0) === 0) {
+ td.addClass('FAILURE_build');
+ td.append('build');
+ } else if (res.lastIndexOf('FAILURE_tests', 0) === 0 || \
res.lastIndexOf('Tests failed', 0) === 0) { td.addClass('FAILURE_tests');
+ td.append('tests');
} else {
- td.addClass('FAILURE');
+ td.addClass('FAILURE ' + res);
+ }
+ if (job.url != null) {
+ td.append(' ');
+ var consoleLink = job.url.replace(/\/index\.html$/, \
'/shell_output.log'); + if (consoleLink != job.url) {
+ td.append($('<a>').attr('href', consoleLink).text('[log]'));
+ }
}
} else {
td.addClass('not-run');
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic