bahmutov / bahmutov/cypress-split
Why would cypress not be found in the 2nd and 3rd splits on Gitlab
- Dominant language
- JavaScript
- Stars
- 285
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
In the example pipeline job 1/3 was passing but 2/3 & 3/3 were failing with "Your configFile is invalid: /cypress.config.js It threw an error when required, check the stack trace below:Error: Cannot find module 'cypress'" I updated the docker image from cypress/base:16.14.2-slim to cypress/browsers:node14.19.0-chrome100-ff99-edge and all 3 now work.

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the example GitLab pipeline and comparing jobs 1/3, 2/3, and 3/3. Inspect cypress.config.js and the cypress/base:16.14.2-slim versus cypress/browsers:node14.19.0-chrome100-ff99-edge images; done means all split jobs can require Cypress without the module-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, docker, gitlab, javascript
- Domain
- ci-cd, devops, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100