effekt-lang / effekt

A language with lexical effect handlers and lightweight effect polymorphism
https://effekt-lang.org
MIT License
327 stars 23 forks source link

Workflow runs flaky / "Text file busy" #322

Open marzipankaiser opened 11 months ago

marzipankaiser commented 11 months ago

In both the workflow runs

This is probably a chance event, and might be related to https://bugs.openjdk.org/browse/JDK-8068370. Leaving this here because it occured in both of my last PRs, so we might want to look into this if this stays this frequent for more than two runs.

marzipankaiser commented 11 months ago

323: https://github.com/effekt-lang/effekt/actions/runs/7046569951/job/19178631771#step:9:116 ,

https://github.com/effekt-lang/effekt/actions/runs/7046919304/job/19179674641#step:9:212

b-studios commented 11 months ago

Strange, I also just ran into this issue:

java.io.IOException: Cannot run program "/home/runner/work/effekt/effekt/./out/tests/effekt.chezschemelifttests/examples_pos_multieffects": error=26, Text file busy

https://github.com/effekt-lang/effekt/actions/runs/7057970235/job/19212628254

marzipankaiser commented 11 months ago

Re-running usually fixed it for me, but this is quite often 🤔 Was there a change on our side that might have made this more probable to occur for a test?

jiribenes commented 10 months ago

We're running into this constantly.

Here's some related thread from StackOverflow: https://stackoverflow.com/questions/16764946/what-generates-the-text-file-busy-message-in-unix

jiribenes commented 9 months ago

Very much worth fixing, in fact. :)

jiribenes commented 7 months ago

https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695 This error was also detected in REPLTests now.

==> X effekt.ReplTests.Evaluating small examples  10.147s java.io.IOException: Cannot run program "/home/runner/work/effekt/effekt/./out/interactive": error=26, Text file busy
[53](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:54)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
[54](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:55)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
[55](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:56)
    at scala.sys.process.ProcessBuilderImpl$Simple.run(ProcessBuilderImpl.scala:85)
[56](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:57)
    at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:119)
[57](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:58)
    at effekt.Runner.eval(Runner.scala:70)
[58](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:59)
    at effekt.Runner.eval$(Runner.scala:14)
[59](https://github.com/effekt-lang/effekt/actions/runs/8391413168/job/22981712695#step:9:60)
    at effekt.JSRunner$.eval(Runner.scala:107)
    [...]