scala / scala-dev

Scala 2 team issues. Not for user-facing bugs or directly actionable user-facing improvements. For build/test/infra and for longer-term planning and idea tracking. Our bug tracker is at https://github.com/scala/bug/issues
Apache License 2.0
130 stars 14 forks source link

still some concurrency issue in scripted tests #882

Open lrytz opened 1 week ago

lrytz commented 1 week ago

Failure in a merge commit test run on GitHub https://github.com/scala/scala/actions/runs/11819553129/job/32929735138 (windows 21)

2024-11-13T15:30:37.5870241Z [info] Running source-dependencies/malformed-class-name
2024-11-13T15:30:37.5871506Z [info] Running apiinfo/circular-structure
2024-11-13T15:30:54.0980457Z sbt.internal.scripted.TestException: {line -1}  Reload for scripted batch execution failed.
2024-11-13T15:30:54.1715031Z [error] [info] waiting for lock on D:\a\scala\scala\target\sbtTest\.sbt-scripted\sbt.boot.lock to be available...
2024-11-13T15:30:54.1716753Z    at sbt.scriptedtest.ScriptedTests.$anonfun$runBatchedTests$5(ScriptedTests.scala:237)
2024-11-13T15:30:54.1718153Z    at sbt.scriptedtest.ScriptedTests.$anonfun$runBatchedTests$5$adapted(ScriptedTests.scala:231)
2024-11-13T15:30:54.1719518Z    at sbt.scriptedtest.ScriptedTests.$anonfun$commonRunTest$6(ScriptedTests.scala:321)
2024-11-13T15:30:54.1720664Z    at scala.util.control.Exception$Catch.apply(Exception.scala:228)
2024-11-13T15:30:54.1721752Z    at sbt.scriptedtest.ScriptedTests.commonRunTest(ScriptedTests.scala:320)
2024-11-13T15:30:54.1723015Z    at sbt.scriptedtest.ScriptedTests.$anonfun$runBatchedTests$3(ScriptedTests.scala:241)
2024-11-13T15:30:54.1724331Z    at sbt.scriptedtest.ScriptedTests.runOrHandleDisabled(ScriptedTests.scala:272)
2024-11-13T15:30:54.1726026Z    at sbt.scriptedtest.ScriptedTests.$anonfun$runBatchedTests$1(ScriptedTests.scala:245)
2024-11-13T15:30:54.1727297Z    at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
2024-11-13T15:30:54.1728405Z    at scala.collection.mutable.ArraySeq.foreach(ArraySeq.scala:75)
2024-11-13T15:30:54.1729436Z    at scala.collection.TraversableLike.map(TraversableLike.scala:286)
2024-11-13T15:30:54.1730494Z    at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
2024-11-13T15:30:54.1731556Z    at scala.collection.AbstractTraversable.map(Traversable.scala:108)
2024-11-13T15:30:54.1732684Z    at sbt.scriptedtest.ScriptedTests.runBatchTests$1(ScriptedTests.scala:217)
2024-11-13T15:30:54.1733894Z    at sbt.scriptedtest.ScriptedTests.runBatchedTests(ScriptedTests.scala:261)
2024-11-13T15:30:54.1735597Z    at sbt.scriptedtest.ScriptedTests.$anonfun$batchScriptedRunner$11(ScriptedTests.scala:156)
2024-11-13T15:30:54.1736727Z    at sbt.io.IO$.withTemporaryDirectory(IO.scala:496)
2024-11-13T15:30:54.1737494Z    at sbt.io.IO$.withTemporaryDirectory(IO.scala:506)
2024-11-13T15:30:54.1738599Z    at sbt.scriptedtest.ScriptedTests.$anonfun$batchScriptedRunner$10(ScriptedTests.scala:156)
2024-11-13T15:30:54.1739898Z    at sbt.scriptedtest.ScriptedRunner.$anonfun$runAll$3(ScriptedTests.scala:634)
2024-11-13T15:30:54.1741334Z    at scala.collection.parallel.mutable.ParArray$ParArrayIterator.flatmap2combiner(ParArray.scala:419)
2024-11-13T15:30:54.1742843Z    at scala.collection.parallel.ParIterableLike$FlatMap.leaf(ParIterableLike.scala:1082)
2024-11-13T15:30:54.1744078Z    at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:53)
2024-11-13T15:30:54.1745334Z    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
2024-11-13T15:30:54.1746387Z    at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:67)
2024-11-13T15:30:54.1747365Z    at scala.collection.parallel.Task.tryLeaf(Tasks.scala:56)
2024-11-13T15:30:54.1748302Z    at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:50)
2024-11-13T15:30:54.1749512Z    at scala.collection.parallel.ParIterableLike$FlatMap.tryLeaf(ParIterableLike.scala:1078)
2024-11-13T15:30:54.1751037Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal(Tasks.scala:160)
2024-11-13T15:30:54.1752565Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.internal$(Tasks.scala:157)
2024-11-13T15:30:54.1754177Z    at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.internal(Tasks.scala:440)
2024-11-13T15:30:54.1755952Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute(Tasks.scala:150)
2024-11-13T15:30:54.1757466Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute$(Tasks.scala:149)
2024-11-13T15:30:54.1759111Z    at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:440)
2024-11-13T15:30:54.1760607Z    at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
2024-11-13T15:30:54.1762094Z    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
2024-11-13T15:30:54.1763492Z    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1351)
2024-11-13T15:30:54.1765140Z    at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:422)
2024-11-13T15:30:54.1766430Z    at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:651)
2024-11-13T15:30:54.1767638Z    at scala.collection.parallel.ForkJoinTasks$WrappedTask.sync(Tasks.scala:379)
2024-11-13T15:30:54.1768881Z    at scala.collection.parallel.ForkJoinTasks$WrappedTask.sync$(Tasks.scala:379)
2024-11-13T15:30:54.1770317Z    at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.sync(Tasks.scala:440)
2024-11-13T15:30:54.1771838Z    at scala.collection.parallel.ForkJoinTasks.executeAndWaitResult(Tasks.scala:423)
2024-11-13T15:30:54.1773221Z    at scala.collection.parallel.ForkJoinTasks.executeAndWaitResult$(Tasks.scala:416)
2024-11-13T15:30:54.1774837Z    at scala.collection.parallel.ForkJoinTaskSupport.executeAndWaitResult(TaskSupport.scala:60)
2024-11-13T15:30:54.1776386Z    at scala.collection.parallel.ParIterableLike$ResultMapping.leaf(ParIterableLike.scala:968)
2024-11-13T15:30:54.1777653Z    at scala.collection.parallel.Task.$anonfun$tryLeaf$1(Tasks.scala:53)
2024-11-13T15:30:54.1778757Z    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
2024-11-13T15:30:54.1779793Z    at scala.util.control.Breaks$$anon$1.catchBreak(Breaks.scala:67)
2024-11-13T15:30:54.1780714Z    at scala.collection.parallel.Task.tryLeaf(Tasks.scala:56)
2024-11-13T15:30:54.1781628Z    at scala.collection.parallel.Task.tryLeaf$(Tasks.scala:50)
2024-11-13T15:30:54.1782913Z    at scala.collection.parallel.ParIterableLike$ResultMapping.tryLeaf(ParIterableLike.scala:963)
2024-11-13T15:30:54.1784916Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute(Tasks.scala:153)
2024-11-13T15:30:54.1786664Z    at scala.collection.parallel.AdaptiveWorkStealingTasks$WrappedTask.compute$(Tasks.scala:149)
2024-11-13T15:30:54.1788462Z    at scala.collection.parallel.AdaptiveWorkStealingForkJoinTasks$WrappedTask.compute(Tasks.scala:440)
2024-11-13T15:30:54.1790074Z    at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
2024-11-13T15:30:54.1791310Z    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
2024-11-13T15:30:54.1792659Z    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
2024-11-13T15:30:54.1793995Z    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
2024-11-13T15:30:54.1795392Z    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
2024-11-13T15:30:54.1796774Z    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
2024-11-13T15:30:54.1798585Z Caused by: sbt.internal.scripted.TestException: {line -1}  Command failed: Remote sbt initialization failed
2024-11-13T15:30:54.1800097Z    at sbt.scriptedtest.BatchScriptRunner.processStatement(BatchScriptRunner.scala:54)
2024-11-13T15:30:54.1801454Z    at sbt.scriptedtest.ScriptedTests.$anonfun$runBatchedTests$5(ScriptedTests.scala:233)
2024-11-13T15:30:54.1802362Z    ... 60 more
2024-11-13T15:30:54.1803013Z [info] sbt thinks that server is already booting because of this exception:
2024-11-13T15:30:54.1805048Z [error] sbt.internal.ServerAlreadyBootingException: java.io.IOException: Could not create lock for \\.\pipe\sbt-load-7218651322503748788_lock, error 1336
2024-11-13T15:30:54.1806831Z [error]    at sbt.internal.BootServerSocket.newSocket(BootServerSocket.java:357)
2024-11-13T15:30:54.1807988Z [error]    at sbt.internal.BootServerSocket.<init>(BootServerSocket.java:296)
2024-11-13T15:30:54.1808933Z [error]    at sbt.xMain$.getSocketOrExit(Main.scala:153)
2024-11-13T15:30:54.1809798Z [error]    at sbt.xMain$.bootServerSocket$lzycompute$1(Main.scala:79)
2024-11-13T15:30:54.1810680Z [error]    at sbt.xMain$.bootServerSocket$1(Main.scala:79)
2024-11-13T15:30:54.1811601Z [error]    at sbt.xMain$.withStreams$1(Main.scala:87)
2024-11-13T15:30:54.1812267Z [error]    at sbt.xMain$.run(Main.scala:124)
2024-11-13T15:30:54.1813502Z [error]    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
2024-11-13T15:30:54.1815068Z [error]    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
2024-11-13T15:30:54.1816170Z [error]    at sbt.internal.XMainConfiguration.run(XMainConfiguration.java:59)
2024-11-13T15:30:54.1817051Z [error]    at sbt.xMain.run(Main.scala:48)
2024-11-13T15:30:54.1817775Z [error]    at xsbt.boot.Launch$.$anonfun$run$1(Launch.scala:149)
2024-11-13T15:30:54.1818688Z [error]    at xsbt.boot.Launch$.withContextLoader(Launch.scala:176)
2024-11-13T15:30:54.1819517Z [error]    at xsbt.boot.Launch$.run(Launch.scala:149)
2024-11-13T15:30:54.1820326Z [error]    at xsbt.boot.Launch$.$anonfun$apply$1(Launch.scala:44)
2024-11-13T15:30:54.1821152Z [error]    at xsbt.boot.Launch$.launch(Launch.scala:159)
2024-11-13T15:30:54.1821912Z [error]    at xsbt.boot.Launch$.apply(Launch.scala:44)
2024-11-13T15:30:54.1822641Z [error]    at xsbt.boot.Launch$.apply(Launch.scala:21)
2024-11-13T15:30:54.1823354Z [error]    at xsbt.boot.Boot$.runImpl(Boot.scala:78)
2024-11-13T15:30:54.1824041Z [error]    at xsbt.boot.Boot$.run(Boot.scala:73)
2024-11-13T15:30:54.1824806Z [error]    at xsbt.boot.Boot$.main(Boot.scala:21)
2024-11-13T15:30:54.1825467Z [error]    at xsbt.boot.Boot.main(Boot.scala)
2024-11-13T15:30:54.1826837Z [error] Caused by: java.io.IOException: Could not create lock for \\.\pipe\sbt-load-7218651322503748788_lock, error 1336
2024-11-13T15:30:54.1828574Z [error]    at org.scalasbt.ipcsocket.Win32NamedPipeServerSocket.<init>(Win32NamedPipeServerSocket.java:129)
2024-11-13T15:30:54.1830425Z [error]    at org.scalasbt.ipcsocket.Win32NamedPipeServerSocket.<init>(Win32NamedPipeServerSocket.java:48)
2024-11-13T15:30:54.1831877Z [error]    at sbt.internal.BootServerSocket.newSocket(BootServerSocket.java:351)
2024-11-13T15:30:54.1832747Z [error]    ... 21 more
2024-11-13T15:30:54.1833200Z [info] 
2024-11-13T15:30:54.1833679Z [error] x apiinfo/circular-structure 
2024-11-13T15:30:54.3249933Z [info] Running apiinfo/java-basic
2024-11-13T15:31:41.6454050Z [info] Running source-dependencies/malformed-class-name-with-dollar
lrytz commented 1 week ago

rerun passed