unity-test-runner icon indicating copy to clipboard operation
unity-test-runner copied to clipboard

BUG: Test-runner actions fails with a "chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory" error

Open SimonDarksideJ opened this issue 2 years ago • 3 comments

Bug description

Test-runner actions fails with a "chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory" error.

*Note, there were no actual tests in the project but this should not prevent the action from completing successfully.

How to reproduce

Visit public repo and examine setup, replicate for test: https://github.com/SimonDarksideJ/TheMostAwesomeGameEverMade/actions/runs/4566129759

  • Expected behavior

The action should complete successfully?

Additional details

Output from end of log

Run succeeded, no failures occurred

###########################
#    COMBINE_RESULTS Results    #
###########################

chmod: cannot access '/github/workspace/CodeCoverage': No such file or directory
Changing to "/github/workspace/_activate-license" directory.
/github/workspace/_activate-license /github/workspace
/github/workspace

###########################
#         Failure         #
###########################

Please note that the exit code is not very descriptive.
Most likely it will not help you solve the issue.

To find the reason for failure: please search for errors in the log above.

Error: The process '/usr/bin/docker' failed with exit code 139

SimonDarksideJ avatar Mar 30 '23 15:03 SimonDarksideJ

Ping pong. Is there any update on this issue? I am facing with the same error as well.

SmailikHappy avatar Jun 07 '23 19:06 SmailikHappy

Recommended workaround: add tests to your project.

We're happy to take PRs that fix the chmod task, so that it only runs if the folder exists.

webbertakken avatar Jun 07 '23 20:06 webbertakken

Next to adding tests, also make sure the Code Coverage package is added to your unity project! That missing was what was causing the error for me.

QuakeEye avatar Feb 28 '24 12:02 QuakeEye