Skip to content
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

Cypress and Travis CI build fail sometimes... "No output has been received in the last 10m0s" #1934

Closed
glabrat opened this issue Jun 12, 2018 · 11 comments

Comments

@glabrat
Copy link

glabrat commented Jun 12, 2018

Current behavior:

https://travis-ci.org/gpincheiraa/bln-frontend-project1/builds/391102661

Error

Desired behavior:

https://travis-ci.org/gpincheiraa/bln-frontend-project1/builds/391093551

Desired behavior

Steps to reproduce:

https://github.com/gpincheiraa/bln-frontend-project1
https://travis-ci.org/gpincheiraa/bln-frontend-project1/builds

It's hard to tell what's happening here and how reproduce the error, sometimes it happens, sometimes doesn't happen. The project has two scripts in folder "ci", deploy and functional-test, which is odd why deploy works and functional-test works sometimes, this is the code of functional-test:

echo '{ "address": "1FwJk" }' > btc-config.json
npm start & (wait-on http://localhost:3000 && cypress run)

kill $(jobs -p) || true

Folder #"ci":
https://github.com/gpincheiraa/bln-frontend-project1/tree/master/ci

Versions

Travis CI
Cypress 3.0.1
Browser Electron 59

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Jun 12, 2018
@brian-mann
Copy link
Member

@glabrat can you rerun your tests with the environment variable DEBUG=cypress:* cypress run.

This will output a huge stream of debug logs but it will help us understand if this issue is related to #1912 or #1890

@glabrat
Copy link
Author

glabrat commented Jun 17, 2018

@brian-mann Hi, this is the output with the enviroment variable, please check out!

https://travis-ci.org/gpincheiraa/bln-frontend-project1/jobs/393222511#L349

@brian-mann
Copy link
Member

brian-mann commented Jun 17, 2018

It appears it is dying on video compression, which is unusual - not sure if we've seen that before. Plenty of tests run in Travis CI without this problem.

It appears this is sometimes happening on your builds and sometimes not.

For the moment I would just turn off video compression by passing videoCompression: false.

As to why this is happening, the logs are unclear - we likely need to add more DEBUG logs to ffmpeg to understand why.

Also - your Travis CI script is caching node_modules but you're using npm ci, which will automatically blow away your node_modules, thus rendering your cache useless.

Here is an example .travis.yml file that shows you how to properly cache both node_modules and also the Cypress binary:

https://docs.cypress.io/guides/guides/continuous-integration.html#Caching-the-Cypress-Binary

@brian-mann
Copy link
Member

Also likely related to: #1333

@paulfalgout
Copy link
Contributor

FWIW I'm seeing the same issue on travis but am not using the video at all: #1905

@glabrat
Copy link
Author

glabrat commented Jun 22, 2018

@brian-mann Hello, sir. I have to announce that the build keep failing.

Tried the videoCompression: false, I don't know if this can help.
https://travis-ci.org/gpincheiraa/bln-frontend-project1/jobs/395550617

@brian-mann
Copy link
Member

Can you update to 3.0.2 and see if this issue is resolved?

We updated ffmpeg to 4.x.x there and added many more debugging logs.

Also please be sure that you use DEBUG=cypress:* cypress run when running so that we can get the debug logs to understand what is happening.

@glabrat
Copy link
Author

glabrat commented Jul 2, 2018

Hi, this is my log:

https://travis-ci.org/gpincheiraa/bln-frontend-project1/builds/399205721

You can check there's still an issue, I don't know why.

@brian-mann
Copy link
Member

Okay it appears as if ending the video recording is not working. The logs are pretty clear that that is the last spot.

I checked the logs and there's no indication of an error with the video recording, so I'm not sure why it can't be ended.

Regardless though, we can add a timeout here of a few seconds, and if that triggers just continue on without fussing with the video. That's really just a workaround, it'll take more work to dig into the underlying issue.

Appreciate you posting these though - it helps. I'm sure we'll get it resolved.

@jennifer-shehane
Copy link
Member

Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen.

@jennifer-shehane jennifer-shehane removed the stage: needs investigating Someone from Cypress needs to look at this label Jul 23, 2019
@MathieuB1
Copy link

On my side I've found that on the travis-ci machine I have to set "video": false, into the cypress.json file.

Otherwise I receive a timeout see https://app.travis-ci.com/github/MathieuB1/KOREK-frontend/builds/240070641

and after the fix https://app.travis-ci.com/github/MathieuB1/KOREK-frontend/builds/240170592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants