-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitlab build fails with docker image cypress/included:3.8.3 #6279
Comments
I can recreate this problem in https://gitlab.com/cypress-io/cypress-example-included. When looking at debug logs with
Hmm, how is this running there |
Running with These are not part of our Docker image
|
For reference, here is Cypress CLI entry script
|
@bahrmichael I have solved the immediate issue, see https://gitlab.com/cypress-io/cypress-example-included Turns out GitLab wraps entrypoint in its own script, breaking it. So you need to clear the entrypoint like this e2e:
image:
name: cypress/included:3.8.3
# cypress/included images have entrypoint set to "cypress"
# which conflicts with GitLab CI wrapper shell script
entrypoint: [""]
script:
- cypress run --project ./e2e I will keep this issue open for myself - we still need to catch the config parsing exception and exit with status code and not keep the test runner hanging. |
Trying this locally, the hanging might be GitLab thing, local |
Simplest case that crashes:
|
That fixed it for me. Thank you very much for the quick response! |
The code for this is done in cypress-io/cypress#6280, but has yet to be released. |
Released in |
I'm trying to run a gitlab cicd job with
cypress/included:3.8.3
as the base image.Current behavior:
The build stalls with the following message. Tests don't seem to run at all.
Desired behavior:
I would like the tests to start and complete.
Test code to reproduce
Code for reproduction: https://gitlab.com/mptickets/gitlab-reproducer
Build that shows the failure: https://gitlab.com/mptickets/gitlab-reproducer/-/jobs/421010601
Versions
Cypress docker image: cypress/included:3.8.3
The text was updated successfully, but these errors were encountered: