-
Notifications
You must be signed in to change notification settings - Fork 33
Test failing: connect ECONNREFUSED 127.0.0.1:XXXXX on CI #20
Comments
Thanks for the feedback, appreciated! I'll have to dig into the handshake that happens at the websocket layer (which is why I think this is failing). Those machines that don't work either aren't opening up their ports for debuggers to connect or something else is blocking the connection. Sorry your having issues, hopefully we can get to the bottom of this! |
Just to clarify, you suspect it's the debugger port for Chrome that's it failing the connection? |
Yes, when the program starts up it launches chrome, and passes a flag to it with the port to open for debugging. It's my guess that Chrome isn't respecting that (don't have hard evidence in support of that, however). A similar issue was once filed prior, and the solution there was to use Chrome Canary, which supports a wider set of remote functionality. My version outputs:
You might also attempt to run your tests like so:
This will trigger all the underneath libraries to print out statements, which might give a better indicator of where your problem resides. |
The On the CI, the output is
We tried starting
but it didn't help. |
We have also tried on another dev's machine and the tests work there too, so not sure what is wrong with the IPv6 one from the first post. For the record,
|
Nice trace, that's helpful! Looks like the issue is in Do you know what version of Chrome runs on those CI boxes? My sense is it's coming from a version incompatibility of some kind. This issue too might be similar GoogleChrome/lighthouse#2462 |
Chrome version is 59.0.3071.115 (same as the one in that issue) |
It's the same version I am using though on my macbook though... just to confuse things. |
I'm going to be looking into running functional tests with Travis for this Project, so I'll see if I can repro there. |
So I have an update... we did something really hacky (don't ask how) and replaced the flags provided to chrome to enforce the When we used |
Definitely possible that Navalia isn't passing them through properly... I'll take a peak |
Shoot, think I found it:
Should be:
Just checked, docs did have right (whew): https://joelgriffith.github.io/navalia/chrome/constructor/ |
Soooooo... yeah that was it. Removed our hacks and crazy long timeouts, set the flags correctly and we now have a passing integration test on out build. Thanks so much @joelgriffith, you can close this one and file it under "user error". As a side note, we still have one dev's machine that can't run it, but it seems to be something unique to his setup. |
Thanks for hunting it down! I need to capture these in a FAQ of some kind. Happy hacking! |
I've been evaluating navalia for integration testing on a new project. I really like the api and found it very easy to get it up and running, so great job!
I have a basic test that just makes sure our React app has actually loaded:
I'm having an issue where the test runs fine on my machine (macOS Sierra 10.12.5, Chrome 59.0.3071.115) but it's not working on our CI server. The CI is running in a docker container (RHEL7, Chrome 59.0.3071.115) and the error it shows is:
Interestingly, the test is also failing on another dev's machine (macOS Sierra 10.12.5, Chrome 60.something - don't have the exact version on hand) with a similar error but instead of
127.0.0.1
it has::1
(IPv6).So far the only machine it works on is mine (we have only tried these 3 but will be seeking others tomorrow to test), but I have no idea what I've done to be so special.
Any insights you may have are very much appreciated.
The text was updated successfully, but these errors were encountered: