[Piuparts-devel] [Git][debian/piuparts][develop] master-bin/generate_daily_report: include number of failures in daily mail.
Holger Levsen
gitlab at salsa.debian.org
Thu Oct 25 00:36:00 BST 2018
Holger Levsen pushed to branch develop at Debian / piuparts
Commits:
5e263f80 by Holger Levsen at 2018-10-24T23:35:31Z
master-bin/generate_daily_report: include number of failures in daily mail.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- debian/changelog
- master-bin/generate_daily_report.in
Changes:
=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ piuparts (0.94) UNRELEASED; urgency=medium
* master-bin/detect_well_known_errors.py: suppress output if nothing new is
found in a section, or section is busy or has been recently processed.
+ * master-bin/generate_daily_report: include number of failures in daily mail.
-- Holger Levsen <holger at debian.org> Sun, 21 Oct 2018 14:03:22 +0200
=====================================
master-bin/generate_daily_report.in
=====================================
@@ -67,7 +67,7 @@ FAILURESTAMP=$HTDOCS/last-failure-report.stamp
test -f $FAILURESTAMP || touch -d @0 $FAILURESTAMP # start at the epoch
touch $FAILURESTAMP.new # for the next report
-echo "New failures:" >> $DAILYREPORT
+DAILYTMP=$(mktemp)
for SECTION in $SECTIONS ; do
test -d $MASTER/$SECTION || continue
for DIRECTORY in fail bugged affected untestable ; do
@@ -75,7 +75,11 @@ for SECTION in $SECTIONS ; do
done
find $MASTER/$SECTION/fail $MASTER/$SECTION/bugged $MASTER/$SECTION/affected $MASTER/$SECTION/untestable \
-type f -name '*.log' -newer $FAILURESTAMP -exec ls -1 {} + 2>/dev/null
-done | sed s#^$MASTER#$URLBASE# >> $DAILYREPORT
+done | sed s#^$MASTER#$URLBASE# >> $DAILYTMP
+
+echo "$(cat $DAILYTMP | wc -l) new failures:" >> $DAILYREPORT
+cat $DAILYTMP >> $DAILYREPORT
+rm $DAILYTMP
echo "" >> $DAILYREPORT
date >> $DAILYREPORT
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/5e263f80fde94ced22bd1ddd9d3d26e979dd6a5c
--
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/5e263f80fde94ced22bd1ddd9d3d26e979dd6a5c
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181024/a5ca1fbf/attachment-0001.html>
More information about the Piuparts-devel
mailing list