Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctest pollutes my actual notmuch database ! #760

Open
xunam opened this issue Nov 8, 2024 · 0 comments
Open

ctest pollutes my actual notmuch database ! #760

xunam opened this issue Nov 8, 2024 · 0 comments

Comments

@xunam
Copy link

xunam commented Nov 8, 2024

Hello,

I just tried compiling Astroid from source fetched from the Github repository's master branch. After installing all dependencies, everything compiled fine, except that there was a significant number of warnings related to deprecated functions in Webkit, Notmuch and Boost. Then I run ctest as suggested in the readme, and things went wrong.

It seems that the test suite attempted to make a Notmuch database for testing purposes and used my actual database instead. Indeed, the test launched a notmuch new that ran for several minutes before I killed it. Then my inbox (open in another client independently) suddenly contained 11 new messages (with dates from 2009 to 2016). A notmuch search --output=files tag:inbox showed messages like

/home/manu/mail/multipart.eml
/home/manu/mail/only-html.eml
...

Of course these files do not exist in this place (they are part of the test suite) but they appear in my index anyway. So I ran notmuch new, hoping that they would disappear, as happens when mails are deleted. What happened instead is that notmuch apparently scanned by whole mail folder (it took 7 minutes to complete) and eventually said No new mail. without removing the non-existent messages. Additional runs of notmuch new run instantaneously but changed nothing.

After looking around a bit, it seems that none of my real messages were affected, yet these extra test messages persist in my index and I don't know how to get rid of them.

Anyway, this interference between test and user database is very problematic.

I don't know how to diagnose the issue further (I am a seasoned notmuch user and hacker but completely new to Astroid). I have NOTMUCH_CONFIG and NOTMUCH_DATABASE set explicitly in my .profile, plus an explicit database.path in my config, if that changes anything.

What can I do to (1) get rid of those spurious messages and (2) help fix the issue ?

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant