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

run testrunner.pl under WSL1 #4158

Open
qyb opened this issue Jul 1, 2022 · 3 comments
Open

run testrunner.pl under WSL1 #4158

qyb opened this issue Jul 1, 2022 · 3 comments
Labels
cassandane issues affecting specifically the cassandane test suite

Comments

@qyb
Copy link
Contributor

qyb commented Jul 1, 2022

Because netstat cannot run properly in WSL1 (see: microsoft/WSL#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.

qyb added a commit to qyb/cyrus-imapd that referenced this issue Jul 1, 2022
Signed-off-by: qyb <[email protected]>
@elliefm elliefm added the cassandane issues affecting specifically the cassandane test suite label Jul 1, 2022
@elliefm
Copy link
Contributor

elliefm commented Jul 1, 2022

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
Copy link
Contributor Author

qyb commented Jul 1, 2022

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 added a commit to qyb/cyrus-imapd that referenced this issue Jul 2, 2022
Signed-off-by: qyb <[email protected]>

generate fakenetstat script in testrunner.pl

Signed-off-by: qyb <[email protected]>
@qyb
Copy link
Contributor Author

qyb commented Jul 15, 2022

I found that in WSL1 environment it needs --with-mmap=nommap configuration because of microsoft/WSL#902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cassandane issues affecting specifically the cassandane test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants