[wp-trac] [WordPress Trac] #44858: Implement travis_retry to reduce the chance that network errors cause CI builds to fail
WordPress Trac
noreply at wordpress.org
Tue Aug 28 10:57:24 UTC 2018
#44858: Implement travis_retry to reduce the chance that network errors cause CI
builds to fail
------------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: minor | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
Travis CI has a `travis_retry` shell function that can be prefixed onto
installation commands and cause them to retry up to three times in the
event of a non-zero response.
Let's implement this for all commands called during `before_install` and
`before_script` that touch the network, for example the `svn` and
`composer` commands. This will reduce the chance that a network issue will
cause the build to fail.
Ref: https://docs.travis-ci.com/user/common-build-problems/#timeouts-
installing-dependencies
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44858>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list