From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6PyQKm/BCGJ8FAAAgWs5BA (envelope-from ) for ; Sun, 13 Feb 2022 09:29:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kDYbI2/BCGJALAAAG6o9tA (envelope-from ) for ; Sun, 13 Feb 2022 09:29:35 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2599888BC for ; Sun, 13 Feb 2022 09:29:35 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CFE735F6B5; Sun, 13 Feb 2022 08:29:32 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 609DD5F401 for ; Sun, 13 Feb 2022 08:29:30 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id A7F0C1B00126; Sun, 13 Feb 2022 10:29:28 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644740968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WQtFrSBYCZHiEEvhaYGc/NYF91kHdRKbXWOM3WUEIBM=; b=rvZfsuzHJuoygtdFCFrXAEc2zpHnw4c+VdI3Q7E91VAjes69gnEGrcEWJVD0ASfRGaswoM 8zwhQExBcFuCFYxD2ENR7zW42CPIusUALbTlY/S7Tc5TmGEG4GGX3y5c2i9zEv7u6+nWSD sLT6cjT/DZhndTIgbVPRDA2BA9gY9hPCgSvqfUnNu+nht0G1WVvWIcI1tps3v8BYUGTXxT 0g6ZXfTMTfVxheqx/r9mfdwuMbvwZCH2x6AuDJNmORcVnyaOY6MQ/udXdDOR3QvJa8ojjc 3NQb4f/ZcrVBWoXFCGCmLHda1bTsb6G2qGsbtwqYQvzZ7cJK3oXQwTDggsweXA== From: Tomi Ollila To: David Bremner , Michael J Gruber Subject: Re: Test suite timing issues? In-Reply-To: References: <164458773197.3086.16103597141743611268.git@grubix.eu> <87k0e1x87f.fsf@tethera.net> <164467277576.6467.13919733764427871872.git@grubix.eu> <874k54xfuw.fsf@tethera.net> <87v8xjx048.fsf@tethera.net> User-Agent: Notmuch/0.35+4~ge2bb4cd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1644740968; a=rsa-sha256; cv=none; b=MZX1qOiDemRGJUSqnkF9+tT30vFGVpMmik4ZWrvfv2QJuTVH9Sa+ZGDCju8cqXKUS+a34R EEarfID/1j+fvT6Xvu258AOfYIugQXvAp3zY9jL1Ds80kq8PG6t8IsLWogmWKFDdIdQXhg ojGDkGvaU0YOlXHA4n8PMDKtU1Ak5cubPaQpFhPKQh0gvH9r9Yhpvy4Wb1Q31WrPCde9r3 D6Q69lkmHnKdtYKRavPp9saK4tE6x5r+MS7HR6SnAnkmRyO691qg/qg1lTbrLKZdjWJXVF /CS8s9HvYrukPhl/xprZ1NuI3TAIgCYqxgzPbhfrvI8I1jWvU/3ce0KEv2PkKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1644740968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WQtFrSBYCZHiEEvhaYGc/NYF91kHdRKbXWOM3WUEIBM=; b=SysriJsU5hOwXJqH0EBEuPdQwRORbO08OF9WraZWPP69LSKhFoQ5bR8J0KeXDQoFle5l8Y aU/ibyayxqJ6AfLg1lNQTf7sibzPGtE1wrSt0p+AIYWkF+yFOsCbfV/W/fHC4LLajZAx3v wd4yrt1XkismP5f1YveQb0wUnmO+8zE4I6mkt4eterrniPv6qZxo0u+gCU/PrzsWPy4cQJ UAj/6FNUuxyhUx93/LoRU9JgGJ3LwRGImpmks8yFh0A9VyIwHzkoqn+IdfPfQu71n8+OHe kjVTRzgo9jpjPb2eiVRULFKAYbuWDXAV8g5m/vXeAh+AuX29Dha65petb79ViA== Message-ID-Hash: GLGP676FVOC3U2J5V6I3S2SWX3GURMF5 X-Message-ID-Hash: GLGP676FVOC3U2J5V6I3S2SWX3GURMF5 X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644740975; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kDEQjnd++KFLcyBmoUJgFGfhd/wcyyrrWi+wq8aqMhA=; b=R6EHMnYo6uLKf/rKOJOKaUZfez26dvDd5fjaBG/DVz1mmA9v6JuAPUPK8LCquAv+WZ6j7G hHfOf+IpmnJgcaBcUrKBpU9rBe4nhYHzRRXSjZjFrzk2imfw+x63lYFT3r7mo9M6bvLv4m a6dJ6IZFxqGThAYZD2a7RzBMSPa75ZtiCQawUvCqXZKNhVwKRC6zQutucG3y+W3uZpapuu 5MsCzCjRbW2+GibAlLsSStJDTEJlLjaJc9pAFljV3sylSz2X2esdzgGGmoa67+TfVVB7ra 2f1FmuYJ0NPIVTwrYdKXLWj6+9GfluTKathKvvTagbuWNrLDm5SSmD6nozksiA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1644740975; a=rsa-sha256; cv=fail; b=RYg2lpxlDfPWHV9hMFxAGwmem3h6MtfGuYJU+X1zgsUaZDSCEmpNAK/FDimMn6HlYtLHuw qWgKdkgag0BBZxuz7Ncm9UBxPmMFVywHfYsOP6bEy2dmCzQzijVMAFgHv09nARoDlMtFfO hsaqjM1qU3UsK6xByhxqm7MjaPHNTK+PqPQIZoPMiMJps6mED0rHUVAWQg7J6YrH4vlZfd BEVmfL5yjaYwoS0h0/ab3025GqUnziebrQGTDKsIwGRaIPkchnudWvD0JUyuNkm3VtHnz7 Ve3OQOXk+9CDFwrfJxyPLa4y8a8x00MKQtS2QbGQd7ryDiAnIUWf13VthTSqbw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=rvZfsuzH; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=rvZfsuzH; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2599888BC X-Spam-Score: 0.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: r5hWRDaLjUzF On Sun, Feb 13 2022, Tomi Ollila wrote: > On Sat, Feb 12 2022, David Bremner wrote: > >> Tomi Ollila writes: >> >>> >>> Does such a change hide "buggy" functionality ? >> >> We mostly don't use add_message, call notmuch new via NOTMUCH_NEW in >> T050-new.sh. So I think it would mostly not hide bugs in notmuch >> new. OTOH, I'm surprised the same issues with timestamps don't show up >> there, if that is really the problem. >> >>> Or do we consider notmuch new buggy if it does not notice all new messages >>> arrived every time ? >> >> That's a harder question. Maybe? But I don't know how serious a bug it >> is for actual users (who often get mail delivered in various concurrent >> ways). > > The bug could be that the filesystem mtime resolution is 1 sec (hmm what > is the resolution in database?), and 2 emails are delivered to one > directory during one second -- and at the same time notmuch new is scanning > emails and found only one of those. then no more emails are delivered to > that one directory for a while -- so notmuch new does not find those. > > (now that I think of it that could happen to me :O -- just very improbable > (or not, `stat .` outputs Modify: 2022-02-12 22:47:19.550838056 +0200) -- > have to check that timestamp resolution in database). Looked notmuch-new.c -- time_t (seconds since epoch) is used as timestamp comparisons (which would indicate the subsecond resolution most fs' provide is not used)... ... and if so, I wonder why some of our tests are not failing all the time for everyone...? Tomi > > Tomi