From b335b5ad1b0aaf6426573e03640d422a3debf5c3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 18 Jul 2015 18:57:11 +0200 Subject: reproducible: refactor --- bin/reproducible_common.sh | 10 ++++++++++ bin/reproducible_html_dashboards.sh | 11 +---------- bin/reproducible_html_pkg_sets.sh | 3 +-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 361b231f..d63dc26e 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -62,6 +62,16 @@ for i in $SUITES ; do mkdir -p "$BASE/$i" done +# tables for stats +TABLE[0]=stats_pkg_state +TABLE[1]=stats_builds_per_day +TABLE[2]=stats_builds_age +TABLE[3]=stats_bugs +TABLE[4]=stats_notes +TABLE[5]=stats_issues +TABLE[6]=stats_meta_pkg_state +TABLE[7]=stats_bugs_state + # known package sets META_PKGSET[1]="essential" META_PKGSET[2]="required" diff --git a/bin/reproducible_html_dashboards.sh b/bin/reproducible_html_dashboards.sh index 7c56b60a..0e02bc62 100755 --- a/bin/reproducible_html_dashboards.sh +++ b/bin/reproducible_html_dashboards.sh @@ -20,15 +20,7 @@ DATE=$(date -d "1 day ago" '+%Y-%m-%d') FORCE_DATE=$(date -d "2 day ago" '+%Y-%m-%d') NOTES_GIT_PATH="/var/lib/jenkins/jobs/reproducible_html_notes/workspace" -# variables related to the stats we do -TABLE[0]=stats_pkg_state -TABLE[1]=stats_builds_per_day -TABLE[2]=stats_builds_age -TABLE[3]=stats_bugs -TABLE[4]=stats_notes -TABLE[5]=stats_issues -TABLE[6]=stats_meta_pkg_state -TABLE[7]=stats_bugs_state +# variables related to the stats we update FIELDS[0]="datum, reproducible, unreproducible, FTBFS, other, untested" FIELDS[1]="datum" for i in reproducible unreproducible FTBFS other ; do @@ -58,7 +50,6 @@ COLOR[2]=1 COLOR[3]=32 COLOR[4]=1 COLOR[5]=1 -#COLOR[6] COLOR[7]=2 MAINLABEL[1]="Amount of packages built each day" MAINLABEL[3]="Usertags on bugs for user reproducible-builds@lists.alioth.debian.org" diff --git a/bin/reproducible_html_pkg_sets.sh b/bin/reproducible_html_pkg_sets.sh index 8196d3eb..3bc181e2 100755 --- a/bin/reproducible_html_pkg_sets.sh +++ b/bin/reproducible_html_pkg_sets.sh @@ -19,8 +19,7 @@ ARCH="amd64" # we only care about amd64 status here (for now) DATE=$(date -d "1 day ago" '+%Y-%m-%d') FORCE_DATE=$(date -d "2 day ago" '+%Y-%m-%d') -# variables related to the stats we do -TABLE[6]=stats_meta_pkg_state +# variables related to the stats we update FIELDS[6]="datum, reproducible, unreproducible, FTBFS, other" COLOR[6]=4 -- cgit v1.2.3-70-g09d2