Skip to content

Read only FS throwing EPERM instead of EACCESS #16933

@sooca

Description

@sooca

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions