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

Read only FS throwing EPERM instead of EACCESS #16933

Closed
sooca opened this issue Jun 14, 2021 · 2 comments · Fixed by #16934
Closed

Read only FS throwing EPERM instead of EACCESS #16933

sooca opened this issue Jun 14, 2021 · 2 comments · Fixed by #16934

Comments

@sooca
Copy link
Contributor

sooca commented Jun 14, 2021

Current behavior

Running with Bazel in a read only FS it throws an EPERM error on MacOS 11.2.3 (not sure about others). Same as #1281 just different error code (EPERM instead of EACCES).

Error reading from: `/private/var/tmp/_bazel_sgunther/bb523b32e1e6201f4465a5fb52d0dab0/sandbox/darwin-sandbox/1/execroot/test-generator/bazel-out/darwin-fastbuild/bin/cypress-trial.sh.runfiles/test-generator/test/acceptance/tests/basic-test/cypress.json`

`Error: EPERM: operation not permitted, access '/private/var/tmp/_bazel_sgunther/bb523b32e1e6201f4465a5fb52d0dab0/sandbox/darwin-sandbox/1/execroot/test-generator/bazel-out/darwin-fastbuild/bin/cypress-trial.sh.runfiles/test-generator/test/acceptance/tests/basic-test'`
{
  status: 'failed',
  failures: 1,
  message: 'Could not find Cypress test run results'
}

Desired behavior

Print a warning like with EACCES here: https://github.com/cypress-io/cypress/blob/develop/packages/server/lib/util/settings.js#L128-L130

Test code to reproduce

It is a whole Bazel setup and the issue is straightforward but if needed I can put something up.

Versions

@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: work in progress stage: needs review The PR code is done & tested, needs review labels Jun 14, 2021
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: waiting labels Jun 22, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 22, 2021

The code for this is done in cypress-io/cypress#16934, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Jun 22, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 23, 2021

Released in 7.6.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v7.6.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant