I’m upgrading a React project from Babel 6 to Babel 7 (and bumping the Jest in the process). My build is failing with the error:
Too long with no output (exceeded 10m0s)
I reran the build with SSH then used SSH to access the container. Once inside the container, I re-ran the test suite and it passed in under 2 minutes. How can I debug this and find whats causing the build/test runner to hang and then timeout?
I’m using circleci/node:8.9.4-browsers. I tried bumping to circleci/node:8.12-browsers but got the same failure. I also tried busting the restore_cache but that didn’t work either.
Sometimes but not all the time, some tests will fail with ENOMEM: not enough memory errors and weird errors where its trying to import things from the wrong module, for example
Cannot find module 'react-emotion' from 'expansion-panel.jsx'
1 | import React, { Component } from "react"
> 2 | import styled from "react-emotion"
| ^
In this case, it till gets hung up on something and times out after 10 minutes rather than failing when the tests are done.
I’m a little confused that if I ssh into the container, the tests run and pass as expected. I’m not quite sure what to make of that.
Glad it helped! I talked with Circle CI support a little more and they recommended using --max-workers=2 since they provide two vCPUs for each container. You could try that and you might even get a little better performance.