bahmutov / bahmutov/cypress-split

Why would cypress not be found in the 2nd and 3rd splits on Gitlab

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
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.

![image](https://user-images.githubusercontent.com/47853410/215547237-0fd0df6b-23a5-4fa6-943f-aa82dda192ba.png)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.