From 14a023c02d522e74a13a2d4207adbcee8f0e5a88 Mon Sep 17 00:00:00 2001
From: Holger Levsen "
write_page "committers to notes.git in total $(cd ${NOTES_GIT_PATH} ; git log |grep Author|sort -u |wc -l) "
fi
- AGE_TESTING=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) AS INTEGER) FROM ${TABLE[2]} WHERE suite='testing' AND datum='$DATE'")
- AGE_UNSTABLE=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) AS INTEGER) FROM ${TABLE[2]} WHERE suite='unstable' AND datum='$DATE'")
- AGE_EXPERIMENTAL=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(max(oldest_reproducible, oldest_unreproducible, oldest_FTBFS) AS INTEGER) FROM ${TABLE[2]} WHERE suite='experimental' AND datum='$DATE'")
- write_page "committers to notes.git in the last three months $(cd ${NOTES_GIT_PATH} ; git log --since="3 months ago"|grep Author|sort -u |wc -l) "
- RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(AVG(r.build_duration) AS INTEGER) FROM results AS r WHERE r.build_duration!='' AND r.build_duration!='0' AND r.build_date LIKE '%$DATE%'")
- MIN=$(echo $RESULT/60|bc)
- SEC=$(echo "$RESULT-($MIN*60)"|bc)
- write_page "oldest build result in testing / unstable / experimental $AGE_TESTING / $AGE_UNSTABLE / $AGE_EXPERIMENTAL days "
- RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT CAST(AVG(r.build_duration) AS INTEGER) FROM results AS r WHERE r.build_duration!='' AND r.build_duration!='0' AND r.build_date > datetime('$DATE', '-28 days')")
- MIN=$(echo $RESULT/60|bc)
- SEC=$(echo "$RESULT-($MIN*60)"|bc)
- write_page "average test duration (on $DATE) $MIN minutes, $SEC seconds "
- RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT COUNT(r.build_date) FROM results AS r WHERE r.build_date LIKE '%$DATE%'")
- write_page "average test duration (in the last 4 weeks) $MIN minutes, $SEC seconds "
- RESULT=$(sqlite3 -init ${INIT} -csv ${PACKAGES_DB} "SELECT COUNT(r.build_date) FROM results AS r WHERE r.build_date > datetime('$DATE', '-28 days')")
- RESULT="$(echo $RESULT/28|bc)"
- write_page "packages tested on $DATE $RESULT "
write_page ""
# write bugs with usertags table
write_usertag_table
@@ -604,9 +587,29 @@ create_main_stats_page() {
for SUITE in $SUITES ; do
write_page " "
done
- write_page "packages tested on average per day in the last 4 weeks $RESULT
amount | |
---|---|
oldest build result in testing / unstable / experimental | $AGE_TESTING / $AGE_UNSTABLE / $AGE_EXPERIMENTAL days |
average test duration (on $DATE) | $MIN minutes, $SEC seconds |
average test duration (in the last 4 weeks) | $MIN minutes, $SEC seconds |
packages tested on $DATE | $RESULT |
packages tested on average per day in the last 4 weeks | $RESULT |
There are some problems in this setup too.
" + write_page ""
+ write_page "
There are some problems in this setup too.