From 321e236891ad29c546977f2053b8e153a65f964c 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 c6c7e2a7ea..0286ec3679 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