-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Many failing tests on Windows machines #3781
Comments
Thanks for reporting. I wonder if this could be an IDE issue? For example, for "\n" vs "\r\n", you can configure in Intellij for which style you want (Intellij configure line separators). Update: |
Thanks for the quick response! That seems like a good solution for the last thing I mentioned regarding WSL, however it doesn't seem to solve most of the "\n" vs "\r\n" issues because I believe the"\r\n" comes from something that is generated during the tests. For example, the StringWriter in this test ends up with "\r\n" at the end even though it is expecting "\n" jib/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/JarCommandTest.java Lines 69 to 84 in aca26b3
There is also another error: Cannot run program "./gradlew" (in directory "C:\Users\User\AppData\Local\Temp\junit2372789025395354886\junit15493631909377854876"): CreateProcess error=2, The system cannot find the file specified when running tests like the following:jib/jib-cli/src/integration-test/java/com/google/cloud/tools/jib/cli/WarCommandTest.java Lines 81 to 105 in aca26b3
Note that we don't necessarily want to build windows images with Jib, rather we want to develop and test Jib on windows machines. If it is determined to have any value, we may make a PR/draft of some changes we're coming up with to make this work. |
@Belair34 We don't support a development flow on Windows because nobody on the team uses Windows. |
Environment:
Description of the issue:
Multiple failing integration tests seemingly due to running the tests on windows instead of Linux (ex: expecting "\n" but getting "\r\n") among some other types of failures. Using intelliJ Community IDE.
Expected behavior:
Integration tests all pass given no changes have been made since cloning the project.
Steps to reproduce:
Additional Information:
We have been working on solving this issue by using system.lineSeparator() in more places, amending some docker commands, and even messing with our groovy version. Another notable thing is that cloning the repo in WSL can cause discrepancies between System.lineSeparator() and the line separators used in text files when running the tests in Windows.
The text was updated successfully, but these errors were encountered: