Cypress’ parallel mode overwrites files among Cypress instances #26211
Labels
E2E
Issue related to end-to-end testing
npm: @cypress/webpack-preprocessor
@cypress/webpack-preprocessor package issues
topic: preprocessors 🔧
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
type: enhancement
Requested enhancement of existing feature
Current behavior
My Cypress test specs are coded in TypeScript. Compiling TypeScript code in Cypress’ parallel mode causes overwriting in files among Cypress instances
I am getting the following errors on CI
And also this error in this issue #9442
The only workaround is to isolate test files in their test runs, so test code will not get overwritten by other instances
I have this code to append unique IDs to filenames before Webpack processes test files in
cypress.config.ts
The path will be replaced with
“specs/my_feature/abc.<uuid>.spec.ts”.
is unique among each cypress instances.Desired behavior
Cypress should not overwrite files among Cypress instances
It should be implemented under the hood
Test code to reproduce
I run 58 cypress instances in one container which is starting in one Gitlab job
Overall I have the following flow
4 parallel gitlab jobs
4 cypress docker container in each
58 cypress instances in each container
I am using AWS spot instances
Cypress Version
12.5.0
Node version
18.13.0
Operating System
Debian, cypress/factory docker image
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: