question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dest.end error crash during run exit on GitLab CI / Windows

See original GitHub issue

Cypress >=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:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:38 (8 by maintainers)

github_iconTop GitHub Comments

19reactions
rafaelcaviquiolicommented, May 3, 2019

Hello Jeniffer, I need you

7reactions
JulianoGTZcommented, May 3, 2019

i have same trouble.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dest.end error crash during run exit on GitLab CI / Windows
Cypress >=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...
Read more >
Troubleshooting CI/CD - GitLab Docs
GitLab provides several tools to help make troubleshooting your pipelines easier. This guide also lists common issues and possible solutions.
Read more >
Gitlab CI job works fine but always crashes with exit code 1
This used to work perfectly fine but one week ago (without any change on my part) my pipeline started to crash all the...
Read more >
How CI Pipeline Scripts and Exit Codes Interact | Dojo Five
On the GitLab CI pipeline, each job has a script section with a command or an array of commands in that will be...
Read more >
GitLab CI CD Tutorial for Beginners [Crash Course] - YouTube
Learn GitLab CI /CD by building a complete CICD pipeline for a python demo project | with Docker GitLab Course with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found