diff options
-rw-r--r-- | autobuild/results.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/autobuild/results.php b/autobuild/results.php index 631d20f..7fa178f 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -143,7 +143,8 @@ $nb_tried = $nb_failed + $nb_success; $succes_percent = round($nb_success*1000/$nb_tried)/10; $estimated_percent = round(($nb_success+$nb_fixed)*1000/($nb_tried-$nb_removed))/10; -echo "<title>$succes_percent% Success</title>\n"; +$title = "Autobuild results for $run"; +echo "<title>$title</title>\n"; ?> <style> table.failureTable { @@ -210,6 +211,7 @@ function get_package_attributes($package_id) { return $attributes; } +echo "<header id=\"mgnavt\"><h1>$title</h1><ul><li>$succes_percent% success</li></ul></header><article>\n"; echo "<form><select name='run' onChange='document.location.href=\"".$_SERVER["PHP_SELF"]."?run=\"+this.form.run.value'>"; foreach ($runs as $r) { $in_progress = ($r > $latest) ? ' (in progress)' : ''; @@ -218,14 +220,14 @@ foreach ($runs as $r) { } echo "</select></form>"; if ($_GET['include_success'] === 'true') { - echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?run=" . $_GET['run'] . "\">Only failures</a>"; + echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?run=$run\">Only failures</a>"; } else { - echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?run=" . $_GET['run'] . "&include_success=true\">Include successful packages</a>"; + echo "<a href=\"" . $_SERVER["PHP_SELF"] . "?run=$run&include_success=true\">Include successful packages</a>"; } echo "</div>\n"; -echo "<header id=\"mgnavt\"><h1>$succes_percent% Success</h1></header>\n"; +echo "<h2>Changes since this run</h2>\n"; echo "$nb_fixed packages have been fixed since this run and $nb_removed have been removed.<br/> If no new package was broken, success rate next time should be $estimated_percent%.<br/>\n"; -echo "<h1>Failed builds ($nb_failed/$nb_tried)</h1>\n"; +echo "<h2>Failed builds ($nb_failed/$nb_tried)</h2>\n"; echo "<table class=\"failureTable\" >\n"; echo "<tr><th></th><th>Status</th><th>Failure type</th><th>Build step</th><th></th><th>Languages</th><th>Detected errors</th></tr>\n"; foreach ($failure as $rpm => $error) { @@ -296,7 +298,7 @@ $db->close(); </table> <?php if ($_GET['include_success'] === 'true') { - echo "<h1>Successful builds ($nb_success/$nb_tried)</h1>\n<ul>\n"; + echo "<h2>Successful builds ($nb_success/$nb_tried)</h2>\n<ul>\n"; foreach ($success as $rpm) { $parsed = parse_package($rpm); $history_link = '<a href="history.php?package='.$parsed['package'].'">[h]</a>'; @@ -309,5 +311,12 @@ if ($_GET['include_success'] === 'true') { echo "</ul>\n"; } ?> + <script src="//nav.mageia.org/js/"></script> + <div class="clear"></div> + <hr /> + <footer> + Code for this page is in <a rel="nofollow" href="http://gitweb.mageia.org/web/pkgsubmit/tree/autobuild/">http://gitweb.mageia.org/web/pkgsubmit/tree/autobuild/</a>. + </footer> + </article> </body> </html> |