For at least two solutions that pass locally the Scala test runner reports:
An error occurred while running your tests. This might mean that there was an issue in our infrastructure, or it might mean that you have something in your code that’s causing our systems to break.
Please check your code, and if nothing seems to be wrong, try running the tests again.
@bobahop I could reproduce this locally. It looks like there might have been some syncing issue of sorts. For me, the tests file somehow was still using the old test format and there was no update notification on the exercise’s page. I managed to fix it by doing exercism download --force --track scala --exercise prime-factors
An error occurred while running your tests. This might mean that there was an issue in our infrastructure, or it might mean that you have something in your code that’s causing our systems to break.
For the bottom solution it’s claiming the tests time out.
Your tests timed out. This might mean that there was an issue in our infrastructure, but more likely it suggests that your code is running slowly. Is there an infinite loop or something similar?
Both still pass locally. The bottom one returns
[info] Run completed in 389 milliseconds.
[info] Total number of tests run: 7
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 7, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 6 s, completed Jul 11, 2023, 7:25:58 AM
The top one returns
[info] Run completed in 631 milliseconds.
[info] Total number of tests run: 7
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 7, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 8 s, completed Jul 11, 2023, 7:30:33 AM
I’ve been getting this same error message for the last couple of days in the Scala track for the Yacht exercise. As far as I can tell, there aren’t any issues with my code. My code compiles locally, tests pass and it also works in Scastie with all the Scala 2 build settings matching the Exercism test runner as best I can.
I went as far as cloning the Scala Test Runner and trying to run it locally but I wasn’t having any luck. I couldn’t get bin/run.sh to work at all. The Docker version ran without reporting any issues but it did in fact fail to run any of the tests. I could not figure out why.
Lastly, I tried running the tests in my own Docker container using the same image as the Exercism test runner but it kept hanging on a particular dependency and I gave up. I was able to compile my code without issue in that container, though.
I will gladly share my code, if that helps. Thanks!
I’m digging a bit deeper into this issue and for some reason the logs show this:
Exception in thread "main" java.io.FileNotFoundException: /tmp/exercise/test-reports/TEST-PrimefactorsTest.xml (No such file or directory)
So it sounds like something goes wrong, but stderr is empty and stdout is:
prime-factors: testing...
prime-factors: done
It sounds like something went wrong with compiling or testing the project, but I don’t see anything in the logging. @KirillArtamonov you have the most knowledge about the test runner, do you have any idea?
Given there were other types of issues with the test runner before (e.g., this or that), it is interesting to see top exercises by failure rate at test runner (maybe, for last 10-20 submissions only?).