summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-07-18 18:57:11 +0200
committerHolger Levsen <holger@layer-acht.org>2015-07-18 18:57:11 +0200
commitb335b5ad1b0aaf6426573e03640d422a3debf5c3 (patch)
tree3a649f3bf869695447d9f25d09c78037cad18db9 /bin
parentfbe9a7466b4f86b60c68154f34f6f6634e167785 (diff)
downloadjenkins.debian.net-b335b5ad1b0aaf6426573e03640d422a3debf5c3.tar.xz
reproducible: refactor
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.sh10
-rwxr-xr-xbin/reproducible_html_dashboards.sh11
-rwxr-xr-xbin/reproducible_html_pkg_sets.sh3
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