Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
101 stars 28 forks source link

Retry login action for third party services in runCI/runSh #3837

Open Boolos opened 7 years ago

Boolos commented 7 years ago

Occasional build failure due to transient network issues

CI tasks within the shippable.yml can be prepended with shippable_retry in order to mitigate transient network issues. However, my CI builds occasionally fail when trying to login to a hub integration (e.g. Docker Hub). I was wondering if there's anyway to specify the equivalent of shippable_retry but for integrations, i.e. this section of the .yml:

screen shot 2017-09-14 at 12 03 33 pm screen shot 2017-09-14 at 12 04 41 pm
trriplejay commented 7 years ago

how often are you seeing this, and is this a new thing or has this been an intermittent issue for awhile? we don't currently have a way for you to add a retry yourself, but we can investigate adding that as a new feature.

ambarish2012 commented 7 years ago

@Boolos if you need shippable retry until we implement the feature, you will need to remove the hub integration and login to docker using commands in YML. Your AWS credentials can be setup in a key-value pair integration (which will set the right environment variables) for the AWS CLI to use or as secure env variables. The AWS CLI will also have to be installed using straightforward pip/apt-get commands.

If you need an example yml, please let me know.

Boolos commented 7 years ago

@trriplejay it's been a relatively recent issue. it may have to do with some of the Amazon AWS instability lately? and it's not a huge deal since we can manually restart the build, and it usually runs to completion. just would be nice not to have the false fails, hehe.

Boolos commented 7 years ago

@ambarish2012 i'll do that as a work around if it becomes a frequent occurrence. thx for the suggestion!

ambarish2012 commented 7 years ago

@Boolos thanks. We are adding this feature request to our backlog and we agree that our platform should implicitly retry connections to third party service. I will let you know when this feature goes live in production.

Boolos commented 7 years ago

awesome! thx @ambarish2012 👍