-
Notifications
You must be signed in to change notification settings - Fork 929
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
Replicate failing scripted test on Windows #7088
base: 1.8.x
Are you sure you want to change the base?
Replicate failing scripted test on Windows #7088
Conversation
Looks like we got some: Caused by: java.net.SocketException: socket closed
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:131)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
at java.net.ServerSocket.implAccept(ServerSocket.java:560)
at java.net.ServerSocket.accept(ServerSocket.java:528)
at xsbt.IPC$Server.connection(IPC.scala:69)
at sbt.scriptedtest.SbtHandler.receive(SbtHandler.scala:77)
at sbt.scriptedtest.SbtHandler.$anonfun$apply$1(SbtHandler.scala:33)
at sbt.scriptedtest.SbtHandler.$anonfun$apply$1$adapted(SbtHandler.scala:31)
at sbt.scriptedtest.SbtHandler.onSbtInstance(SbtHandler.scala:39)
at sbt.scriptedtest.SbtHandler.apply(SbtHandler.scala:31)
at sbt.scriptedtest.SbtHandler.apply(SbtHandler.scala:23)
at sbt.scriptedtest.BatchScriptRunner.$anonfun$processStatement$1(BatchScriptRunner.scala:51) |
Unfortunately this is not the same error, we are looking for a client refusing to connect, i.e.
The important part in the stacktrace is I think whats happening in the case you pointed out is that the sbt server unexpectedly quite (for some reason) which terminated the server earlier than expected. I get the impression that in general a lot of the scripted tests are failing because of Windows specific differences (i.e. crlf/no symbolic links by default) which might be causing
as an unintended consequence. |
So to confirm that the client method is being called I changed it to def client[T](port: Int)(f: IPC => T): T = throw new Exception("This is fun") And it is indeed getting thrown. I will now increase the |
4cfc41d
to
e9200d4
Compare
@eed3si9n So out of curiosity, I changed the
from https://github.com/sbt/sbt/actions/runs/3656457856/jobs/6178927130#step:19:2695 |
Create a replicated failing scripted test on Windows