From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UK/NDwysUmAqFAAA0tVLHw (envelope-from ) for ; Thu, 18 Mar 2021 01:25:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WFiZCwysUmBKfQAAB5/wlQ (envelope-from ) for ; Thu, 18 Mar 2021 01:25:32 +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 E987A233DF for ; Thu, 18 Mar 2021 02:25:31 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 21A1726C3E; Wed, 17 Mar 2021 21:25:24 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id B76C220613 for ; Wed, 17 Mar 2021 21:25:21 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 23F905FA96; Wed, 17 Mar 2021 21:25:19 -0400 (EDT) Received: (nullmailer pid 1121057 invoked by uid 1000); Thu, 18 Mar 2021 01:25:17 -0000 From: David Bremner To: Gregor Zattler , notmuch Cc: David Bremner Subject: [PATCH] test: add known broken test for long directory bug Date: Wed, 17 Mar 2021 22:25:09 -0300 Message-Id: <20210318012509.1121007-1-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210317194728.GB5561@no.workgroup> References: <20210317194728.GB5561@no.workgroup> MIME-Version: 1.0 Message-ID-Hash: VGWQLEBA3P6EPBA3MAA5Q7GOSZ3XHE2A X-Message-ID-Hash: VGWQLEBA3P6EPBA3MAA5Q7GOSZ3XHE2A X-MailFrom: bremner@tethera.net 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616030732; 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-unsubscribe:list-subscribe:list-post; bh=/7GZujk8ghHtWc9w81cHYlP+IB+K88tACx+0PnhuBzM=; b=rp1qyA1Q8Gvsoe/yG3lRzxqmILzBGeRDHNWJimltGtqAeJ9SPCz32Y8xjalTsb2hs2OXEx 5NojsDrD8ZHlM0cLALQFBbwSdqDQHxNjYSt8hDM499lT/JP/02Do4AtJft/kHV+ObAMEBM wREaWDTN12zEmBRxkZvCu5s2RyyenNv4Sbu2kuFU7XLLrJcN1LQxCB/AL+0ZkQ/hrBfqPo 1o7iuovNsuiDm3QNJFeHQoh+AMDaS3JiNMPhyRdtmTR/j6vYHK0/FGXwJvkdfdHjTH1gtn 2xw9FUjNiJ66ClZYdVJtJpVeDn4W2HYnn7mevDOUq5FwRm70yfFiu2Uh9I6PuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616030732; a=rsa-sha256; cv=none; b=S6lSNVmVKwNKASyob8+YBdxHwd/kc6YsYLejIJO+HV1kMB/ST3jOIRiwQsQXslrbv9vF8N vPYu/BgQhk44KFrwq/bWcK6oCqwof5VBJc5f/9E0XNqg5uDXdG8AiwG0dJEXh3ejCgO8Zs DKQjC+RNuu8b79+dzJvxCgqdPP031krKTD77HvC33WXQ2+E4vY53CepfsqwCztaBJRJqt6 4RhLYpeR8AyYT7Ci/wYM3ZhgdCZ/3xa6zSQPwzZ/jVbuUL1J/zXGhzoDXbVhDUWVQ3VMy9 q5ty+UXuJVe77YQY7FIK2OhlvzROJCA9hl9Yl6YBEKW/y4vj4apzc+yJT8/aZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.06 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: E987A233DF X-Spam-Score: -1.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: VhVBr2W6WbyV 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}) +generate_message [dir]=$name +NOTMUCH_NEW > OUTPUT +notmuch new >> OUTPUT +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