From 28ec70953b6acfc384ceda2e8a870b7dd41dbdae Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Mon, 6 Jun 2022 16:06:55 -0500 Subject: [PATCH] test: retry the compat tests as often as other tests (#13369) The upgrade compatibility tests need frequent retrying to pass because they are slightly flaky. To alleviate manual work borrow similar gotestsum logic from the main go tests CI job to rerun them automatically here. --- .circleci/config.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c6c7e2a7e..0286ec367 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -822,15 +822,19 @@ jobs: - run: name: Compatibility Integration Tests command: | - subtests=$(ls -d test/integration/consul-container/*/ | grep -v libs | xargs -n 1 basename | circleci tests split) - echo "Running $(echo $subtests | wc -w) subtests" - echo "$subtests" - subtests_formatted=$(echo "$subtests" | sed 's/^/.\//g' | xargs) mkdir -p /tmp/test-results/ - docker run consul:local consul version cd ./test/integration/consul-container - echo "$subtests_formatted" - gotestsum -- -timeout=30m ./$subtests_formatted --target-version local --latest-version latest + docker run --rm consul:local consul version + gotestsum \ + --format=short-verbose \ + --debug \ + --rerun-fails=3 \ + --packages="./..." \ + -- \ + -timeout=30m \ + ./... \ + --target-version local \ + --latest-version latest ls -lrt environment: # this is needed because of incompatibility between RYUK container and circleci