Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 873CC429E55 for ; Tue, 28 Jun 2011 17:15:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4WMtmqO4l7JI for ; Tue, 28 Jun 2011 17:15:49 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id C50F4429E32 for ; Tue, 28 Jun 2011 17:15:49 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B0ECC29A608; Tue, 28 Jun 2011 17:15:48 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id A07A72541A8; Tue, 28 Jun 2011 17:15:48 -0700 (PDT) From: Carl Worth To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 10/10] test: use emacsclient(1) for Emacs tests In-Reply-To: <87wrg5wq8o.fsf@gmail.com> References: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com> <1309236311-2162-10-git-send-email-dmitry.kurochkin@gmail.com> <87hb798uz7.fsf@yoom.home.cworth.org> <87wrg5wq8o.fsf@gmail.com> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Tue, 28 Jun 2011 17:15:42 -0700 Message-ID: <87r56d7as1.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2011 00:15:50 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 29 Jun 2011 02:22:31 +0400, Dmitry Kurochkin wrote: > Ouch. I never saw these. Do you get these in crypto tests only? Yes. I just found the bug. The crypto tests use emacs_deliver_message to generate signed/encrypted messages, but that function doesn't call increment_mtime between running emacs and running "notmuch new". That means that if the emacs_deliver_message code is fast enough, (less than 1 second), and if the test suite is being run on a lame filesystem without sub-second timestamp granularity (including ext3fs) that the "notmuch new" invocation will not see the mail[*]. I've added a call to increment_mtime and the failures go away. So I've pushed the patch to use emacsclient now. Thanks very much for helping our test suite run faster! =2DCarl [*] And, yes, this does mean that there are race conditions under which mail can be delivered and notmuch won't see it, (unless subsequent mails are delivered to the same directory). Austin has a plan to fix the use of the mtime timestamp in notmuch, (never storing the current mtime in the database if it's the same as the current time), that should hopefully close this race window. =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4Kbq4ACgkQ6JDdNq8qSWhvCgCgnOOkZyTwN+xo+xlf8trYdGL4 uGwAoIAxLJ5uNH8Ak0UETWy+bWPsAf+9 =CGeG -----END PGP SIGNATURE----- --=-=-=--