<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T400-hooks.sh, branch 0.34.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.34.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.34.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-05-12T11:40:04Z</updated>
<entry>
<title>lib/notmuch_database_reopen: reload some database metadata</title>
<updated>2021-05-12T11:40:04Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-09T12:28:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=393c92b04271472e6fdd19da73672a60723e34aa'/>
<id>urn:sha1:393c92b04271472e6fdd19da73672a60723e34aa</id>
<content type='text'>
In some uses of reopen, new documents and threads maybe have been
added, and e.g. compaction may have changed the uuid.
</content>
</entry>
<entry>
<title>test: change database from within pre-new hook</title>
<updated>2021-05-12T11:34:34Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@grubix.eu</email>
</author>
<published>2021-05-11T20:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0729c4e81f094eb6c81ba7c4287d90726c89d619'/>
<id>urn:sha1:0729c4e81f094eb6c81ba7c4287d90726c89d619</id>
<content type='text'>
Due to the change in the config system, notmuch keeps a notmuch database
open when it would not do so before. Consequently, it can miss changes
to the database which are done from a hook (while notmuch holds the
databse in read only mode). When notmuch itself writes to the database
after that it uses wrong assumptions about the last used doc id etc.

Demonstrate this by triggering an assertion. (This new test succeeds
with notmuch 0.31.4.)

Signed-off-by: Michael J Gruber &lt;git@grubix.eu&gt;
Amended-by: db. Check for both messages
</content>
</entry>
<entry>
<title>test: test relative paths for database.hook_dir</title>
<updated>2021-05-10T14:13:07Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-07T10:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=891b95021908e023113533a51ce53f85c8d4ffb4'/>
<id>urn:sha1:891b95021908e023113533a51ce53f85c8d4ffb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/open: fix hook directory calculation in split configuration</title>
<updated>2021-03-20T10:50:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-17T11:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e3a4abc513d314cf7550d43fdcba458421a2daac'/>
<id>urn:sha1:e3a4abc513d314cf7550d43fdcba458421a2daac</id>
<content type='text'>
Choose sibling directory of xapian database, as .notmuch may not
exist.

libgen.h is already used in debugger.c, so it is not a new dependency
/ potential portability problem.
</content>
</entry>
<entry>
<title>CLI/new: drop the write lock to run the pre-new hook.</title>
<updated>2021-03-19T01:58:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-19T01:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a9f74aeeb9ade477d5b80c1c2700945d6c50adb1'/>
<id>urn:sha1:a9f74aeeb9ade477d5b80c1c2700945d6c50adb1</id>
<content type='text'>
This fixes a bug reported in [1]. In principle it could be possible
avoid one of these reopens, but it complicates the logic in main with
respect to creating new databases.

[1]: id:9C1993DF-84BD-4199-A9C8-BADA98498812@bubblegen.co.uk
</content>
</entry>
<entry>
<title>test: Add tests for write access to database from hooks.</title>
<updated>2021-03-19T01:54:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-19T01:54:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7d286f0272feb08aea8c1bee0b0ec6cd9766aee7'/>
<id>urn:sha1:7d286f0272feb08aea8c1bee0b0ec6cd9766aee7</id>
<content type='text'>
Recent changes to configuration handling meant the pre-new hook was
run while the database was open read only, limiting what could be done
in the hook. Add some known broken tests for this problem, as well as
a regression test for write access from the post-new hook.
</content>
</entry>
<entry>
<title>CLI: use configured hook directory</title>
<updated>2021-02-06T23:57:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-01-10T11:50:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f61d88c6f454c368282ac881a864f619a409ba42'/>
<id>urn:sha1:f61d88c6f454c368282ac881a864f619a409ba42</id>
<content type='text'>
This enables support for hooks outside the database directory.
It relies strongly on configuration information being usable between
closing the database and destroying it.
</content>
</entry>
<entry>
<title>test: use $(dirname "$0") for sourcing test-lib.sh</title>
<updated>2017-10-20T22:52:49Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-09-25T20:38:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a863de1e43ee34f6f5794a2759fdceb287e851aa'/>
<id>urn:sha1:a863de1e43ee34f6f5794a2759fdceb287e851aa</id>
<content type='text'>
Don't assume the tests are always run from within the source tree.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_code</title>
<updated>2017-03-09T13:03:40Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0497d695ca796c4d19ad5ec08788bbb1f400c58c'/>
<id>urn:sha1:0497d695ca796c4d19ad5ec08788bbb1f400c58c</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_code. (Similar change for test_expect_success has already
been done.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_success</title>
<updated>2017-03-09T13:01:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d0cd253b37646d9364d046e1d3edb022a58c105a'/>
<id>urn:sha1:d0cd253b37646d9364d046e1d3edb022a58c105a</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_success. (Similar change for test_expect_code will
follow.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
</feed>
