-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Jenkins windows tests #90
Conversation
Closing this for now - whenever Jenkins picks it up to run it, it blocks the Windows node forever, which stalls all other testing. |
Hmm I think it might've been stalling because of the dos2windows install. I've installed it on the Windows box now, but it still doesn't seem to be working. |
He's off this week. Would you mind keeping an eye on it to make sure it doesn't get stuck and block all the builds again? |
Will do! |
Strange that this isn't working on Jenkins Windows Machine or on your local one. I have it installed & working on my Ubuntu 18.04 WSL. @VMatthijs I can take a look in the weekend to see what's wrong with it. |
Thanks, @serban-nicusor-toptal ! It's installed on the Jenkins Windows Machine and my local machine. That part is fine. It's just that it complains when I run |
Woo! This works now!! Thanks, @serban-nicusor-toptal ! @seantalts , could you maybe have a look if you're happy with this? The dos2unix solution is perhaps a bit rough. It also takes 1.5 minutes to complete. I guess we could be more selective with it if we'd want, e.g. only apply it to the *.expected files. Would that be better or is the 1.5 minute wait OK? |
Made the changes I proposed above. The dos2unix time is now down to 15s which seems more reasonable. Could you maybe have a look, @seantalts ? |
I think this is fine. Maybe one day someone can figure out the appropriate git configuration to make this automatic but this is good enough. Thank you! |
It's really easy to solve the LF/CRLF conversion issue directly from git. How to? Simply create a
That's it! Explanation:
This
Thing which should be set to:
When working cross platform. For more information see: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration |
I think we tried that at one point... |
Yep. That's what I was trying at first and for some reason, it didn't work. Glad you found this solution though! |
I think when it's running tests on windows it's actually executing the WSL linux build for the tests :( |
Yeah, you can see the run with --verbose using the |
This PR contains work in progress on getting Jenkins to build and run our test models on our Windows machine.
The builds seem to be working on Jenkins and the tests even pass on my local Windows machine.
However, there seems to be a problem with the tests on Jenkins. I believe it has to do with line ending conflicts (LF vs CRLF).
The goal here is to have Jenkins make the Windows machine build a Windows binary on WSL and then to run the tests on that binary, also through WSL.
@serban-nicusor-toptal , would you be interested in having a look at this? Based on what Sean said, you'd likely be much more efficient at figuring out what the problem is here than I would. Thanks!