summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-03 14:37:11 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-03 14:37:11 +0100
commit27b39cecbd4be8870fc93d3be2b10751db804483 (patch)
tree0514447b973f7a229d321c0efb8bfe7a13cea219 /bin
parentb922356cc047585b2d5b441064846e95b6a56e74 (diff)
downloadjenkins.debian.net-27b39cecbd4be8870fc93d3be2b10751db804483.tar.xz
reproducible: aggregate suites for builds_per_day stats
Diffstat (limited to 'bin')
-rwxr-xr-xbin/make_graph.py2
-rwxr-xr-xbin/reproducible_html_graphs.sh24
2 files changed, 22 insertions, 4 deletions
diff --git a/bin/make_graph.py b/bin/make_graph.py
index 0233594c..83f71aa8 100755
--- a/bin/make_graph.py
+++ b/bin/make_graph.py
@@ -28,7 +28,7 @@ def main():
r('t <- (read.table("'+countsfile+'",sep=",",header=1,row.names=1))')
r('cname <- c("date",rep(colnames(t)))')
# thanks to http://tango.freedesktop.org/Generic_Icon_Theme_Guidelines for those nice colors
- if int(colors) < 10:
+ if int(colors) < 9:
r('palette(c("#4e9a06", "#f57900", "#cc0000", "#2e3436", "#888a85"))')
else:
r('palette(c("#fce94f", "#c4a000", "#eeeeec", "#babdb6", \
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 65e6a3c1..6d0108a7 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -177,7 +177,12 @@ fi
# used for redo_png (but only needed to define once)
FIELDS[0]="datum, reproducible, unreproducible, FTBFS, other, untested"
-FIELDS[1]="datum, reproducible, unreproducible, FTBFS, other"
+FIELDS[1]="datum"
+for i in reproducible unreproducible FTBFS other ; do
+ for j in $SUITES ; do
+ FIELDS[1]="$FIELDS[1], ${i}_${j}"
+ done
+done
FIELDS[2]="datum, oldest_reproducible, oldest_unreproducible, oldest_FTBFS"
FIELDS[3]="datum "
for TAG in $USERTAGS ; do
@@ -186,7 +191,7 @@ done
FIELDS[4]="datum, packages_with_notes"
FIELDS[5]="datum, known_issues"
FIELDS[6]="datum, reproducible, unreproducible, FTBFS, other"
-COLOR[0]=5
+COLOR[0]=9
COLOR[1]=4
COLOR[2]=3
COLOR[3]=28
@@ -220,7 +225,20 @@ redo_png() {
else
WHERE_EXTRA=""
fi
- sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT ${FIELDS[$1]} from ${TABLE[$1]} ${WHERE_EXTRA} ORDER BY datum" >> ${TABLE[$1]}.csv
+ if [ $1 -ne 1 ] ; then
+ sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT ${FIELDS[$1]} from ${TABLE[$1]} ${WHERE_EXTRA} ORDER BY datum" >> ${TABLE[$1]}.csv
+ else
+ # FIXME: also generate this query for stretch and buster and beyond :)
+ sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "select s.datum,
+ s.reproducible as 'reproducible_sid',
+ COALESCE((SELECT e.reproducible FROM stats_pkg_state AS e where s.datum=e.datum and suite='experimental'),'') as 'reproducible_experimental',
+ s.unreproducible as 'unreproducible_sid',
+ (SELECT e.unreproducible FROM stats_pkg_state e WHERE s.datum=e.datum AND suite='experimental') AS unreproducible_experimental,
+ s.FTBFS as 'FTBFS_sid',
+ (SELECT e.FTBFS FROM stats_pkg_state e WHERE s.datum=e.datum AND suite='experimental') AS FTBFS_experimental,
+ s.other as 'other_sid',
+ (SELECT e.other FROM stats_pkg_state e WHERE s.datum=e.datum AND suite='experimental') AS other_experimental from stats_pkg_state as s where s.suite='sid' group by s.datum" >> ${TABLE[$1]}.csv
+ fi
# only generate graph is the query returned data
if [ $(cat ${TABLE[$1]}.csv | wc -l) -gt 1 ] ; then
DIR=$(dirname $2)