Closed carlos-granados closed 7 years ago
I know this sidesteps the issue here - but we run everything in Circle 2.0 with docker. Circle 1.0 just works as is (without using Docker). They already have all the dependencies installed to run Cypress.
Can you switch to either:
We are trying to move to Circle 2.0 but it is taking longer than expected as we have a quite complicated set up with several containers tied together by docker-compose. I will try to run it without using docker in 1.0
When trying to run the tests in CircleCI 1.0 without using docker, Cypress will crash just after running the tests and uploading the video, with this message:
EEXIST: file already exists, mkdir '/tmp/circle-artifacts.jxoLodA/cypress'
Error: EEXIST: file already exists, mkdir '/tmp/circle-artifacts.jxoLodA/cypress'
at Error (native)
The weird thing is that if I SSH into the container and run Cypress then it works fine
At the end of the run Cypress will copy circle artifacts. This is undocumented behavior and will be removed likely in the next major release. You can turn off artifact copying with COPY_CIRCLE_ARTIFACTS=false
I got this working in CircleCI by not using Docker as you suggested. Would you like me to close this issue or do you want to investigate this any further?
Yes, going to close the issue.
I'm not sure what if anything we could do on our end to fix this. The docker containers work, but its possible the environment they're being launched in (Circle 1.0) have constrained resources which make it crash.
Is this a Feature or Bug?
Bug
Current behavior:
cypress run
andcypress verify
will hang at "Verifying Cypress can run /node_modules/cypress/dist/Cypress"Desired behavior:
cypress run
andcypress verify
work normallyHow to reproduce:
Run a CircleCI 1.0 test run with this circle.yml config file:
Enable SSH for the build and SSH into it once it finishes setting things up
Run
to create a docker container using the official cypress base image and bash into it. Then run
Cypress will stop at "Verifying Cypress can run /node_modules/cypress/dist/Cypress" and will not go any further. This is the output I see if I run it with
DEBUG=cypress:*
Note: this will work fine if I remove
--net=host
when launching the container. It also works fine if I run this container locally (not within CircleCI)