Closed bharathmuppa closed 1 month ago
@bharathmuppa
Your job definition shows you are using
image: jfrog-mirai.ec.com/registry-1.docker.io/cypress/included:latest
jfrog-mirai.ec.com/registry-1.docker.io
is not a registry controlled by Cypress.iolatest
tag in production is not recommended.cypress/included:latest
is currently equivalent to cypress/included:13.13.1
Your log files indicate that your project is configured for Cypress Version: 13.12.0
which may be in conflict with the latest
tag from your Docker registry.
You can try specifying
cypress/included:13.12.0
as your image
or you could try using a cypress/browsers
image instead, for instance
cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
There is no specific advice in this repository about using Cypress Docker images in GitLab. You can however find some documentation on the Cypress documentation site at https://docs.cypress.io/guides/continuous-integration/gitlab-ci.
This issue is not reproducible locally. Possibly the setting for the Cypress binary cache is being overridden. The Docker image uses /root/.cache/Cypress
not /opt/.cache/Cypress
:
git clone https://github.com/cypress-io/cypress-docker-images
cd cypress-docker-images/examples/basic
npm install cypress@13.12.0 -D
docker run -it --rm -v .:/e2e -w /e2e --entrypoint bash cypress/included:latest
root@46f8c91a41e8:/e2e# npx cypress install
root@46f8c91a41e8:/e2e# npx cypress cache path
/root/.cache/Cypress
root@46f8c91a41e8:/e2e# npx cypress cache list
┌─────────┬──────────────┐
│ version │ last used │
├─────────┼──────────────┤
│ 13.12.0 │ a month ago │
├─────────┼──────────────┤
│ 13.13.1 │ 14 hours ago │
└─────────┴──────────────┘
@bharathmuppa
Please let us know if the information was helpful to you and if you were able to resolve your issue by re-configuration.
Closing due to lack of response.
Thanks it worked @MikeMcC399
Problem is with the version as you explained, your help is much appreciated.
Gitlab pipeline fails with Cypress binary not installed though i am using cypress/included:latest
Here is my job definition in my gitlab-ci.yml
output