-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Enable Windows CI #9666
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
Enable Windows CI #9666
Conversation
602f0e8
to
0fe5e28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @liufengyun for making this work on Windows!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much @liufengyun for making this work on Windows!
It seems the CI is down or hangs somehwere. All open PRs I see are queued and none is making progress. |
It is still running, just that there is only one worker, thus moves slowly. After everything is green, I'll investigate how to move Windows CI from |
e868b2f
to
0bdab09
Compare
Now both
However, we should not merge this PR until we migrate to a infrastructure that can run the jobs fast & reliably. |
We need to compare by first stripping the line ends tests\neg\unicodeEscapes.scala failed tests\neg\unicodeEscapes-interpolations.scala failed
Otherwise, we encounter the following error on windows: java.nio.file.FileSystemException: out\rewrites\i8982\rewrites\i8982\i8982.scala: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97) at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102) at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269) at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) at java.nio.file.Files.delete(Files.java:1126) at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1061) at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete$$anonfun$2(ParallelTesting.scala:1060) at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:15) at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1323) at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1060) at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete$$anonfun$1(ParallelTesting.scala:1057) at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:15) at dotty.runtime.function.JProcedure1.apply(JProcedure1.java:10) at scala.collection.immutable.List.foreach(List.scala:333) at dotty.tools.vulpix.ParallelTesting$CompilationTest.delete(ParallelTesting.scala:1057) at dotty.tools.vulpix.ParallelTesting$CompilationTest.cleanup(ParallelTesting.scala:985) at dotty.tools.vulpix.ParallelTesting$CompilationTest.checkCompile(ParallelTesting.scala:892) at dotty.tools.vulpix.ParallelTesting$RewriteTest.verifyOutput(ParallelTesting.scala:614) at dotty.tools.vulpix.ParallelTesting$RewriteTest.onSuccess(ParallelTesting.scala:618) at dotty.tools.vulpix.ParallelTesting$CompilationLogic.dotty$tools$vulpix$ParallelTesting$CompilationLogic$$onComplete(ParallelTesting.scala:275) at dotty.tools.vulpix.ParallelTesting$$anon$2.checkTestSource$$anonfun$1(ParallelTesting.scala:264) at dotty.runtime.function.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12) at dotty.tools.vulpix.ParallelTesting$Test.tryCompile(ParallelTesting.scala:431) at dotty.tools.vulpix.ParallelTesting$$anon$2.checkTestSource(ParallelTesting.scala:266) at dotty.tools.vulpix.ParallelTesting$Test$LoggedRunnable.run(ParallelTesting.scala:334) at dotty.tools.vulpix.ParallelTesting$Test$LoggedRunnable.run$(ParallelTesting.scala:316) at dotty.tools.vulpix.ParallelTesting$$anon$2.run(ParallelTesting.scala:261)
The following test now passes: compiler/test-resources/repl/unicodeChars
Note that Mac agrees with Windows in printing. The compiler generated signature is the same across platforms: signature for method m = ()LTest$Foo$A<LTest$Foo<TT1;>.B$;>;
The appveyor has problem with the tests: - timeout: unknown error - stackoverflow: VM crashes due to memory quota Both tests succeed on local Windows machine.
Appveyor has 1 hour limit: https://www.appveyor.com/docs/build-configuration/#time-limitations Disable other tests to see if we can get `bootstrapped/test` green.
|
Thanks a lot @sjrd ! |
On Windows, both outcomes are possible. It might be related to JDK version on Windows.
@sjrd : what about we merge the PR, and figure out the infrastructure in another PR? |
Yes, I think we can merge it as is. At least now |
Enable run and pos tests on windows