[Piuparts-devel] [Git][debian/piuparts][develop] WIP: reduce number of mails per day, from 15 down to 2, see #912591.

Holger Levsen gitlab at salsa.debian.org
Wed Nov 28 13:00:49 GMT 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
f7faed86 by Holger Levsen at 2018-11-28T13:00:28Z
WIP: reduce number of mails per day, from 15 down to 2, see #912591.

- master-bin/master_shell_runner: new script to run python scripts to
  redirect logs to htdocs/logs.
- conf/crontab-master.in: run detect_well_known_errors and piuparts-report
  through the new master_shell_runner script.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


3 changed files:

- conf/crontab-master.in
- debian/changelog
- + master-bin/master_shell_runner.in


Changes:

=====================================
conf/crontab-master.in
=====================================
@@ -14,8 +14,8 @@ PYTHONPATH=@libdir@/python2.7/dist-packages
 #  (dinstall runs 1|7|13|19:52, so this is long after mirror pushes...)
 #
 0  4-23/12 * * * piuparts-analyze
-0  2-23/3 * * * detect_well_known_errors
-0  0-23/3 * * * piuparts-report
+0  2-23/3 * * * master_shell_runner detect_well_known_errors
+0  0-23/3 * * * master_shell_runner piuparts-report
 15 23 * * * generate_daily_report
 
 #


=====================================
debian/changelog
=====================================
@@ -3,7 +3,7 @@ piuparts (0.95) UNRELEASED; urgency=medium
   [ Holger Levsen ]
   * piuparts.py: add /var/lib/debian-security-support/ to self.ignored_files.
     (Closes: #749317)
-  * WIP: reduce number of mails per day, from 34 down to 15, see #912591.
+  * WIP: reduce number of mails per day, from 34 down to 2, see #912591.
     - master-bin/detect_archive_issues: redirect logs to htdocs/logs to spare
       us two mails per day.
     - master-bin/detect_piuparts_issues: redirect logs to htdocs/logs to spare
@@ -14,6 +14,10 @@ piuparts (0.95) UNRELEASED; urgency=medium
       us two mails per day.
     - master-bin/rotate_master_logs: redirect logs to htdocs/logs to spare
       us one mail per day.
+    - master-bin/master_shell_runner: new script to run python scripts to
+      redirect logs to htdocs/logs.
+    - conf/crontab-master.in: run detect_well_known_errors and piuparts-report
+      through the new master_shell_runner script.
     - lib/write_log.sh: new helper to publish logs in htdocs/logs.
     - piuparts-report.py: add navigation link to https://piuparts.d.o/logs/
 


=====================================
master-bin/master_shell_runner.in
=====================================
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Copyright © 2018 Holger Levsen (holger at layer-acht.org)
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation; either version 2 of the License, or (at your
+# option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see <https://www.gnu.org/licenses/>
+
+. @sharedir@/piuparts/lib/read_config.sh
+. @sharedir@/piuparts/lib/write_log.sh
+
+get_config_value HTDOCS global output-directory
+
+TEMPORARY_OUTPUT=$(mktemp)
+
+$1 > $TEMPORARY_OUTPUT
+publish_logs $TEMPORARY_OUTPUT $HTDOCS $1



View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/f7faed860caa5d1a6c7468d50df4fe48b81a53cb

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/commit/f7faed860caa5d1a6c7468d50df4fe48b81a53cb
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/20181128/dceea8da/attachment-0001.html>


More information about the Piuparts-devel mailing list