Skip to content
......@@ -564,7 +564,7 @@ publish_page() {
fi
cp -v $PAGE $BASE/$TARGET
rm $PAGE
echo "Enjoy $REPRODUCIBLE_URL/$TARGET"
echo "$(date -u) - enjoy $REPRODUCIBLE_URL/$TARGET"
}
gen_package_html() {
......
......@@ -183,7 +183,7 @@ archlinux_page_footer(){
publish_page archlinux
}
archlinux_page_repostats(){
archlinux_repostats_table(){
write_page " <table><tr><th>repository</th><th>all source packages</th>"
write_page " <th><a href='/archlinux/state_GOOD.html'>reproducible packages</a></th>"
write_page " <th><a href='/archlinux/state_FTBR.html'>unreproducible packages</a></th>"
......@@ -194,17 +194,15 @@ archlinux_page_repostats(){
write_page " <th><a href='/archlinux/state_UNKNOWN.html'>unknown state</a></th></tr>"
cat $HTML_REPOSTATS >> $PAGE
write_page " </table>"
write_page " <p><a href='/archlinux/recent_builds.html'>(recent builds)</a></p>"
}
single_main_page(){
#
# write out the actual webpage
#
dashboard_page(){
PAGE=archlinux.html
TITLE="Reproducible archlinux ?!"
archlinux_page_header
write_page_intro 'Arch Linux'
archlinux_page_repostats
archlinux_repostats_table
# include graphs
write_page '<p style="clear:both;">'
for REPOSITORY in $ARCHLINUX_REPOS ; do
......@@ -222,7 +220,7 @@ repository_pages(){
TITLE="Reproducible archlinux $REPOSITORY ?!"
echo "$(date -u) - starting to write page for $REPOSITORY'."
archlinux_page_header
archlinux_page_repostats
archlinux_repostats_table
SUITE="archlinux_$REPOSITORY"
TESTED=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id
WHERE s.architecture='x86_64' AND s.suite='$SUITE';")
......@@ -244,7 +242,7 @@ state_pages(){
TITLE="Reproducible archlinux, packages in state $STATE"
echo "$(date -u) - starting to write page for state $STATE'."
archlinux_page_header
archlinux_page_repostats
archlinux_repostats_table
TESTED=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id
WHERE s.architecture='x86_64' AND r.status LIKE '$STATE%';")
if [ "$STATE" = "UNKNOWN" ] ; then
......@@ -286,7 +284,7 @@ repository_state_pages(){
TITLE="Reproducible archlinux, packages in $REPOSITORY in state $STATE"
echo "$(date -u) - starting to write page for packages in $REPOSITORY in state $STATE'."
archlinux_page_header
archlinux_page_repostats
archlinux_repostats_table
TESTED=$(query_db "SELECT count(*) FROM sources AS s JOIN results AS r ON s.id=r.package_id
WHERE s.architecture='x86_64' AND s.suite='$SUITE' AND r.status LIKE '$STATE%';")
if [ "$STATE" = "UNKNOWN" ] ; then
......@@ -318,6 +316,27 @@ repository_state_pages(){
done
}
recent_builds(){
PAGE=recent_builds.html
TITLE="Reproducible archlinux, builds in the last 24h"
echo "$(date -u) - starting to write page recent builds."
archlinux_page_header
archlinux_repostats_table
write_page "<h2>Recent builds of Archlinux packages in the last 24h</h2>"
include_pkg_table_header_in_page
MAXDATE="$(date -u +'%Y-%m-%d %H:%M' -d '24 hours ago')"
STATE_PKGS=$(query_db "SELECT s.name FROM sources AS s JOIN results AS r ON s.id=r.package_id
WHERE s.architecture='x86_64'
AND r.build_date > '$MAXDATE'
ORDER BY r.build_date
DESC")
for SRCPACKAGE in ${STATE_PKGS} ; do
include_pkg_html_in_page
done
write_page " </table>"
archlinux_page_footer
}
#
# main
#
......@@ -349,7 +368,8 @@ if [ -z "$1" ] ; then
HEIGHT=960
repostats
single_main_page
dashboard_page
recent_builds
repository_pages
state_pages
repository_state_pages
......