Skip to content

Bootstrapped builds fail sporadically since Java 9 merge #5021

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

Closed
Blaisorblade opened this issue Aug 26, 2018 · 1 comment
Closed

Bootstrapped builds fail sporadically since Java 9 merge #5021

Blaisorblade opened this issue Aug 26, 2018 · 1 comment

Comments

@Blaisorblade
Copy link
Contributor

Bootstrap started failing (sporadically) since #3138 was merged with FileAlreadyExistsException http://dotty-ci.epfl.ch/lampepfl/dotty/7060/5, and this affects PR validation (e.g. http://dotty-ci.epfl.ch/lampepfl/dotty/7075/5).

/cc @smarter @allanrenucci:

java.nio.file.FileAlreadyExistsException: /tmp/2/out/compilePosWithCompiler/core/dotty/tools/dotc/core/Denotations$StaleSymbol.class
	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
	at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
	at java.nio.file.Files.newByteChannel(Files.java:361)
	at java.nio.file.Files.createFile(Files.java:632)
	at dotty.tools.io.AbstractFile.fileOrSubdirectoryNamed(AbstractFile.scala:242)
	at dotty.tools.io.AbstractFile.fileNamed(AbstractFile.scala:253)
	at scala.tools.nsc.backend.jvm.BytecodeWriters.getFile(BytecodeWriters.scala:35)
	at scala.tools.nsc.backend.jvm.BCodeHelpers.getFileForClassfile(BCodeHelpers.scala:38)
	at dotty.tools.backend.jvm.GenBCodePipeline$Worker1.liftedTree1$1(GenBCode.scala:254)
	at dotty.tools.backend.jvm.GenBCodePipeline$Worker1.$anonfun$3(GenBCode.scala:259)
	at scala.collection.immutable.List.map(List.scala:287)
	at dotty.tools.backend.jvm.GenBCodePipeline$Worker1.visit(GenBCode.scala:261)
	at dotty.tools.backend.jvm.GenBCodePipeline$Worker1.run(GenBCode.scala:179)
	at dotty.tools.backend.jvm.GenBCodePipeline.buildAndSendToDisk(GenBCode.scala:417)
	at dotty.tools.backend.jvm.GenBCodePipeline.run(GenBCode.scala:383)
	at dotty.tools.backend.jvm.GenBCode.run(GenBCode.scala:53)
	at dotty.tools.dotc.core.Phases$Phase.runOn$$anonfun$1(Phases.scala:299)
@Blaisorblade
Copy link
Contributor Author

Also seen in http://dotty-ci.epfl.ch/lampepfl/dotty/7082/5. I fear this is a blocker.

Blaisorblade added a commit that referenced this issue Aug 28, 2018
Duhemm pushed a commit to dotty-staging/dotty that referenced this issue Aug 30, 2018
These tests may be run in parallel in the same group, and compile the
same files at the same time which caused non deterministic issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant