From: David Bremner <bremner@debian.org>
To: 603308@bugs.debian.org
Cc: notmuch@notmuchmail.org
Subject: better timeout patch.
Date: Tue, 21 Dec 2010 03:52:23 -0000 [thread overview]
Message-ID: <87fwtreqcj.fsf@zancas.localnet> (raw)
[-- Attachment #1: Type: text/plain, Size: 126 bytes --]
Here is a timeout patch that actually seems to work. Also attached are
the diffs to debian/changelog to update to 0.5+nmu2.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: add timeout to test. --]
[-- Type: text/x-diff, Size: 1273 bytes --]
From f8e8ea0058ca2e57fececc3f01cc05ece0c3c3c8 Mon Sep 17 00:00:00 2001
From: David Bremner <bremner@unb.ca>
Date: Sun, 19 Dec 2010 21:48:59 -0400
Subject: [PATCH 1/2] tests: Add optional use of timeout utility, if present. Each top level
test (basic, corpus, etc...) is run with a fixed timeout of 10m.
The goal here is to treat a hung test as a failure. The emacs test
for sending mail is known to be problematic on the debian
autobuilders. This is both a bandaid fix for that, and a sensible
long term feature.
---
test/notmuch-test | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/test/notmuch-test b/test/notmuch-test
index b51045a..b75bc40 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -21,9 +21,17 @@ TESTS="basic new search json thread-naming raw reply dump-restore uuencode threa
# Clean up any results from a previous run
rm -r test-results >/dev/null 2>/dev/null
+# test for timeout utility
+if command -v timeout >/dev/null; then
+ TEST_TIMEOUT_CMD="timeout 10m "
+ echo "INFO: using 10 minute timeout for tests"
+else
+ TEST_TIMEOUT_CMD=""
+fi
+
# Run the tests
for test in $TESTS; do
- ./$test "$@"
+ $TEST_TIMEOUT_CMD ./$test "$@"
done
# Report results
--
1.7.2.3
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: changelog diff --]
[-- Type: text/x-diff, Size: 971 bytes --]
From 6998bffbaf2b4d683b8ce0b1706b3636d60a6559 Mon Sep 17 00:00:00 2001
From: David Bremner <bremner@unb.ca>
Date: Tue, 14 Dec 2010 22:24:38 -0400
Subject: [PATCH 2/2] Add NMU stanzas to changelog
---
debian/changelog | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cc758b9..790f34b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+notmuch (0.5+nmu2) experimental; urgency=low
+
+ * Non-maintainer upload.
+ * Second try at timeout for test. Put timeouts at top level.
+
+ -- David Bremner <bremner@debian.org> Sun, 19 Dec 2010 21:40:08 -0400
+
+notmuch (0.5+nmu1) experimental; urgency=low
+
+ * Non-maintainer upload.
+ * Add a timeout to emacs tests to hopefully work around build failures.
+
+ -- David Bremner <bremner@debian.org> Tue, 14 Dec 2010 22:23:51 -0400
+
notmuch (0.5) unstable; urgency=low
* new: maildir-flag synchronization
--
1.7.2.3
reply other threads:[~2010-12-21 3:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwtreqcj.fsf@zancas.localnet \
--to=bremner@debian.org \
--cc=603308@bugs.debian.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).