clojure - Slow Braintree API Requests from Travis CI -
i have written server-side clojure service makes use of braintree java sdk. makes requests create payment tokens, create customers, handle notifications etc etc. have suite of tests written test making calls braintree sandbox. works well, until try run tests on travis.
on travis, @ least 50% of time, build fails because times out, , have narrowed down call first call made braintree sdk (which in case find customer, doesn't seem matter call first). code sits there minutes waiting call complete. can happen quickly, other times 10 minutes can pass , travis job gives up. never happens locally.
does have idea what's going on? since seems affect first call braintree, perhaps handshaking process? has else seen issue?
while shot in dark, might issue build platform lacking entropy source, , part of code and/or dependencies blocking on reading random device. if lack of entropy source case, resolved installing haveged.
in order install , start haveged, use of apt addon required. please add following .travis.yml , see if there improvement:
addons: apt: packages: - haveged
Comments
Post a Comment