diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-15 19:49:53 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-15 19:49:53 +0200 |
commit | 343bfa89524e42ddf836cbcd3dd7d67687ba379a (patch) | |
tree | faf1b088341432a7fc2c2d7860b136ca4cd35b4d /bin/reproducible_common.sh | |
parent | e1ee51de63b40580b1f5113d3886d8a3538e8fe3 (diff) | |
download | jenkins.debian.net-343bfa89524e42ddf836cbcd3dd7d67687ba379a.tar.xz |
reproducible: add stats page with graphs
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index b78ecf07..3e77542a 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -42,7 +42,34 @@ elif [ ! -f ${PACKAGES_DB} ] ; then CREATE TABLE sources (name TEXT NOT NULL, version TEXT NOT NULL)' - # 30 seconds timeout when trying to get a lock + sqlite3 ${PACKAGES_DB} ' + CREATE TABLE stats_pkg_state + (datum TEXT NOT NULL, + suite TEXT NOT NULL, + untested INTEGER, + reproducible INTEGER, + unreproducible INTEGER, + FTBFS INTEGER, + other INTEGER, + PRIMARY KEY (datum))' + sqlite3 ${PACKAGES_DB} ' + CREATE TABLE stats_builds_per_day + (datum TEXT NOT NULL, + suite TEXT NOT NULL, + reproducible INTEGER, + unreproducible INTEGER, + FTBFS INTEGER, + other INTEGER, + PRIMARY KEY (datum))' + sqlite3 ${PACKAGES_DB} ' + CREATE TABLE stats_builds_age + (datum TEXT NOT NULL, + suite TEXT NOT NULL, + oldest_reproducible REAL, + oldest_unreproducible REAL, + oldest_FTBFS REAL, + PRIMARY KEY (datum))' + # 60 seconds timeout when trying to get a lock cat >/var/lib/jenkins/reproducible.init <<-EOF .timeout 60000 EOF |