From f636b7168cc2fe342035f481a1b90c985cee55e1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 18 May 2016 17:42:31 +0200 Subject: reproducible debian: new page, performance stats, split off from dashboard --- bin/reproducible_common.py | 1 + bin/reproducible_common.sh | 7 ++++--- bin/reproducible_html_dashboard.sh | 24 ++++++++++++++++++++---- 3 files changed, 25 insertions(+), 7 deletions(-) (limited to 'bin') 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(("""
  • issues
  • repositories overview
  • ⚑ packages with enabled notifications
  • +
  • performance stats
  • $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 "" write_page "" write_page "" @@ -281,7 +282,7 @@ write_page_header() { write_page "" elif [ "$TARGET" = "last_48h" ] ; then write_page "" - elif [ "$TARGET" = "notify" ] ; then + elif [ "$TARGET" = "performance" ] ; then write_page "" elif [ "$TARGET" = "scheduled" ] ; then write_page "" 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 "

    " # 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 "

    " + write_page "
    There are some problems in this test setup itself too. And there is documentation too, in case you missed the link at the top. Feedback is very much appreciated.

    " + # 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 "

    " for ARCH in ${ARCHS} ; do write_page " \"${MAINLABEL[1]}\"" @@ -561,7 +578,6 @@ create_dashboard_page() { create_png_from_table 1 ${TABLE[1]}_$ARCH.png fi done - # write performance stats write_page "

    " write_build_performance_stats # write suite builds age graphs @@ -572,9 +588,8 @@ create_dashboard_page() { done write_page "

    " done - # link to index_breakages - write_page "
    There are some problems in this test setup itself too. And there is documentation too, in case you missed the link at the top. Feedback is very much appreciated.

    " # the end + write_page "Daily individual build node performance stats are available too.

    " 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 -- cgit v1.2.3-70-g09d2