This is an automated email from the ASF dual-hosted git repository. dpavlov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
The following commit(s) were added to refs/heads/master by this push: new 28459ce Pages title revisited, old content removed 28459ce is described below commit 28459ceef5ee0edc12dae306895fc4b4e7fa8225 Author: Dmitriy Pavlov <dpav...@apache.org> AuthorDate: Wed Oct 24 19:00:27 2018 +0300 Pages title revisited, old content removed --- ignite-tc-helper-web/src/main/webapp/compare.html | 2 +- .../src/main/webapp/comparison.html | 2 +- ignite-tc-helper-web/src/main/webapp/current.html | 2 +- ignite-tc-helper-web/src/main/webapp/guard.html | 2 +- ignite-tc-helper-web/src/main/webapp/index.html | 2 +- ignite-tc-helper-web/src/main/webapp/index0.html | 2 +- ignite-tc-helper-web/src/main/webapp/issues.html | 2 +- ignite-tc-helper-web/src/main/webapp/login.html | 2 +- .../src/main/webapp/monitoring.html | 2 +- ignite-tc-helper-web/src/main/webapp/pr.html | 2 +- ignite-tc-helper-web/src/main/webapp/prs.html | 2 +- .../src/main/webapp/restpretty.html | 4 +- ignite-tc-helper-web/src/main/webapp/services.html | 4 +- .../src/main/webapp/statistics.html | 182 +-------------------- ignite-tc-helper-web/src/main/webapp/user.html | 2 +- 15 files changed, 20 insertions(+), 194 deletions(-) diff --git a/ignite-tc-helper-web/src/main/webapp/compare.html b/ignite-tc-helper-web/src/main/webapp/compare.html index 7ae22c0..1959fa2 100644 --- a/ignite-tc-helper-web/src/main/webapp/compare.html +++ b/ignite-tc-helper-web/src/main/webapp/compare.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity Helper</title> + <title>Apache Ignite Teamcity Bot - Compare builds</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/comparison.html b/ignite-tc-helper-web/src/main/webapp/comparison.html index 392e71c..65348c9 100644 --- a/ignite-tc-helper-web/src/main/webapp/comparison.html +++ b/ignite-tc-helper-web/src/main/webapp/comparison.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title>Ignite Teamcity - comparison master's branch in the date interval</title> + <title>Apache Ignite Teamcity Bot - Master trends</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> diff --git a/ignite-tc-helper-web/src/main/webapp/current.html b/ignite-tc-helper-web/src/main/webapp/current.html index 6574b35..40a91bc 100644 --- a/ignite-tc-helper-web/src/main/webapp/current.html +++ b/ignite-tc-helper-web/src/main/webapp/current.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity - current failures</title> + <title>Apache Ignite Teamcity Bot - Current Failures</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="css/style-1.5.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/guard.html b/ignite-tc-helper-web/src/main/webapp/guard.html index cf9b78e..a74aa3d 100644 --- a/ignite-tc-helper-web/src/main/webapp/guard.html +++ b/ignite-tc-helper-web/src/main/webapp/guard.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity Helper - Tracked Branches status</title> + <title>Apache Ignite Teamcity Bot - Tracked Branches selection</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/index.html b/ignite-tc-helper-web/src/main/webapp/index.html index 4a1c520..b0d7ad0 100644 --- a/ignite-tc-helper-web/src/main/webapp/index.html +++ b/ignite-tc-helper-web/src/main/webapp/index.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity Helper</title> + <title>Apache Ignite Teamcity Bot</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/index0.html b/ignite-tc-helper-web/src/main/webapp/index0.html index 3e2cfff..0110613 100644 --- a/ignite-tc-helper-web/src/main/webapp/index0.html +++ b/ignite-tc-helper-web/src/main/webapp/index0.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity Helper</title> + <title>Apache Ignite Teamcity Bot</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/issues.html b/ignite-tc-helper-web/src/main/webapp/issues.html index 9996eca..4410240 100644 --- a/ignite-tc-helper-web/src/main/webapp/issues.html +++ b/ignite-tc-helper-web/src/main/webapp/issues.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity - current issues</title> + <title>Apache Ignite Teamcity Bot - Current issues</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="css/style-1.5.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/login.html b/ignite-tc-helper-web/src/main/webapp/login.html index 0b64f74..89c4bbd 100644 --- a/ignite-tc-helper-web/src/main/webapp/login.html +++ b/ignite-tc-helper-web/src/main/webapp/login.html @@ -1,6 +1,6 @@ <html lang="en"> <head> - <title>Ignite Teamcity - login</title> + <title>Apache Ignite Teamcity Bot - Login</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="css/style-1.5.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/monitoring.html b/ignite-tc-helper-web/src/main/webapp/monitoring.html index 4787b31..e7258b3 100644 --- a/ignite-tc-helper-web/src/main/webapp/monitoring.html +++ b/ignite-tc-helper-web/src/main/webapp/monitoring.html @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="UTF-8"> - <title>TC Bot monitoriong page</title> + <title>Apache Ignite Teamcity Bot - Server monitoriong page</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/pr.html b/ignite-tc-helper-web/src/main/webapp/pr.html index 3988da3..e7851e5 100644 --- a/ignite-tc-helper-web/src/main/webapp/pr.html +++ b/ignite-tc-helper-web/src/main/webapp/pr.html @@ -1,6 +1,6 @@ <html> <head> - <title>Ignite Teamcity - PR failures</title> + <title>Apache Ignite Teamcity Bot - PR failures</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="css/style-1.5.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/prs.html b/ignite-tc-helper-web/src/main/webapp/prs.html index cc444df..48617c7 100644 --- a/ignite-tc-helper-web/src/main/webapp/prs.html +++ b/ignite-tc-helper-web/src/main/webapp/prs.html @@ -1,8 +1,8 @@ <!DOCTYPE html> <html lang="en"> <head> + <title>Apache Ignite Teamcity Bot - PR selection</title> <meta charset="UTF-8"> - <title>Services</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/restpretty.html b/ignite-tc-helper-web/src/main/webapp/restpretty.html index 18f4a28..c493370 100644 --- a/ignite-tc-helper-web/src/main/webapp/restpretty.html +++ b/ignite-tc-helper-web/src/main/webapp/restpretty.html @@ -1,8 +1,8 @@ <!DOCTYPE html> <html lang="en"> <head> - <meta charset="UTF-8"> - <title>Ignite Teamcity Helper</title> + <meta charset="UTF-8"> + <title>Apache Ignite Teamcity Bot</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> diff --git a/ignite-tc-helper-web/src/main/webapp/services.html b/ignite-tc-helper-web/src/main/webapp/services.html index 2493653..c7d88e2 100644 --- a/ignite-tc-helper-web/src/main/webapp/services.html +++ b/ignite-tc-helper-web/src/main/webapp/services.html @@ -1,3 +1,5 @@ <script> window.location='prs.html'; -</script> \ No newline at end of file +</script> + +<a href="prs.html">Page moved here</a> \ No newline at end of file diff --git a/ignite-tc-helper-web/src/main/webapp/statistics.html b/ignite-tc-helper-web/src/main/webapp/statistics.html index 1fa1f62..bc3eb0c 100644 --- a/ignite-tc-helper-web/src/main/webapp/statistics.html +++ b/ignite-tc-helper-web/src/main/webapp/statistics.html @@ -1,181 +1,5 @@ -<html> -<head> - <title>Ignite Teamcity - statistics master's branch</title> - <link rel="icon" href="img/leaf-icon-png-7066.png"> - <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> - <link rel="stylesheet" href="css/style-1.5.css"> - - <script src="https://code.jquery.com/jquery-1.12.4.js"></script> - <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> - <script src="js/common-1.6.js"></script> - <script src="js/testfails-2.1.js"></script> - <style> - table { - width: 70%; - border-collapse: collapse; - } - td, th { - - padding: 10px 5px 10px 5px; - } - th { - text-align: left; - padding: 5px; - background-color: #f5f5ff; - color: #000000; - } - tr:nth-child(odd) { background-color: #fafaff; } - </style> -</head> -<body> <script> - var g_shownDataHashCodeHex = ""; - var g_updTimer = null; - - $(document).ready(function () { - $.getScript("js/testfails-2.1.js", function (data, textStatus, jqxhr) { - }); - - $(document).tooltip(); - loadData(); - //todo fix setInterval( function() { checkForUpdate(); }, 30000); - - $.ajax({url: "rest/branches/version", success: showVersionInfo, error: showErrInLoadStatus}); - }); - - function parmsForRest() { - var curReqParms = ""; - var server = findGetParameter("server"); - if (server != null) { - curReqParms += "&server=" + server; - } - - var buildType = findGetParameter("buildType"); - if (buildType != null) { - curReqParms += "&buildType=" + buildType; - } - - var branch = findGetParameter("branch"); - if (branch != null) { - curReqParms += "&branch=" + branch; - } - - var count = findGetParameter("count"); - if (count != null) { - curReqParms += "&count=" + count; - } - - curReqParms = curReqParms.replace("&", "?"); - - return curReqParms; - } - - function loadData() { - var curFailuresUrl = "rest/build/history" + parmsForRest(); - - $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Please wait"); - $.ajax({ - url: curFailuresUrl, - success: function(result) { - if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) { - setTimeout(checkForUpdate, 3000); - - $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating"); - } else { - $("#loadStatus").html(""); - } - showData(result); - g_shownDataHashCodeHex = isDefinedAndFilled(result.hashCodeHex) ? result.hashCodeHex : ""; - }, - error: showErrInLoadStatus - }); - } - function showData(result) { - $("#statistics").html(showBuildHistory(result)); - } - - function median(arr){ - arr = arr.sort(function(a, b){ return a - b; }); - var i = arr.length / 2; - return i % 1 === 0 ? (arr[i - 1] + arr[i]) / 2 : arr[Math.floor(i)]; - } - - function formatString(string) { - if (string.indexOf("_") < string.indexOf(":")) - string = string.substring(string.indexOf("_") + 1); - - return "<b>" + string.substring(0, string.indexOf(":") + 1) + "</b>" + string.substring(string.indexOf(":") + 1); - } - - function showBuildHistory(result) { - var res = "<table class='stat'><tr><th>#</th><th>Id</th><th>Total tests</th><th>Failed tests</th><th>Ignored tests</th>" + - "<th>Muted tests</th><th>Total issues</th><th>Total run time</th></tr>"; - - var problemCountMin = result[0].problemsCount; - var problemCountMax = problemCountMin; - var problemCounts = []; - var average = 0; - - for (var i = 0; i < result.length; i++) { - var buildStatistics = result[i]; - - problemCounts[i] = buildStatistics.problemsCount; - - if (problemCounts[i] > problemCountMax) problemCountMax = problemCounts[i]; - - if (problemCounts[i] < problemCountMin) problemCountMin = problemCounts[i]; - - average += problemCounts[i] / buildStatistics.build.testOccurrences.failed; - - res += "<tr><td>" + (i + 1) + "</td>" + - "<td><a href='" + buildStatistics.build.webUrl + "'>" + buildStatistics.build.id + "</a></td>" + - "<td>" + buildStatistics.build.testOccurrences.count + "</td>" + - "<td>" + buildStatistics.build.testOccurrences.failed + "</td>" + - "<td>" + buildStatistics.build.testOccurrences.ignored + "</td>" + - "<td>" + buildStatistics.build.testOccurrences.muted + "</td><td>"; - - if (buildStatistics.fullRes.length > 0) { - res += "<details><summary>" + formatString(buildStatistics.shortRes) + "</summary><p>"; - - for (var k = 0; k < buildStatistics.fullRes.length; k++) { - res += (k + 1) + ". " + formatString(buildStatistics.fullRes[k]) + "<br>"; - } - - res += "</p></details><br>"; - } else { - res += "<p>" + buildStatistics.shortRes + "</p>"; - } - - var issuesArr = buildStatistics.relatedIssues; - - if (issuesArr.length > 0) { - res += "<details><summary>Related issues [" + issuesArr.length + "]</summary><p>"; - - for (var j = 0; j < issuesArr.length; j++) { - var issue = issuesArr[j]; - - if (j !== 0) res += ", "; - - res += "<a href='" + issue.url + "'>" + issue.id + "</a>"; - } - - res += "</p></details>"; - } - - res += "</td><td>" + buildStatistics.durationPrintable + "</td></tr>"; - } - - res += "</table><br>min: " + problemCountMin + "; max: " + problemCountMax + - "; median: " + (Math.round(median(problemCounts) * 1000) / 1000) + - "; average: " + (Math.round(average / result.length * 1000) / 1000) + "<br><br>"; - - return res; - - } + window.location='comparison.html'; </script> -<br> -<div id="loadStatus"></div> -<div id="statistics"></div> -<div id="version"></div> -</body> -</html> \ No newline at end of file + +<a href="comparison.html">Page moved here</a> \ No newline at end of file diff --git a/ignite-tc-helper-web/src/main/webapp/user.html b/ignite-tc-helper-web/src/main/webapp/user.html index 4ce23cd..e2db33b 100644 --- a/ignite-tc-helper-web/src/main/webapp/user.html +++ b/ignite-tc-helper-web/src/main/webapp/user.html @@ -1,6 +1,6 @@ <html lang="en"> <head> - <title>Ignite Teamcity - login</title> + <title>Apache Ignite Teamcity Bot - User preferences</title> <link rel="icon" href="img/leaf-icon-png-7066.png"> <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css">