cyrusimap / cyrus-imapd

Cyrus IMAP is an email, contacts and calendar server
http://cyrusimap.org
Other
545 stars 149 forks source link

run testrunner.pl under WSL1 #4158

Open qyb opened 2 years ago

qyb commented 2 years ago

Because netstat cannot run properly in WSL1 (see: https://github.com/Microsoft/WSL/issues/2249), testrunner.pl wouldn't check master started and fail.

I have written a simple script to fake expected netstat behavior:

/mnt/c/Windows/system32/netstat.exe -an | sed -e 's/LISTENING/LISTEN/' -e 's/  TCP/tcp 0 0/'

Does anyone work in WSL1 environment? I thought it might be helpful.

elliefm commented 2 years ago

Is netstat/cassandane the only part of Cyrus that doesn't currently work under WSL1?

I don't know much about WSL, but I'm a little surprised Cyrus works at all... we haven't spent any effort targeting it (neither 1 nor 2).

Are you actually running Cyrus for real, with real mailboxes etc, under WSL1? Or just experimenting with it?

qyb commented 2 years ago

I run our production server by Ubuntu LTS, and use WSL1 as the primary development environment. I tested the new features such as JMAP, xapian-cjkwords in WSL1 and pushed them to prod-env.

In the recent 2 months JMAP app developing experience, all things run well except the annoying netstat problem.

qyb commented 2 years ago

I found that in WSL1 environment it needs --with-mmap=nommap configuration because of https://github.com/microsoft/WSL/issues/902