Re: [PATCH] emacs: add new option notmuch-search-exclude

Subject:Re: [PATCH] emacs: add new option notmuch-search-exclude

Date:Tue, 22 Mar 2022 19:38:08 +0000

To:David Bremner ,notmuch@notmuchmail.org

Cc:

From:Mohsin Kaleem


David Bremner <david@tethera.net> writes:

> Can you be more specific about what tests are failing?

Pretty much all of them, although I'm beginning to suspect it may be an
environment issue on my part.

I've attached the output of running `make test` in the root of the
project from master, do you have any idea why so much seems to be
failing. Some python tests fail with no module named pytest but I do
have it installed, others seem to be failing because they cannot find
(or maybe create) a database file. I thought it might be because the
directory for the database doesn't exist so I made it manually yet the
tests are still failing :/.

Missing sphinx or makeinfo, not building info pages
Use "make V=1" to see the details for passing and known broken tests.
INFO: using 2m timeout for tests
INFO: running tests with GNU parallel

T030-config: Testing "notmuch config"
 BROKEN Round trip config item with leading spaces
 BROKEN Round trip config item with leading tab

T050-new: Testing "notmuch new" in several variations
 BROKEN RFC822 group names are indexed
 BROKEN Long directory names don't cause rescan
add_file: A Xapian exception occurred
A Xapian exception occurred finding/creating a directory: Term too long (> 245): XDDIRENTRY2:zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.
Note: A fatal error was encountered: A Xapian exception occurred
add_file: A Xapian exception occurred
A Xapian exception occurred finding/creating a directory: Term too long (> 245): XDDIRENTRY2:zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.
Note: A fatal error was encountered: A Xapian exception occurred
Skipping due to missing sfsexp library
 missing prerequisites: dtach(1)
 SKIP   Show message: json, inline attachment filename
 missing prerequisites: dtach(1)
 SKIP   Show message: sexp, inline attachment filename
 missing prerequisites: dtach(1)
 SKIP   all tests in T310-emacs
 missing prerequisites: dtach(1)
 SKIP   all tests in T315-emacs-tagging
 missing prerequisites: dtach(1)
 SKIP   all tests in T330-emacs-subject-to-filename

T055-path-config: Testing Configuration of mail-root and database path
 FAIL   count (XDG)
	--- T055-path-config.41.expected	2022-03-22 19:30:33.438149848 +0000
	+++ T055-path-config.41.output	2022-03-22 19:30:33.438149848 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
 FAIL   count+tag (XDG)
	--- T055-path-config.42.expected	2022-03-22 19:30:33.458150410 +0000
	+++ T055-path-config.42.output	2022-03-22 19:30:33.458150410 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   address (XDG)
	--- T055-path-config.43.EXPECTED	2022-03-22 19:30:33.471484118 +0000
	+++ T055-path-config.43.OUTPUT	2022-03-22 19:30:33.474817545 +0000
	@@ -1,2 +0,0 @@
	-Carl Worth <cworth@cworth.org>
	-notmuch@notmuchmail.org
Error: could not locate database.
 FAIL   dump (XDG)
	--- T055-path-config.44.EXPECTED	2022-03-22 19:30:33.488151254 +0000
	+++ T055-path-config.44.OUTPUT	2022-03-22 19:30:33.491484680 +0000
	@@ -1,3 +0,0 @@
	-#notmuch-dump batch-tag:3 config,properties,tags
	-+attachment +inbox +signed +unread -- id:20091118005829.GB25380@dottiness.seas.harvard.edu
	-+attachment +inbox +signed +unread -- id:20091118010116.GC25380@dottiness.seas.harvard.edu
Error: could not locate database.
 FAIL   dump + tag + restore (XDG)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   reindex (XDG)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   use existing database (XDG)
	--- T055-path-config.45.expected	2022-03-22 19:30:33.544819514 +0000
	+++ T055-path-config.45.output	2022-03-22 19:30:33.544819514 +0000
	@@ -1 +1 @@
	-No new mail.
	+
Error: could not locate database.
 FAIL   create database (XDG)
	--- T055-path-config.46.expected	2022-03-22 19:30:33.561486649 +0000
	+++ T055-path-config.46.output	2022-03-22 19:30:33.561486649 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
Error: could not locate database.
 FAIL   detect new files (XDG)
	--- T055-path-config.47.expected	2022-03-22 19:30:33.581487212 +0000
	+++ T055-path-config.47.output	2022-03-22 19:30:33.581487212 +0000
	@@ -1 +1 @@
	-54
	+
Error: could not locate database.
Error: could not locate database.
 FAIL   Show a raw message (XDG)
	Missing or zero length file: OUTPUT
Error: could not locate database.
Error: could not locate database.
 FAIL   reply (XDG)
	--- T055-path-config.48.EXPECTED	2022-03-22 19:30:33.614821483 +0000
	+++ T055-path-config.48.OUTPUT	2022-03-22 19:30:33.618154910 +0000
	@@ -1,8 +0,0 @@
	-From: Notmuch Test Suite <test_suite@notmuchmail.org>
	-Subject: Re: notmuch-reply-test
	-To: Sender <sender@example.com>
	-In-Reply-To: <msg-014@notmuch-test-suite>
	-References: <msg-014@notmuch-test-suite>
	-
	-On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
	-> basic reply test
Error: could not locate database.
Error: could not locate database.
 FAIL   insert+search (XDG)
	Missing or zero length file: 
Error: could not locate database.
Error: could not locate database.
 FAIL   compact+search (XDG)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   upgrade backup (XDG)
	--- T055-path-config.49.expected	2022-03-22 19:30:33.724824577 +0000
	+++ T055-path-config.49.output	2022-03-22 19:30:33.724824577 +0000
	@@ -1 +1 @@
	-Welcome to a new version of notmuch! Your database will now be upgraded.
	+
Error: could not locate database.
 FAIL   Set config value in database (XDG)
	--- T055-path-config.52.expected	2022-03-22 19:30:33.848161379 +0000
	+++ T055-path-config.52.output	2022-03-22 19:30:33.848161379 +0000
	@@ -1 +1 @@
	-5563+
	++
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
 FAIL   Config list (XDG)
	--- T055-path-config.53.EXPECTED	2022-03-22 19:30:33.864828515 +0000
	+++ T055-path-config.53.OUTPUT	2022-03-22 19:30:33.868161942 +0000
	@@ -3,8 +3,6 @@
	 built_with.retry_lock=something
	 built_with.sexp_queries=something
	 database.autocommit=8000
	-database.backup_dir
	-database.hook_dir
	 database.mail_root=MAIL_DIR
	 database.path
	 maildir.synchronize_flags=true
 FAIL   Config list from python (XDG)
	--- T055-path-config.54.EXPECTED	2022-03-22 19:30:33.958164473 +0000
	+++ T055-path-config.54.OUTPUT	2022-03-22 19:30:33.958164473 +0000
	@@ -1,10 +0,0 @@
	-database.autocommit
	-database.backup_dir
	-database.hook_dir
	-database.mail_root
	-database.path
	-maildir.synchronize_flags
	-new.tags
	-user.name
	-user.other_email
	-user.primary_email
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage/notmuch2/_database.py", line 160, in __init__
    raise errors.NotmuchError(ret, msg)
notmuch2.NoDatabaseError: Error: could not locate database.

 FAIL   Set shadowed config value in database (XDG)
	--- T055-path-config.55.expected	2022-03-22 19:30:34.051500431 +0000
	+++ T055-path-config.55.output	2022-03-22 19:30:34.051500431 +0000
	@@ -1 +1 @@
	-7235+
	++
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
 FAIL   'to' header does not crash (python-cffi) (XDG)
	--- T055-path-config.56.EXPECTED	2022-03-22 19:30:34.148169817 +0000
	+++ T055-path-config.56.OUTPUT	2022-03-22 19:30:34.148169817 +0000
	@@ -1 +0,0 @@
	-notmuch@notmuchmail.org
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage/notmuch2/_database.py", line 160, in __init__
    raise errors.NotmuchError(ret, msg)
notmuch2.NoDatabaseError: Error: could not locate database.

 FAIL   count (XDG+profile)
	--- T055-path-config.57.expected	2022-03-22 19:30:34.544847641 +0000
	+++ T055-path-config.57.output	2022-03-22 19:30:34.544847641 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
 FAIL   count+tag (XDG+profile)
	--- T055-path-config.58.expected	2022-03-22 19:30:34.568181631 +0000
	+++ T055-path-config.58.output	2022-03-22 19:30:34.568181631 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   address (XDG+profile)
	--- T055-path-config.59.EXPECTED	2022-03-22 19:30:34.584848766 +0000
	+++ T055-path-config.59.OUTPUT	2022-03-22 19:30:34.584848766 +0000
	@@ -1,2 +0,0 @@
	-Carl Worth <cworth@cworth.org>
	-notmuch@notmuchmail.org
Error: could not locate database.
 FAIL   dump (XDG+profile)
	--- T055-path-config.60.EXPECTED	2022-03-22 19:30:34.601515902 +0000
	+++ T055-path-config.60.OUTPUT	2022-03-22 19:30:34.601515902 +0000
	@@ -1,3 +0,0 @@
	-#notmuch-dump batch-tag:3 config,properties,tags
	-+attachment +inbox +signed +unread -- id:20091118005829.GB25380@dottiness.seas.harvard.edu
	-+attachment +inbox +signed +unread -- id:20091118010116.GC25380@dottiness.seas.harvard.edu
Error: could not locate database.
 FAIL   dump + tag + restore (XDG+profile)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   reindex (XDG+profile)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   use existing database (XDG+profile)
	--- T055-path-config.61.expected	2022-03-22 19:30:34.658184162 +0000
	+++ T055-path-config.61.output	2022-03-22 19:30:34.658184162 +0000
	@@ -1 +1 @@
	-No new mail.
	+
Error: could not locate database.
 FAIL   create database (XDG+profile)
	--- T055-path-config.62.expected	2022-03-22 19:30:34.678184725 +0000
	+++ T055-path-config.62.output	2022-03-22 19:30:34.678184725 +0000
	@@ -1 +1 @@
	-52
	+
Error: could not locate database.
Error: could not locate database.
 FAIL   detect new files (XDG+profile)
	--- T055-path-config.63.expected	2022-03-22 19:30:34.701518715 +0000
	+++ T055-path-config.63.output	2022-03-22 19:30:34.701518715 +0000
	@@ -1 +1 @@
	-54
	+
Error: could not locate database.
Error: could not locate database.
 FAIL   Show a raw message (XDG+profile)
	Missing or zero length file: OUTPUT
Error: could not locate database.
Error: could not locate database.
 FAIL   reply (XDG+profile)
	--- T055-path-config.64.EXPECTED	2022-03-22 19:30:34.751520121 +0000
	+++ T055-path-config.64.OUTPUT	2022-03-22 19:30:34.754853548 +0000
	@@ -1,8 +0,0 @@
	-From: Notmuch Test Suite <test_suite@notmuchmail.org>
	-Subject: Re: notmuch-reply-test
	-To: Sender <sender@example.com>
	-In-Reply-To: <msg-019@notmuch-test-suite>
	-References: <msg-019@notmuch-test-suite>
	-
	-On Tue, 05 Jan 2010 15:43:56 -0000, Sender <sender@example.com> wrote:
	-> basic reply test
Error: could not locate database.
Error: could not locate database.
 FAIL   insert+search (XDG+profile)
	Missing or zero length file: 
Error: could not locate database.
Error: could not locate database.
 FAIL   compact+search (XDG+profile)
	Missing or zero length file: EXPECTED
Error: could not locate database.
Error: could not locate database.
Error: could not locate database.
 FAIL   upgrade backup (XDG+profile)
	--- T055-path-config.65.expected	2022-03-22 19:30:34.911524621 +0000
	+++ T055-path-config.65.output	2022-03-22 19:30:34.911524621 +0000
	@@ -1 +1 @@
	-Welcome to a new version of notmuch! Your database will now be upgraded.
	+
Error: could not locate database.
 FAIL   Set config value in database (XDG+profile)
	--- T055-path-config.68.expected	2022-03-22 19:30:35.038194851 +0000
	+++ T055-path-config.68.output	2022-03-22 19:30:35.038194851 +0000
	@@ -1 +1 @@
	-15394+
	++
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
 FAIL   Config list (XDG+profile)
	--- T055-path-config.69.EXPECTED	2022-03-22 19:30:35.054861986 +0000
	+++ T055-path-config.69.OUTPUT	2022-03-22 19:30:35.054861986 +0000
	@@ -3,8 +3,6 @@
	 built_with.retry_lock=something
	 built_with.sexp_queries=something
	 database.autocommit=8000
	-database.backup_dir
	-database.hook_dir
	 database.mail_root=MAIL_DIR
	 database.path
	 maildir.synchronize_flags=true
 FAIL   Config list from python (XDG+profile)
	--- T055-path-config.70.EXPECTED	2022-03-22 19:30:35.144864518 +0000
	+++ T055-path-config.70.OUTPUT	2022-03-22 19:30:35.148197945 +0000
	@@ -1,10 +0,0 @@
	-database.autocommit
	-database.backup_dir
	-database.hook_dir
	-database.mail_root
	-database.path
	-maildir.synchronize_flags
	-new.tags
	-user.name
	-user.other_email
	-user.primary_email
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage/notmuch2/_database.py", line 160, in __init__
    raise errors.NotmuchError(ret, msg)
notmuch2.NoDatabaseError: Error: could not locate database.

 FAIL   Set shadowed config value in database (XDG+profile)
	--- T055-path-config.71.expected	2022-03-22 19:30:35.261534466 +0000
	+++ T055-path-config.71.output	2022-03-22 19:30:35.261534466 +0000
	@@ -1 +1 @@
	-17086+
	++
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
notmuch config: Illegal argument for function
Cannot reopen closed or nonexistent database
 FAIL   'to' header does not crash (python-cffi) (XDG+profile)
	--- T055-path-config.72.EXPECTED	2022-03-22 19:30:35.364870706 +0000
	+++ T055-path-config.72.OUTPUT	2022-03-22 19:30:35.368204134 +0000
	@@ -1 +0,0 @@
	-notmuch@notmuchmail.org
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage/notmuch2/_database.py", line 160, in __init__
    raise errors.NotmuchError(ret, msg)
notmuch2.NoDatabaseError: Error: could not locate database.

 missing prerequisites: dtach(1)
 SKIP   all tests in T350-crypto
 missing prerequisites: dtach(1)
 SKIP   all tests in T320-emacs-large-search-buffer
 missing prerequisites: dtach(1)
 SKIP   all tests in T355-smime
 missing prerequisites: dtach(1)
 SKIP   all tests in T357-index-decryption
 missing prerequisites: dtach(1)
 SKIP   all tests in T358-emacs-protected-headers

T391-python-cffi: Testing python bindings (pytest)
 FAIL   python cffi tests (NOTMUCH_CONFIG set)
	(cd /home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage && python3 -m pytest --verbose --log-file=/home/mohkale/.cache/emacs/straight/repos/notmuch/test/tmp.T391-python-cffi/test.output)
/usr/bin/python3: No module named pytest
 FAIL   python cffi tests (NOTMUCH_CONFIG unset)
	(cd /home/mohkale/.cache/emacs/straight/repos/notmuch/bindings/python-cffi/build/stage && python3 -m pytest --verbose --log-file=/home/mohkale/.cache/emacs/straight/repos/notmuch/test/tmp.T391-python-cffi/test.output)
/usr/bin/python3: No module named pytest
 missing prerequisites: dtach(1)
 SKIP   emacs test function sanity
 missing prerequisites: dtach(1)
 SKIP   all tests in T430-emacs-address-cleaning
 missing prerequisites: dtach(1)
 SKIP   all tests in T440-emacs-hello
 missing prerequisites: dtach(1)
 SKIP   all tests in T450-emacs-show
 missing prerequisites: dtach(1)
 SKIP   all tests in T455-emacs-charsets
 missing prerequisites: dtach(1)
 SKIP   all tests in T460-emacs-tree
 missing prerequisites: dtach(1)
 SKIP   all tests in T465-emacs-unthreaded
 missing prerequisites: dtach(1)
 SKIP   reply to ghost (tree view)
 missing prerequisites: dtach(1)
 SKIP   reply to ghost (RT/tree view)
 missing prerequisites: dtach(1)
 SKIP   trusting reply-to (tree view)

T560-lib-error: Testing error reporting for library
 FAIL   Open null pointer
	--- T560-lib-error.2.EXPECTED	2022-03-22 19:30:49.525269225 +0000
	+++ T560-lib-error.2.OUTPUT	2022-03-22 19:30:49.528602652 +0000
	@@ -1,3 +1,2 @@
	 == stdout ==
	 == stderr ==
	-Error: could not locate database.
test1.c: In function 'main':
test1.c:7:5: warning: 'notmuch_database_open' is deprecated: function deprecated as of libnotmuch 5.4 [-Wdeprecated-declarations]
    7 |     stat = notmuch_database_open (NULL, 0, 0);
      |     ^~~~
In file included from test1.c:2:
/home/mohkale/.cache/emacs/straight/repos/notmuch/lib/notmuch.h:332:1: note: declared here
  332 | notmuch_database_open (const char *path,
      | ^~~~~~~~~~~~~~~~~~~~~
 FAIL   create NULL path
	--- T560-lib-error.6.EXPECTED	2022-03-22 19:30:50.155286965 +0000
	+++ T560-lib-error.6.OUTPUT	2022-03-22 19:30:50.155286965 +0000
	@@ -1,3 +1,3 @@
	 == stdout ==
	 == stderr ==
	-Error: could not locate database.
	+Error: Cannot open database at /home/mohkale/.local/share/notmuch/default: No such file or directory.

T592-thread-breakage: Testing thread breakage during reindexing
 BROKEN No ghosts should remain after deletion of second message
 missing prerequisites: dtach(1)
 SKIP   all tests in T630-emacs-draft

T670-duplicate-mid: Testing duplicate message ids
 BROKEN First subject preserved in notmuch-show (json)
 BROKEN Regexp search for second subject
 missing prerequisites: dtach(1)
 SKIP   all tests in T720-emacs-attachment-warnings
 missing prerequisites: dtach(1)
 SKIP   all tests in T730-emacs-forwarding

Notmuch test suite complete.
1324/1369 tests passed.
7 broken tests failed as expected.
42 tests failed.
-4 tests skipped.
All tests in 18 files skipped.
ERROR: parallel test suite returned error code 3
-- 
Mohsin Kaleem
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: