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

Cypress should have a warning when in a Read Only FS not error #2064

Closed
Toxicable opened this issue Jun 29, 2018 · 4 comments · Fixed by #24253
Closed

Cypress should have a warning when in a Read Only FS not error #2064

Toxicable opened this issue Jun 29, 2018 · 4 comments · Fixed by #24253
Labels
type: feature New feature that does not currently exist

Comments

@Toxicable
Copy link
Contributor

Toxicable commented Jun 29, 2018

Current behavior:

Cypress will throw when run in a read only FS.
In my case im running it under Bazel which only allows reading from it's processes unless specific files are stated to be written.

The error was:
Error: EROFS: read-only file system, mkdir '/home/fabian/.config/Cypress/cy/production/projects'

Desired behavior:

This error should be caught and handled as a warning that features like project seed, screenshots, video recording will be disabled when being unsed in a Read Only File system.

Versions

Cypress:  3.0.1 
Browser:  Electron 59 (headless) 
Node: 8.11.2
OS: linux x64

related: #1281

@brian-mann
Copy link
Member

How do you install node_modules?

@Toxicable
Copy link
Contributor Author

Toxicable commented Jun 29, 2018

@brian-mann That's handled by the yarn bazel rules, which is irreverent to this issue.
You can read me about it here though: https://github.com/bazelbuild/rules_nodejs#using-bazel-managed-dependencies

@jennifer-shehane jennifer-shehane added stage: proposal 💡 No work has been done of this issue type: feature New feature that does not currently exist labels Jan 25, 2019
@chojnicki
Copy link

4 years, and nothing changed :(

@Toxicable maybe you found solution for this? ;)

In my case for component testing I'm using Cypress inside official docker container. I cannot install it directly inside Node container because it's based on Alpine linux which Cypress does not support. I just mounted my JS project as volume and it works great. But since Cypress in docker runs as root, I want to be sure that it will not mess up my project with any root files, like videos or screenthods. I do not want it to seed anything. Cypress should test my project and simply live it alone, without creating anything... To be sure I mounted volume as read only, but Cypress is not happy about that. Why @brian-mann ? If Cypress is not going to put anything in my project (cypress was initiated, videos/screenshots are disabled) then why it requires access to my source root?

@cypress-bot cypress-bot bot added stage: backlog and removed stage: proposal 💡 No work has been done of this issue labels Apr 29, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Nov 10, 2022

Released in 11.0.0.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature New feature that does not currently exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants