From c3b5b574bfd81f2093c4d795a929e27ed34708f1 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 6 Feb 2020 14:13:24 +1000 Subject: Rewrite some of the output. Move explanations into tooltips. Invent a crappy HTML template "system". General clean up of text. --- README.md | 2 - Report-web_0.html | 4 + Report-web_1.html | 38 +++++++++ Report-web_2.html | 5 ++ Report-web_3.html | 11 +++ Report-web_TABLE.html | 158 ++++++++++++++++++++++++++++++++++++ apt-panopticon-report-email-web.lua | 97 +++++++++------------- apt-panopticon.lua | 1 - explanations.html | 96 ---------------------- 9 files changed, 255 insertions(+), 157 deletions(-) create mode 100644 Report-web_0.html create mode 100644 Report-web_1.html create mode 100644 Report-web_2.html create mode 100644 Report-web_3.html create mode 100644 Report-web_TABLE.html delete mode 100644 explanations.html diff --git a/README.md b/README.md index 982a108..9ff79f2 100644 --- a/README.md +++ b/README.md @@ -158,8 +158,6 @@ redirections. Unless a specific mirror is given on the command line, the mirror_list.txt file from pkgmaster.devuan.org is used to select mirrors to test. -explanations.html explains the tests in more detail. - The --tests= option can be used to adjust the list of tests performed. * IPv4, perform the tests with IPv4 addresses (A records) diff --git a/Report-web_0.html b/Report-web_0.html new file mode 100644 index 0000000..5f56c3f --- /dev/null +++ b/Report-web_0.html @@ -0,0 +1,4 @@ + + +
+Here the apt-panopticon system probes into every nook and cranny of the Devuan apt package mirror system, trying to live up to it's name.
+This is the status of the mirror servers in the Devuan package mirror network.
diff --git a/Report-web_2.html b/Report-web_2.html new file mode 100644 index 0000000..592e8c6 --- /dev/null +++ b/Report-web_2.html @@ -0,0 +1,5 @@ +EXPERIMENTAL CODE - double check all results you see here, and read the logs if it's important.
+The full list of Devuan package mirrors is available at the URL: https://pkgmaster.devuan.org/mirror_list.txt
+Due to the nature of the tests, some errors or warnings will be counted several times. The links in the table and DNS list go to the detailed testing logs.
+ +Tooltips are things that have an explanation tooltip, hover over them.
+FAILED or OK means the tested thing is supported for that mirror.
+FAILED* or OK* means the tested thing is unsupported for that mirror, but might have been tested anyway.
+timeout or timeout means the mirror had some timeouts, and tests where not yet aborted. The darker colour means unsupported by the mirror, but tested anyway.
+TIMEOUT or TIMEOUT means the mirror had too many timeouts, and tests where aborted, so there is no result for this test.
+NOTE: timeouts may be due to a problem on the testing computer, it might be busy with other things, or be having it's own network problems.
+NOTE: the speed of the server this checking script is running on might be wildly exaggerated, it doesn't have to go through the Internet to download from itself.
+The DNS round robin (DNS-RR) column shows the IPs for that mirror, or no if it isn't part of the DNS-RR. The IPs link to the testing log for that IP accessed via the DNS-RR. deb.devuan.org is the DNS-RR itself, so it doesn't get tested directly.
+The time in the Updated column is how often the mirror updates itself.
+Mirrors with a grey background are not active (though may be usable as part of the DNS-RR).
+skip means that the test hasn't been written yet.
diff --git a/Report-web_TABLE.html b/Report-web_TABLE.html new file mode 100644 index 0000000..bad7148 --- /dev/null +++ b/Report-web_TABLE.html @@ -0,0 +1,158 @@ ++ |
+
+ FTP
+
+
+
+ FTP tests+The FTP tests have not been written yet. + |
+
+
+ HTTP
+
+
+
+ HTTP tests+There are two styles of HTTP tests - actual HTTP downloads and HTTP HEAD tests. + Actual downloads happen when other tests need the files to be downloaded. + HEAD tests are where apt-panopticon probes things in detail. + For each mirror (including the DNS round robin domain), and for each IP of that mirror - + +
|
+
+
+ HTTPS
+
+
+
+ HTTPS tests+The HTTPS tests are very similar to the HTTP tests detailed above, though obviously they are tried with HTTPS requests instead of HTTP requests. + The validity of the HTTPS certificate for each server is tested as well. + + |
+
+
+ RSYNC
+
+
+
+ RSYNC tests+The RSYNC tests have not been written yet. + |
+
+
+ DNS round robin
+
+
+
+ DNS round robin+The "DNS round robin" column lists the IP addresses for each mirror that is part of the DNS round robin, or DNS-RR. + The IPs are linked to the log for that specific IP when used via the DNS round robin, and is followed by the number of ERRORs, WARNINGs, or TIMEOUTs if any. + + |
+
+
+ Protocol
+
+
+
+ Protocol tests+The Protocol test will give a warning if the protocol is changed during a redirect, HTTP -> HTTPS for example. + While apt HTTPS transport is now the default in Beowulf / Buster, not everyone with an older release will have that installed, + so redirecting HTTP to HTTPS will break apt for those people. + An ERROR is given instead if that happens for mirrors in the DNS round robin. + Servers in the DNS round robin will not have the HTTPS certificate for the round robin domain, so redirecting to HTTPS for that is an ERROR. + + |
+
+
+ Redirects
+
+
+
+ Redirect tests+Mirrors that redirect /DEVUAN/ back out to deb.devuan.org is an ERROR. + /DEBIAN-SECURITY/ packages must be redirected to a Debian mirror, specifically a mirror hosting Debian security updates. + However, some Devuan mirrors might also be Debian mirrors, so this is just a WARNING. + + |
+
+
+ URL sanity
+
+
+
+ URL sanity tests+The URL sanity test replaces "/" in URLS with "///", to see if the mirror can cope with that. + This might happen due to a minor mis-configuration by the apt user, but decent web servers should cope with that. + The result for a mirror that does not cope is a failed download for that user, so this is an ERROR. + + |
+
+
+ Integrity
+
+
+
+ Integrity tests+Actually download files, then check things like PGP keys, SHA256 check sums, and file size. + For packages, pick the smallest one that has been recently updated. + + |
+
+
+ Updated
+
+
+
+ Updated tests+Make sure the Release files are up to date by checking their internal "Date" field. + If they are up to date, download and check updated Packages.xz files, and actual packages. + For actual packages, pick the smallest one that has been recently updated. + +Also shown is the mirrors scheduled time between updates, with "m" meaning minutes and "h" meaning hours. + If this is showing a WARNING, it's likely that the mirror hasn't updated yet, but is due to update after this test was run. + + |
+
+
+ Speed range
+
+
+
+ Speed range+The speed test tries to guess at a minimum and maximum speed range for each mirror. + It does this by measuring the reported speeds from the curl commands that actually download files. + Since apt-panopticon is trying hard to download everything from all mirrors all at the same time, this guess will be low. + Also, the computer running the apt-panopticon might have a network connection that is busy with other things. + Not to mention that obviously if the computer this is running on is one of the mirrors, it might get a wildly exaggerated speed, + not having to go through the rest of the Internet tends to help. + Finally, the tested mirror may have a bigger network connection than the computer running the test, so wont show it's true maximum. + So take this speed measurement with a grain of salt, it's more of an indication, the full graphs might be more useful. + + |
+
+
+ Weekly statistics
+
+
+
+ Weekly statistics+This is the percentage of time, over the last week, that the mirror was up, and the percentage of time the mirror was up to date. + Note that if the mirror has a low uptime, then there wasn't much chance to check if it was up to date. + + |
+
---|
" .. lnk('FTP') .. " | " .. lnk('HTTP') .. " | " .. lnk('HTTPS') .. " | " .. lnk('RSYNC') .. " | " .. - "" .. lnk('DNS round robin', 'DNS-RR') .. " | " .. lnk('Protocol') .. " | " .. lnk('Redirects') .. - " | " .. lnk('URL sanity', 'URL-Sanity') .. " | " .. lnk('Integrity') .. " | " .. - "" .. lnk('Updated') .. " | " .. lnk('Speed range', 'Speed') .. " | " .. - "" .. lnk('Weekly statistics', 'Weekly') .. " |
---|