diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-23 21:35:13 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-23 21:35:13 +0200 |
commit | 762d062c14c193e8d251f0032af104de6c65d6bb (patch) | |
tree | b1e95db4b1a3e32cfe6e2e12142f91b78b1848c2 /bin | |
parent | db7c7dd2604fdb9b15efd2c43be631360e0dc909 (diff) | |
download | jenkins.debian.net-762d062c14c193e8d251f0032af104de6c65d6bb.tar.xz |
reproducible: fix count for number of packages with unidentied issues and provide link to index_no_notes.html
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_graphs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index 45bc70dc..8ef32740 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -558,7 +558,8 @@ create_main_stats_page() { write_page "<tr><td>total amount of identified issues in packages</td><td>$COUNT_ISSUES</td></tr>" SUITE="unstable" gather_suite_stats - write_page "<tr><td>packages in $SUITE with issues but without any identified one</td><td>$(echo $COUNT_BAD + $COUNT_UGLY - $NOTES|bc)</td></tr>" + RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT COUNT(*) FROM (SELECT s.id FROM sources AS s JOIN results AS r ON r.package_id=s.id WHERE r.status IN ('unreproducible', 'FTBFS', 'blacklisted') AND s.id NOT IN (SELECT package_id FROM notes) AND s.suite='$SUITE' AND s.architecture='$ARCH')") + write_page "<tr><td>packages in $SUITE with issues but <a href=\"/$SUITE/$ARCH/index_no_notes.html\">without identified ones</a></td><td>$RESULT</td></tr>" write_page "<tr><td>packages in $SUITE which need to be fixed</td><td>$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%</td></tr>" if [ -f ${NOTES_GIT_PATH}/packages.yml ] && [ -f ${NOTES_GIT_PATH}/issues.yml ] ; then write_page "<tr><td>committers to <a href=\"https://anonscm.debian.org/cgit/reproducible/notes.git\" target=\"_parent\">notes.git</a> in total</td><td>$(cd ${NOTES_GIT_PATH} ; git log |grep Author|sort -u |wc -l)</td></tr>" |