From 91b46e5a4cbd60c699b038b5a2d8b5831562a370 Mon Sep 17 00:00:00 2001 From: zjhe Date: Mon, 4 Dec 2023 10:00:12 +0800 Subject: [PATCH] make e2e tests parallel --- .github/workflows/weekly-e2e.yaml | 2 +- test/e2e/quickstart_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weekly-e2e.yaml b/.github/workflows/weekly-e2e.yaml index 4392e860..3db97be5 100644 --- a/.github/workflows/weekly-e2e.yaml +++ b/.github/workflows/weekly-e2e.yaml @@ -21,7 +21,7 @@ jobs: az login --identity --username $MSI_ID > /dev/null export ARM_SUBSCRIPTION_ID=$(az login --identity --username $MSI_ID | jq -r '.[0] | .id') export ARM_TENANT_ID=$(az login --identity --username $MSI_ID | jq -r '.[0] | .tenantId') - docker run --rm -v $(pwd):/src -w /src/test -e MSI_ID -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_USE_MSI=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform sh -c "go mod tidy && go test -timeout=1440m -v ./e2e" + docker run --rm -v $(pwd):/src -w /src/test -e MSI_ID -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_USE_MSI=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform sh -c "go mod tidy && go test -timeout=1440m -parallel 10 -v ./e2e" - name: Update run: | docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform sh scripts/update-test-record.sh diff --git a/test/e2e/quickstart_test.go b/test/e2e/quickstart_test.go index 691995a3..a00e2547 100644 --- a/test/e2e/quickstart_test.go +++ b/test/e2e/quickstart_test.go @@ -23,6 +23,7 @@ var speicalTests = map[string]func(*testing.T){ } func Test_Quickstarts(t *testing.T) { + t.Parallel() msiId := os.Getenv("MSI_ID") if msiId != "" { _ = os.Setenv("TF_VAR_msi_id", msiId)