From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wIWMLRHv1GFFdwEAgWs5BA (envelope-from ) for ; Wed, 05 Jan 2022 02:06:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sBpWKhHv1GHLbQAAauVa8A (envelope-from ) for ; Wed, 05 Jan 2022 02:06:25 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 6B9464772B for ; Wed, 5 Jan 2022 02:06:25 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E117F5F70E; Wed, 5 Jan 2022 01:06:19 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 017F05F6C5 for ; Wed, 5 Jan 2022 01:06:15 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 56D685FC42; Tue, 4 Jan 2022 20:06:14 -0500 (EST) Received: (nullmailer pid 2034615 invoked by uid 1000); Wed, 05 Jan 2022 01:06:13 -0000 From: David Bremner To: Tomi Ollila , Gregor Zattler , Notmuch Mail Subject: [PATCH 1/3] test/emacs: add known broken test for hidden tags Date: Tue, 4 Jan 2022 21:06:04 -0400 Message-Id: <20220105010606.2034601-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: EPSOYHEMMDCVNDBE4S5SMZPKRLDD26KX X-Message-ID-Hash: EPSOYHEMMDCVNDBE4S5SMZPKRLDD26KX 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; digests; suspicious-header 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641344785; 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-owner:list-unsubscribe:list-subscribe:list-post; bh=XRHN/SG6SvBrzhjge+CDjMLzBtiB1P0dO3pDDPeCgu4=; b=RUnuwcv3IYjLx39pp2e1zoZcfwvRJkllO6XCm0N/i2N/rxM0cvjfOACcOqOdlN0tW5V0cu Cg8IEMcdhMpl9W8BnFc3tPXsz6ORxnFeac+pDDXKtZMcbIEGUbwGXa0+lVjBImpIi81yE8 p5REu481AxaMtWUfazEsCxq+oHsuQsB5xJCTq92+6j8OL5ohStbs70T7xxX9PqP+xsoxKy oBEJbbZMXvKL3kvjpD9V1IDt5x6bb3e2X8QHc4cO+Mv95hEQ5PNvhA3BQ9FCMwKMln+C+a nX77NyLT4W1xWLnztEQxq7IJeUWSh2WckXDtZuFyapUZT7kSQ2KVU5CnpdertA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641344785; a=rsa-sha256; cv=none; b=XH1Z7Fd6eTQ3NFLeM9T0U2bFnYJkd5DJzw7ZtD8/D1b7py+cs1FatQZA3kpaWJWa+uNzxB NEcsKCejr6f5oC4rKxguYgoXvYj05BsmcBp/0fQOxq+1/wtAm4ky0jEAoaZPzmBjWyZWB+ jAXgo4c1X+ptvF5HC6UjsgIqa9HrVdhNzM3NxDVUZZXSYUI+FVJo+VGWubOlay6XqV/Y2i vwbcGAcZAXl6XJd/WHIAMDXQsi7uSX/Vcj5uTaAcsM4f2hCaB8qtwjcbMBvJ6r73bTW5mw tUh8Ry9PfDeA80TKcfoJDRKQQqOpPNXjJ0zgSzwQMSKlCSLg2IZqtahHiiyNbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.30 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 6B9464772B X-Spam-Score: -2.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4aoCWhXOz8ii Gregor Zattler observed that tags could be unintentionally hidden in the "All tags" view, and Tomi Ollia worked out [2] that the issue was tags that only occured on excluded messages. This test reproduces that bug. [1]: id:87wox1vovj.fsf@len.workgroup [2]: id:m28t9faaim.fsf@guru.guru-group.fi --- test/T440-emacs-hello.sh | 11 +++++++++++ test/emacs.expected-output/notmuch-hello-all-tags | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/emacs.expected-output/notmuch-hello-all-tags diff --git a/test/T440-emacs-hello.sh b/test/T440-emacs-hello.sh index a1ed1c2b..a890bee1 100755 --- a/test/T440-emacs-hello.sh +++ b/test/T440-emacs-hello.sh @@ -68,6 +68,17 @@ test_emacs '(notmuch-hello) notmuch tag -$tag '*' test_expect_equal_file $EXPECTED/notmuch-hello-long-names OUTPUT +test_begin_subtest "All Tags show up" +test_subtest_known_broken +tag=exclude_me +notmuch tag +$tag '*' +notmuch config set search.exclude_tags $tag +test_emacs '(notmuch-hello) + (test-output)' +notmuch tag -$tag '*' +test_expect_equal_file $EXPECTED/notmuch-hello-all-tags OUTPUT + +test_done test_begin_subtest "notmuch-hello with nonexistent CWD" test_emacs ' (notmuch-hello) diff --git a/test/emacs.expected-output/notmuch-hello-all-tags b/test/emacs.expected-output/notmuch-hello-all-tags new file mode 100644 index 00000000..2802a708 --- /dev/null +++ b/test/emacs.expected-output/notmuch-hello-all-tags @@ -0,0 +1,15 @@ + Welcome to notmuch. You have 52 messages. + +Saved searches: [edit] + + 52 inbox 52 unread 52 all mail + +Search: . + +All tags: [hide] + + 4 attachment 52 inbox 52 unread + 52 exclude_me 7 signed + + Hit `?' for context-sensitive help in any Notmuch screen. + Customize Notmuch or this page. -- 2.34.1