[Piuparts-commits] [piuparts] 01/01: detect_archive_issues.in: measure runtime as well
Holger Levsen
holger at layer-acht.org
Wed Mar 8 22:23:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 4b8db03253a2da253b93b06d25578eaeb38ceca5
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Mar 8 23:23:34 2017 +0100
detect_archive_issues.in: measure runtime as well
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 2 +-
master-bin/detect_archive_issues.in | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 61f7343..f0cae69 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -82,7 +82,7 @@ piuparts (0.76) UNRELEASED; urgency=medium
four times a day, which hasn't worked out for a long time.
* generate_daily_report.in: measure runtime of this script and the scripts
started by it.
- * detect_(network|piuparts)_issues.in: measure runtimes too.
+ * detect_(network|piuparts|archive)_issues.in: measure runtimes too.
[ Michael Stapelberg ]
* Add support for logging update-alternatives calls using optional
diff --git a/master-bin/detect_archive_issues.in b/master-bin/detect_archive_issues.in
index 00ff7e1..57a1d9b 100755
--- a/master-bin/detect_archive_issues.in
+++ b/master-bin/detect_archive_issues.in
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2009 Holger Levsen (holger at layer-acht.org)
+# Copyright © 2009-2017 Holger Levsen (holger at layer-acht.org)
# Copyright © 2011-2013 Andreas Beckmann (anbe at debian.org)
#
# This program is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@ get_config_value SECTIONS global sections
get_config_value URLBASE global urlbase https://piuparts.debian.org
get_config_value DAYS global reschedule-untestable-days 7
+STARTDATE=$(date -u +%s)
#
# detect packages which are/were untestable due to archive issue and mark them as such
@@ -48,6 +49,10 @@ done
if [ -s $URLS ]; then
date >> $MASTER/archive_issues.txt
cat $URLS >> $MASTER/archive_issues.txt
+ FINALDATE=$(date -u +%s)
+ RUNTIME=$(date -u -d "0 $FINALDATE seconds - $STARTDATE seconds" +%T)
+ echo "Runtime: $RUNTIME"
+ echo
echo "Broken packages detected!"
echo "(By grep'ing for"
echo " 'E: Broken packages',"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list