summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_common.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-15 19:49:53 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-15 19:49:53 +0200
commit343bfa89524e42ddf836cbcd3dd7d67687ba379a (patch)
treefaf1b088341432a7fc2c2d7860b136ca4cd35b4d /bin/reproducible_common.sh
parente1ee51de63b40580b1f5113d3886d8a3538e8fe3 (diff)
downloadjenkins.debian.net-343bfa89524e42ddf836cbcd3dd7d67687ba379a.tar.xz
reproducible: add stats page with graphs
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-xbin/reproducible_common.sh29
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