Commit 2a99bc7b by Edward Thomson

ci: retry flaky online tests

parent 80efb3a4
...@@ -78,6 +78,8 @@ run_test() { ...@@ -78,6 +78,8 @@ run_test() {
echo "" echo ""
echo "Re-running flaky ${1} tests..." echo "Re-running flaky ${1} tests..."
echo "" echo ""
sleep 2
fi fi
RETURN_CODE=0 RETURN_CODE=0
...@@ -269,11 +271,16 @@ if [ -z "$SKIP_ONLINE_TESTS" ]; then ...@@ -269,11 +271,16 @@ if [ -z "$SKIP_ONLINE_TESTS" ]; then
echo "## Running networking (online) tests" echo "## Running networking (online) tests"
echo "##############################################################################" echo "##############################################################################"
# the online tests can fail due to network connectivity problems;
# allow them to retry up to 5 times
export GITTEST_FLAKY_RETRY=5
export GITTEST_REMOTE_REDIRECT_INITIAL="http://localhost:9000/initial-redirect/libgit2/TestGitRepository" export GITTEST_REMOTE_REDIRECT_INITIAL="http://localhost:9000/initial-redirect/libgit2/TestGitRepository"
export GITTEST_REMOTE_REDIRECT_SUBSEQUENT="http://localhost:9000/subsequent-redirect/libgit2/TestGitRepository" export GITTEST_REMOTE_REDIRECT_SUBSEQUENT="http://localhost:9000/subsequent-redirect/libgit2/TestGitRepository"
export GITTEST_REMOTE_SPEED_SLOW="http://localhost:9000/speed-9600/test.git" export GITTEST_REMOTE_SPEED_SLOW="http://localhost:9000/speed-9600/test.git"
export GITTEST_REMOTE_SPEED_TIMESOUT="http://localhost:9000/speed-0.5/test.git" export GITTEST_REMOTE_SPEED_TIMESOUT="http://localhost:9000/speed-0.5/test.git"
run_test online run_test online
unset GITTEST_FLAKY_RETRY
unset GITTEST_REMOTE_REDIRECT_INITIAL unset GITTEST_REMOTE_REDIRECT_INITIAL
unset GITTEST_REMOTE_REDIRECT_SUBSEQUENT unset GITTEST_REMOTE_REDIRECT_SUBSEQUENT
unset GITTEST_REMOTE_SPEED_SLOW unset GITTEST_REMOTE_SPEED_SLOW
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment