From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iNsNG8UAU2CuPwAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 07:27:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yEexFsUAU2ChBAAAbx9fmQ (envelope-from ) for ; Thu, 18 Mar 2021 07:27:01 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 C36701FBAF for ; Thu, 18 Mar 2021 08:27:00 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E04CE2706D; Thu, 18 Mar 2021 03:26:52 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id F004020613 for ; Thu, 18 Mar 2021 03:26:49 -0400 (EDT) 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 973A21B00C7C; Thu, 18 Mar 2021 09:26:45 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1616052405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TtaUzxZod6Z+kSEoRJXPU3OmzitvCPZs6X/hkMPSbHo=; b=XM6kIm488NOU5oWCFf5V1EuZHfkQefJH2f78MaNdrBms53wF6OhYvDhGeIQFbhhLcGP8aY DbnZ1yE4xdun1ouB3dS/6rUzB5OnaOD4u3+hdughdgd2CalAWsjorznJ+u9NMnkIrHdF3I V8ixiGIi0TDasv+Z3NbmX2MO5SeBMOTACTQ+EV5SOfWh7iIegnvtdkUdcFFszfLs+IsvhH dGrEG2nrJ3F2quceusOGc688PInW1cbWw+bE7d11WxMTPsLHDv4hJVsaTGawS5YhcPZ7Fq 6pXatk7a5lF4GC+kLiqI5IBCRTHgh5GLALlpka+40c1AgMkORrM80Yh2lyuXFQ== From: Tomi Ollila To: David Bremner , Gregor Zattler , notmuch Subject: Re: [PATCH] test: add known broken test for long directory bug In-Reply-To: <20210318012509.1121007-1-david@tethera.net> References: <20210317194728.GB5561@no.workgroup> <20210318012509.1121007-1-david@tethera.net> User-Agent: Notmuch/0.31.4+128~gc67b63a (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=1616052405; a=rsa-sha256; cv=none; b=eeES6vyRbny+3+tDMkvYSKLPNEYWAD1bo3CSX2l6QMnHDPasSZpX6O1IqVqDexIXl1Gx03 wz2buSjNFTre0ck+Hf2VGWIDW4yXak8cMiwygC8KUzgDggS1pF+x5uPxdMCtP91Bq1rXrh ZV3RAICLDuvqNONhAtc84/3PQTfyMXPo/zyJ8Dx/Log8KXtzAG+SY4jkumvC2LlzFBzld2 qCIwYBVUcj7b9izcmyygyA0Zu8z5B1m7wCx2lAXahtyN0hREg/x4WLyRtzjhnydnU4Z/DP AgMKrrnGtgF81KMIxfOVf8jd5AQzRDSgGjL+wLgJudJ2QNrBRdK7K1TOBKpxjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1616052405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TtaUzxZod6Z+kSEoRJXPU3OmzitvCPZs6X/hkMPSbHo=; b=GiO2oPkHfLCmk8mHhj2Q70fq/0gMhCC9/yexc92F/k/YnOGtnNoAfZgkDrJKQzVM6olzJf Cc4QmQeg1bRfSNfTkxcclVmXCWYMqtVFZFzqEbgZjm+CZiz/JRGAAQAzwFzWSMpTn8p7TW 5k2d8ADzLjuch2lGYhawPwvZm4CD5KdPAXu+twFsFEHyTja3IBRILijbwovPDU/H6FeSUh ozPAx+9/vJ6F6ePJ4qfioLolOM/xXuv6/5kgwhjks4Du+sQhddoIjmvCyD0AaMS0ecplpD xWcXmLHi+bYBffTTwAAVufgVBmconGwucoI6jtN4UY7shhy/zFJD0kGvvMaUFQ== Message-ID-Hash: ORMC6NCD62IRPG4HRNI4N7NQ7334TWI5 X-Message-ID-Hash: ORMC6NCD62IRPG4HRNI4N7NQ7334TWI5 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616052420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=c79nZPWH7WP2Buq5DBkj58IzcyKOl2SwjGa10ialGJE=; b=OEHGq7cp+zx6sh2DQ2suBi9AUxCQohN5oPtM5OjqBAhxrluFiV6Ly9esxJ2/EjBdCqJvXE nuP1+o1+r5MnhwJcbdpSGowy6QFDdOPJQP4Cs/9CuX330AB2Pw/wfIWl0/w2WueyKlQtg1 L+HoXhDLqt7DNRAymMbJVch1xZ/K6+62zdWNck2+kHbaH6GR9Pr+YxAWlLjGgvX2f5AHAt NIdbXaND6vN1jTgO1wl7lIVac655ebKju45ccq8sdbLfss/M52Z2TDI97o0p0FDtM9taVv ZK3dkgVuwqFTkQ3mcLSHMtWjO/Ib1XzA9iSJqTSck7ITChS2KmPi2eFRG8bHbw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1616052420; a=rsa-sha256; cv=fail; b=TOXxWZahJm75xLNY2v67zJLOQ6DGqZ1eM33FYIxcerS+VK14+MOzfD8q4Uz3XveiT1JChg r/qN+BCCGO6oxUTnsZe1gMSfbbFeuobjLvh0TOt/qA41OyZrNUv/mZjBQ9IWgZ+AF5Z+0O gJTBJeDjmv/UVm5J8GMZrVVjGhoa7EqBEYR+TmKMehDK2/KAcFZja5p48EQzmPt4f4xc51 dLil0+TeXlIbucF1L0WvHKHVj496NsasR4afX7I2BL5a7ZhxmeUqT2fYYRufwR0ZRCGOu6 UkBgbeuYlci9eu3b4aX/8NS9opJp38frUdvDtYTdnsV+FRKNu3Q18/KrweztrQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=XM6kIm48; 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 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.94 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=XM6kIm48; 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 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C36701FBAF X-Spam-Score: 0.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: VQ471Z6AWCeA On Wed, Mar 17 2021, David Bremner wrote: > In [1] Gregor Zattler explained the results of his hard working > tracking down a bug in notmuch with long directories. This test > duplicates the bug. > > [1]: id:20210317194728.GB5561@no.workgroup > --- > test/T050-new.sh | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/test/T050-new.sh b/test/T050-new.sh > index 76bda959..f84dc2b0 100755 > --- a/test/T050-new.sh > +++ b/test/T050-new.sh > @@ -339,6 +339,20 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1" > > notmuch config set new.tags $OLDCONFIG > > +test_begin_subtest "Long directory names don't cause rescan" > +test_subtest_known_broken > +name=$(printf 'z%.0s' {1..234}) could do printf -v name 'z%.0s' {1..234} > +generate_message [dir]=$name > +NOTMUCH_NEW > OUTPUT > +notmuch new >> OUTPUT 2 spaces in lines above apart from those 2 spaces lgtm. Tomi > +rm -r ${MAIL_DIR}/${name} > +notmuch new >> OUTPUT > +cat < EXPECTED > +Added 1 new message to the database. > +No new mail. > +No new mail. Removed 1 message. > +EOF > +test_expect_equal_file EXPECTED OUTPUT > > test_begin_subtest "Xapian exception: read only files" > chmod u-w ${MAIL_DIR}/.notmuch/xapian/*.* > -- > 2.30.2