Yarn tests and timeout

Hi there,

First of all, thanks for the great service offered by CircleCI!

Recently, I’ve been hitting the “Too long with no output (exceeded 10m0s)” error more or less systematically but I can’t figure where the problem is (check https://circleci.com/gh/ToucanToco/vue-query-builder/888 for instance). I’ve logged in on the machine via SSH and re-run the tests. All went fine : all tests ran successfully in about 10 seconds which is consistent with the run time on my machine. The memory usage seems reasonable. I’m a bit stuck and would appreciate help on how to debug this.

All the best,
Adrien

Hi Adrien,

This usually means your test runner isn’t quitting after running the tests. It could be watching for file changes, or hung up waiting for a dependency to close, like a server, or a database.

What test runner are you using, and does it’s docs have any tips about running in a CI service that might help? A lot of them do.

Hi,

Thanks for the feedback., I will investigate in this direction. I could try to strace it… but there’s nothing fancy, just vue-cli-service calling jest and even before hanging, tests take forever to execute (tens of seconds for each file rather than a few miliseconds).

Best,
Adrien

Jest does have some issues with CI.

See if this docs link helps https://jestjs.io/docs/en/troubleshooting#tests-are-extremely-slow-on-docker-and-or-continuous-integration-ci-server