Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chmod: cannot access '/github/workspace/CodeCoverage' #260

Open
hraytilakhealthcare opened this issue Feb 8, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@hraytilakhealthcare
Copy link
Contributor

Bug description

After running the unit-test action for edit mode tests with the following error :

chmod: cannot access '/github/workspace/CodeCoverage'

How to reproduce

Trigger the unit test ci.

  • Expected behavior

Not sure.

Additional details

The error is triggered when some of my unit-test fails. My understanding is that I should have a nice-ish report and not a bash error ?

The error indicates that the file CodeCoverage does not exist. The last line of dist/platforms/ubuntu/run_tests.sh does make a call to chmod without checking for file presence. Maybe wrapping it with a check would help ?

if test -f "FULL_COVERAGE_RESULTS_PATH"; then
  chmod -R a+r "$FULL_COVERAGE_RESULTS_PATH"
fi

I checked the various paramaters for code coverage to see if I could disable the feature, but as far as I know, the file name CodeCoverage is hardcoded in the action and the chmod cannot be avoided via configuration.

See the following places for the hardcoded string :

  • main.ts:71
  • image-environment-factory.ts:37

Is there a way to avoid the failure of the CI ?

@hraytilakhealthcare hraytilakhealthcare added the bug Something isn't working label Feb 8, 2024
@QuakeEye
Copy link
Contributor

I fixed this by installing the Code Coverage tool in my unity project, the error does not seem to show that this might be the issue, but once I installed that package to the project it instantly worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants