[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: refactor

Holger Levsen holger at moszumanska.debian.org
Sat Jul 18 16:57:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit b335b5ad1b0aaf6426573e03640d422a3debf5c3
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jul 18 18:57:11 2015 +0200

    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 361b231..d63dc26 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 7c56b60..0e02bc6 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 at lists.alioth.debian.org"
diff --git a/bin/reproducible_html_pkg_sets.sh b/bin/reproducible_html_pkg_sets.sh
index 8196d3e..3bc181e 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
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list