From 3088e0eb759ce97ccd71e9cae005bad2d29a4a73 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 17 Apr 2020 20:58:28 +0000 Subject: Only load failures by default This gets the page currently to 241kB down from 2.8MB --- autobuild/results.php | 59 ++++++++++++++++----------------------------------- 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/autobuild/results.php b/autobuild/results.php index 0fc9807..631d20f 100644 --- a/autobuild/results.php +++ b/autobuild/results.php @@ -146,19 +146,6 @@ $estimated_percent = round(($nb_success+$nb_fixed)*1000/($nb_tried-$nb_removed)) echo "$succes_percent% Success\n"; ?> - -
$r$in_progress"; } -echo "
\n"; +echo ""; +if ($_GET['include_success'] === 'true') { + echo "Only failures"; +} else { + echo "Include successful packages"; +} +echo "\n"; echo "

$succes_percent% Success

\n"; echo "$nb_fixed packages have been fixed since this run and $nb_removed have been removed.
If no new package was broken, success rate next time should be $estimated_percent%.
\n"; echo "

Failed builds ($nb_failed/$nb_tried)

\n"; @@ -314,23 +294,20 @@ foreach ($failure as $rpm => $error) { $db->close(); ?> - -

- -

-
-- cgit v1.2.1