From c694ec065cfaa535c938ae6bfdd9736beaa7a168 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 18 May 2015 21:21:26 +0200 Subject: reproducible: show number of committers in total and in the last three months --- bin/reproducible_html_graphs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_html_graphs.sh') diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh index 2bd08590..c2573de1 100755 --- a/bin/reproducible_html_graphs.sh +++ b/bin/reproducible_html_graphs.sh @@ -18,6 +18,9 @@ ARCH="amd64" # we only care about amd64 status here (for now) # we only do stats up until yesterday... we also could do today too but not update the db yet... DATE=$(date -d "1 day ago" '+%Y-%m-%d') FORCE_DATE=$(date -d "2 day ago" '+%Y-%m-%d') +NOTES_GIT_PATH="/var/lib/jenkins/jobs/reproducible_html_notes/workspace" + +# variables related to the stats we do TABLE[0]=stats_pkg_state TABLE[1]=stats_builds_per_day TABLE[2]=stats_builds_age @@ -124,7 +127,6 @@ update_suite_stats() { # update notes stats # update_notes_stats() { - NOTES_GIT_PATH="/var/lib/jenkins/jobs/reproducible_html_notes/workspace" if [ ! -d ${NOTES_GIT_PATH} ] ; then echo "Warning: ${NOTES_GIT_PATH} does not exist, has the job been renamed???" echo "Please investigate and fix!" @@ -557,6 +559,10 @@ create_main_stats_page() { gather_suite_stats write_page "packages in $SUITE with issues but without any identified one$(echo $COUNT_BAD + $COUNT_UGLY - $NOTES|bc)" write_page "packages in $SUITE which need to be fixed$(echo $COUNT_BAD + $COUNT_UGLY |bc) / $(echo $PERCENT_BAD + $PERCENT_UGLY|bc)%" + if [ -f ${NOTES_GIT_PATH}/packages.yml ] && [ -f ${NOTES_GIT_PATH}/issues.yml ] ; then + write_page "committers to notes.git in total$(cd ${NOTES_GIT_PATH} ; git log |grep Author|sort -u |wc -l)" + write_page "committers to notes.git in the last three months$(cd ${NOTES_GIT_PATH} git log --since="3 month ago"|grep Author|sort -u |wc -l)" + fi write_page "" # other graphs write_page "

" -- cgit v1.2.3-54-g00ecf