8000 ci: retry flaky online tests by ethomson · Pull Request #6628 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

ci: retry flaky online tests #6628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ run_test() {
echo ""
echo "Re-running flaky ${1} tests..."
echo ""

sleep 2
fi

RETURN_CODE=0
Expand Down Expand Up @@ -269,11 +271,16 @@ 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
Expand Down
0