effekt icon indicating copy to clipboard operation
effekt copied to clipboard

Workflow runs flaky / "Text file busy"

Open marzipankaiser opened this issue 1 year ago • 6 comments

In both the workflow runs

  • (#320) https://github.com/effekt-lang/effekt/actions/runs/7034447758/job/19142525276?pr=321 | https://github.com/effekt-lang/effekt/actions/runs/7034447758/job/19142525276?pr=321#step:9:208
  • (#321) https://github.com/effekt-lang/effekt/actions/runs/7019874175/job/19098324052 | https://github.com/effekt-lang/effekt/actions/runs/7019874175/job/19098324052#step:9:197 one of the tests fails with something like
==> X effekt.ChezScheme*Tests.examples/pos/multieffects.effekt (chez-callcc)  2.115s java.io.IOException: Cannot run program "*": error=26, Text file busy

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 avatar Nov 29 '23 15:11 marzipankaiser

#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

marzipankaiser avatar Nov 30 '23 13:11 marzipankaiser

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

b-studios avatar Dec 01 '23 09:12 b-studios

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?

marzipankaiser avatar Dec 01 '23 09:12 marzipankaiser

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 avatar Jan 09 '24 15:01 jiribenes

Very much worth fixing, in fact. :)

jiribenes avatar Jan 16 '24 16:01 jiribenes

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)
    [...]

jiribenes avatar Mar 22 '24 14:03 jiribenes