diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-05-18 17:42:31 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-05-18 17:43:41 +0200 |
commit | f636b7168cc2fe342035f481a1b90c985cee55e1 (patch) | |
tree | 3a4cb59e3f7487a1253c262baf5ef55f3f0c4980 /bin | |
parent | ab6492de80c2afc5dd9334b50201e844b03fd11b (diff) | |
download | jenkins.debian.net-f636b7168cc2fe342035f481a1b90c985cee55e1.tar.xz |
reproducible debian: new page, performance stats, split off from dashboard
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_common.py | 1 | ||||
-rwxr-xr-x | bin/reproducible_common.sh | 7 | ||||
-rwxr-xr-x | bin/reproducible_html_dashboard.sh | 24 |
3 files changed, 25 insertions, 7 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index cb422653..829c7259 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -219,6 +219,7 @@ html_head_page = Template((tab*2).join((""" <li><a href="/index_issues.html">issues</a></li> <li><a href="/index_repositories.html">repositories overview</a></li> <li><a href="/index_notify.html" title="notify icon">⚑ packages with enabled notifications</a></li> + <li><a href="/index_performance.html">performance stats</a></li> </ul></li> </ul> $project_links diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 8b782d1e..65cc9883 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -186,8 +186,8 @@ write_page_header() { rm -f $PAGE MAINVIEW="dashboard" ALLSTATES="reproducible FTBR FTBFS depwait not_for_us 404 blacklisted" - ALLVIEWS="notes no_notes pkg_sets last_24h last_48h all_abc arch scheduled suite_stats dd-list dashboard issues repositories notify" - GLOBALVIEWS="issues scheduled notify repositories dashboard" + ALLVIEWS="notes no_notes pkg_sets last_24h last_48h all_abc arch scheduled suite_stats dd-list dashboard issues repositories notify performance" + GLOBALVIEWS="issues scheduled notify repositories dashboard performance" SUITEVIEWS="dd-list suite_stats" SPOKENTARGET["issues"]="issues" SPOKENTARGET["notes"]="packages with notes" @@ -202,6 +202,7 @@ write_page_header() { SPOKENTARGET["suite_stats"]="suite: $SUITE" SPOKENTARGET["repositories"]="repositories overview" SPOKENTARGET["dashboard"]="Debian dashboard" + SPOKENTARGET["performance"]="performance stats" write_page "<!DOCTYPE html><html><head>" write_page "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" write_page "<meta name=\"viewport\" content=\"width=device-width\" />" @@ -281,7 +282,7 @@ write_page_header() { write_page "</ul></li>" elif [ "$TARGET" = "last_48h" ] ; then write_page "</ul></li>" - elif [ "$TARGET" = "notify" ] ; then + elif [ "$TARGET" = "performance" ] ; then write_page "</ul></li>" elif [ "$TARGET" = "scheduled" ] ; then write_page "</ul></li>" diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index 1c5aeddd..0a438fc7 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -553,7 +553,24 @@ create_dashboard_page() { write_page "</p>" # explain setup write_variation_table debian - # redo arch specific pngs once a day and write build per day graphs + # link to index_breakages + write_page "<p style=\"clear:both;\">" + write_page "<br />There are <a href=\"$BASEURL/index_breakages.html\">some problems in this test setup itself</a> too. And there is <a href=\"https://jenkins.debian.net/userContent/about.html#_reproducible_builds_jobs\">documentation</a> too, in case you missed the link at the top. Feedback is very much appreciated.</p>" + # the end + write_page_footer + cp $PAGE $BASE/reproducible.html + publish_page +} + +# +# create performance page +# +create_performance_page() { + VIEW=performance + PAGE=index_${VIEW}.html + echo "$(date -u) - starting to write $PAGE page." + write_page_header $VIEW "Build node performance stats" + # arch performance stats write_page "<p style=\"clear:both;\">" for ARCH in ${ARCHS} ; do write_page " <a href=\"/${TABLE[1]}_$ARCH.png\"><img src=\"/${TABLE[1]}_$ARCH.png\" class=\"overview\" alt=\"${MAINLABEL[1]}\"></a>" @@ -561,7 +578,6 @@ create_dashboard_page() { create_png_from_table 1 ${TABLE[1]}_$ARCH.png fi done - # write performance stats write_page "<p style=\"clear:both;\">" write_build_performance_stats # write suite builds age graphs @@ -572,9 +588,8 @@ create_dashboard_page() { done write_page "</p><p style=\"clear:both;\">" done - # link to index_breakages - write_page "<br />There are <a href=\"$BASEURL/index_breakages.html\">some problems in this test setup itself</a> too. And there is <a href=\"https://jenkins.debian.net/userContent/about.html#_reproducible_builds_jobs\">documentation</a> too, in case you missed the link at the top. Feedback is very much appreciated.</p>" # the end + write_page "Daily <a href=\"https://jenkins.debian.net/view/reproducible/job/reproducible_nodes_info/lastBuild/console\">individual build node performance stats</a> are available too.</p>" write_page_footer cp $PAGE $BASE/reproducible.html publish_page @@ -596,4 +611,5 @@ done ARCH="amd64" SUITE="unstable" create_dashboard_page +create_performance_page rm -f $DUMMY_FILE >/dev/null |