summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-03 18:21:07 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-03 18:21:07 +0100
commitb35ea9da45926eda7831f3de28d2e4a0002046e2 (patch)
tree9f940f332d56f0e25a2f6e1850c1156fa419ca11 /bin
parent26563dc1747f896e0cde2472dd47df5b8d2dae05 (diff)
downloadjenkins.debian.net-b35ea9da45926eda7831f3de28d2e4a0002046e2.tar.xz
reproducible: polish stats_build_per_day
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_graphs.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index c988da8e..236fd5f5 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -228,7 +228,7 @@ redo_png() {
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 :)
+ # not sure if it's worth to generate the following query...
sqlite3 -init ${INIT} --nullvalue 0 -csv ${PACKAGES_DB} "select s.datum,
s.reproducible as 'reproducible_sid',
COALESCE((SELECT e.reproducible FROM stats_builds_per_day AS e where s.datum=e.datum and suite='experimental'),0) as 'reproducible_experimental',
@@ -237,7 +237,8 @@ redo_png() {
s.FTBFS as 'FTBFS_sid',
(SELECT e.FTBFS FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental') AS FTBFS_experimental,
s.other as 'other_sid',
- (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental') AS other_experimental from stats_builds_per_day as s where s.suite='sid' group by s.datum" >> ${TABLE[$1]}.csv
+ (SELECT e.other FROM stats_builds_per_day e WHERE s.datum=e.datum AND suite='experimental') AS other_experimental
+ FROM stats_builds_per_day 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