From 0d34e2939ff2a0a5daddff6d94551e0d8c52bea5 Mon Sep 17 00:00:00 2001 From: Alvin Huang <17609145+alvin-huang@users.noreply.github.com> Date: Fri, 23 Oct 2020 11:53:24 -0400 Subject: [PATCH] ci: add parallelism to envoy tests (#9005) add subtest output --- .circleci/config.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index add98987b0..59f87cbb3e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -739,11 +739,12 @@ jobs: command: bash <(curl -s https://codecov.io/bash) -v -c -C $CIRCLE_SHA1 -F ui - run: *notify-slack-failure - envoy-integration-test-1.13.6: + envoy-integration-test-1.13.6: &ENVOY_TESTS docker: # We only really need bash and docker-compose which is installed on all # Circle images but pick Go since we have to pick one of them. - image: *GOLANG_IMAGE + parallelism: 2 environment: ENVOY_VERSION: "1.13.6" steps: &ENVOY_INTEGRATION_TEST_STEPS @@ -757,8 +758,12 @@ jobs: - run: name: Envoy Integration Tests command: | + subtests=$(ls -d test/integration/connect/envoy/*/ | xargs -n 1 basename | circleci tests split) + echo "Running $(echo $subtests | wc -w) subtests" + echo "$subtests" + subtests_pipe_sepr=$(echo "$subtests" | xargs | sed 's/ /|/g') mkdir -p /tmp/test-results/ - gotestsum -- -timeout=30m -tags integration ./test/integration/connect/envoy + gotestsum -- -timeout=30m -tags integration ./test/integration/connect/envoy -run="TestEnvoy/($subtests_pipe_sepr)" environment: GOTESTSUM_JUNITFILE: /tmp/test-results/results.xml GOTESTSUM_FORMAT: standard-verbose @@ -775,25 +780,19 @@ jobs: - run: *notify-slack-failure envoy-integration-test-1.14.5: - docker: - - image: *GOLANG_IMAGE + <<: *ENVOY_TESTS environment: ENVOY_VERSION: "1.14.5" - steps: *ENVOY_INTEGRATION_TEST_STEPS envoy-integration-test-1.15.2: - docker: - - image: *GOLANG_IMAGE + <<: *ENVOY_TESTS environment: ENVOY_VERSION: "1.15.2" - steps: *ENVOY_INTEGRATION_TEST_STEPS envoy-integration-test-1.16.0: - docker: - - image: *GOLANG_IMAGE + <<: *ENVOY_TESTS environment: ENVOY_VERSION: "1.16.0" - steps: *ENVOY_INTEGRATION_TEST_STEPS # run integration tests for the connect ca providers test-connect-ca-providers: