TestArmada / guacamole

A friendly wrapper for the SauceLabs browser and device API
MIT License
11 stars 6 forks source link

Show helpful error when SauceLabs is down #11

Open geekdave opened 8 years ago

geekdave commented 8 years ago

SauceLabs is having a full outage currently. The way this manifested itself in our build was:

00:07:07.808 Magellan-nightwatch test iterator found nightwatch configuration at: conf/nightwatch.json
00:07:07.973 Error initializing reporters: 
00:07:07.974 SyntaxError: Unexpected token <
00:07:07.974 SyntaxError: Unexpected token <
00:07:07.974     at Object.parse (native)
00:07:07.974     at Request._callback (/data1/home/jenkins/workspace/Magellan_Cart_Checkout_Master_Tier_1/automation/magellan/node_modules/testarmada-magellan/node_modules/guacamole/src/browsers.js:398:23)

We should detect this, and perhaps have some retry logic, and fall back to a clear error message if all else fails.

Maciek416 commented 8 years ago

This is a good idea.