Skip to content

Commit

Permalink
CI: Sauce Connect randomly fails so try twice
Browse files Browse the repository at this point in the history
  • Loading branch information
laughinghan committed Jun 18, 2016
1 parent 6cb080a commit f3a065a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions circle.yml
Expand Up @@ -46,7 +46,9 @@ dependencies:
wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
tar -xzf sc-latest-linux.tar.gz
fi
# Sauce Connect randomly fails so try twice
sc-*-linux/bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready \
|| sc-*-linux/bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready \
|| echo ERROR > ~/sauce_is_ready
:
background: true
Expand Down

2 comments on commit f3a065a

@laughinghan
Copy link
Member Author

@laughinghan laughinghan commented on f3a065a Nov 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that didn't work, I'm getting that error message again but it doesn't try to reconnect: https://265-598343-gh.circle-artifacts.com/0/tmp/circle-artifacts.maPmtm4/sauce-connect.log

Presumably this means that when it fails, it still exits with a successful non-zero exit status. Instead, lets check for the readyfile: 6f0c2f2

@laughinghan
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact, it also deletes the readyfile when it exits: 6dad20c

Please sign in to comment.