blob: 1ff1f0a7de3f3a972893fb1604e9fd61efb6ab2a [file] [log] [blame]
<html>
<head>
<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">
<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>
$(document).ready(function() {
$.getScript("js/common-1.6.js", function(data, textStatus, jqxhr){ });
$( document ).tooltip();
loadData();
//todo fix setInterval(loadData, 90000);
});
function loadData() {
$("#loadStatus").html("&#8987; Please wait");
$.ajax({
url: "rest/branches/version",
success: showVersionInfo,
error: showErrInLoadStatus
});
$.ajax({
url: "rest/branches/getIds",
success: function(result) {
$("#loadStatus").html("");
showCurrentBranchesData(result);
},
error: showErrInLoadStatus
});
$.ajax({
url: "rest/branches/suites",
success: function(result) {
$("#loadStatus").html("");
showFormAndSuitesForPrCheck(result);
tryToFillAutocompleteLists();
},
error: showErrInLoadStatus
});
$.ajax({
url: "rest/branches/getServerIds",
success: function(result) {
showBuildsOnServers(result);
setAutocompleteFilter();
},
error: showErrInLoadStatus
});
}
function showCurrentBranchesData(result) {
var res = "";
for (var i = 0; i < result.length; i++) {
var id = result[i];
// res += "<div class='formgroup'>";
res += id + ":";
res += "<a href='current.html?branch=" + id + "'><button>Latest (" + id + ")</button></a>";
res += " &nbsp;&nbsp;<a href='current.html?branch=" + id + "&checkAllLogs=true' title='With logs processing'><button>Latest (" + id + " + logs)</button></a>";
res += " &nbsp;&nbsp;<a href='all.html?branch=" + id + "'><button title='Failures from last 10 runs merged'>History (" + id + ")</button></a>";
// res += "</div>";
res += "<br>";
}
res += "</table>";
$("#branchesStatus").html(res);
}
function showFormAndSuitesForPrCheck(result) {
var res = "";
for (var i = 0; i < result.length; i++) {
var chainAtServer = result[i];
res += "<form action='pr.html'>";
res += "Server: <input type='text' name='serverId' value=" + chainAtServer.serverId + " readonly>";
res += "Chain: <input type='text' name='suiteId' value=" + chainAtServer.suiteId + ">";
res += "Base branch: <input class='branchForTc" + chainAtServer.serverId +
"' type='text' name='baseBranchForTc' title='Etalon branch, e.g refs/heads/master'> ";
res += "<b>Branch:</b> <input class='branchForTc" + chainAtServer.serverId +
"' type='text' name='branchForTc' title='Tested branch, e.g. pull/4790/head or ignite-9349' required> ";
res += "<input type='submit' name='action' value='Latest' title='Show latest runs'>";
// res+="<input type='submit' name='action' value='Chain'>";
res += "<input type='submit' name='action' value='History' title='Show last 10 runs merged'>";
res += "</form>";
}
$("#suitesForPrCheck").html(res);
}
function showBuildsOnServers(result) {
var res = "";
for (var i = 0; i < result.length; i++) {
let srvId = result[i];
//res+="<a href='pr.html?serverId=private&branchForTc=ignite-gg-12790-1&suiteId=id8xIgniteGridGainTests_RunAll="+id+"'>Check PR</a><br>";
res+="<form action='build.html'>";
res+="Server: <input type='text' name='serverId' value=" + srvId +" readonly>" ;
res+="Check Logs: <input type='text' name='checkAllLogs' style='width: 20%;' value='true' readonly>" ;
res+="Build Id: <input type='text' name='buildId' required> ";
res+="<input type='submit' name='action' value='Check'>";
res+="</form>";
$.ajax({
url: "rest/visa/contributions?serverId=" + srvId,
success:
function (result) {
$("#loadStatus").html("");
fillBranchAutocompleteList(result, srvId);
}
});
}
$("#buildsCheck").html(res);
}
</script>
</head>
<body>
<div class="formgroup">
Monitoring. Current Failed Tests: <br>
<div id="branchesStatus"></div>
</div>
<br>
<div class="formgroup">
Contribution. Check branch/PR:
<div id="suitesForPrCheck"></div>
</div>
<br>
<div class="formgroup">
Check build: <br>
<div id="buildsCheck"></div>
</div>
<br>
Statistics: <br>
<!--<a href="chart.html">Build metrics daily history</a><br>
<a href="restpretty.html?url=top/failing">Top failing tests</a> (JSON) <br>
<a href="restpretty.html?url=top/longRunning">Top long running tests</a> (JSON) <br>
<a href="restpretty.html?url=top/failingSuite">Top failing suites</a> (JSON) <br>
<a href="./status">Current Build Status (obsolete)</a><br>
<br>-->
<a href="trends.html">Comparison master's branch in the date interval</a><br>
Other: <br>
<a href="ignval.html">Ignite Log Values pretty-print</a> &nbsp;
<a href="monitoring.html">Bot moniroting page</a> <br>
<div id="loadStatus"></div>
<div id="version"></div>
</body>
</html>