mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
ci: retry (more) flaky online tests
This commit is contained in:
11
ci/test.sh
11
ci/test.sh
@@ -261,6 +261,10 @@ if [ -n "$RUN_INVASIVE_TESTS" ]; then
|
||||
unset GITTEST_INVASIVE_SPEED
|
||||
fi
|
||||
|
||||
# the various network tests can fail due to network connectivity problems;
|
||||
# allow them to retry up to 5 times
|
||||
export GITTEST_FLAKY_RETRY=5
|
||||
|
||||
if [ -z "$SKIP_ONLINE_TESTS" ]; then
|
||||
# Run the online tests. The "online" test suite only includes the
|
||||
# default online tests that do not require additional configuration.
|
||||
@@ -271,16 +275,11 @@ if [ -z "$SKIP_ONLINE_TESTS" ]; then
|
||||
echo "## Running networking (online) tests"
|
||||
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_SUBSEQUENT="http://localhost:9000/subsequent-redirect/libgit2/TestGitRepository"
|
||||
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"
|
||||
run_test online
|
||||
unset GITTEST_FLAKY_RETRY
|
||||
unset GITTEST_REMOTE_REDIRECT_INITIAL
|
||||
unset GITTEST_REMOTE_REDIRECT_SUBSEQUENT
|
||||
unset GITTEST_REMOTE_SPEED_SLOW
|
||||
@@ -438,6 +437,8 @@ if [ -z "$SKIP_SSH_TESTS" ]; then
|
||||
unset GITTEST_REMOTE_SSH_FINGERPRINT
|
||||
fi
|
||||
|
||||
unset GITTEST_FLAKY_RETRY
|
||||
|
||||
if [ -z "$SKIP_FUZZERS" ]; then
|
||||
echo ""
|
||||
echo "##############################################################################"
|
||||
|
||||
Reference in New Issue
Block a user