dest.end error crash during run exit on GitLab CI / Windows
See original GitHub issueCypress >=v3.0.0 on GitLabCI
Current behavior:
Any version >= v3.0.0 of the Cypress is failing to run on the GitLabβs CI. The following error is being thrown exactly before cypress is exiting:
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β HomePage\Home_Page_Quick_Lookup.js 00:05 1 1 - - - β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
All specs passed! 00:05 1 1 - - -
cypress:server:cypress about to exit with code 0 +159ms
_stream_readable.js:595
dest.end();
^
TypeError: dest.end is not a function
at Socket.onend (_stream_readable.js:595:10)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR: Job failed: exit status 1
Desired behavior:
We expect the cypress to return the (All Done)
message as Cypress v2.1.0 does with no error.
Steps to reproduce:
I have an issue with running cypress on the GitLabβs CI provider. I want to confirm whether this is a configuration issue, an incompatibility issue or a cypress bug.
I have installed cypress using the yarn command yarn add cypress
. This will install me the latest version of cypress, namely v3.0.2.
[path-to-root-of-solution]/cypress.json
{
"projectId": "β¦β¦",
"baseUrl": "β¦. "
}
[path-to-root-of-solution]/cypress/integration/HomePage/Home_Page_Quick_Lookup.js
describe('Home Page Test - Find Button', function () {
before(function() {
// navigate to home page (baseUrl)
cy.visit('')
})
it('Check the button is on the page', function () {
cy.get('[data-test=button-test-base]').should('exist')
})
})
[path-to-root-of-solution]/gitlab-ci.yml
# β¦ set pathβ¦
stages:
- test
run_test_suite:
stage: test
script:
- call yarn add cypress
- npx cypress run
# .. end of file β¦
When I start the cypress using the command npx cypress run
Versions
β’ Windows Server 2012 R2 β’ Node: 8.9.4 β’ npm: 5.6.0 β’ Gitlab CI Runner: 9.5.0
Comments
I have searched to see if there are other who experienced this issue, but it seems that no one have. (or at least they didnβt bother in reporting the issue and/or sharing their solution).
The https://github.com/cypress-io/cypress/issues/1841
is the only issue that is a bit relevant to this problem in the sense that the pipeline fails when cypress is about to exit.
We have tried to use other versions of cypress:
βΊ v3.0.2, v3.0.1, v3.0.0 β the above error is being generated
βΊ v2.1.0 β no error is being generated
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:38 (8 by maintainers)
Top GitHub Comments
Hello Jeniffer, I need you
i have same trouble.