diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 62b5facdc..cab7d9029 100644 --- a/build/int.cloudbuild.yaml +++ b/build/int.cloudbuild.yaml @@ -14,20 +14,6 @@ timeout: 14400s steps: -- id: prune unchanged directories - name: gcr.io/cloud-builders/git - entrypoint: bash - args: - - -c - - | - git fetch --unshallow - git diff origin/${_BASE_BRANCH} --name-only > _changed_files - sed 's/\/.*/\//' _changed_files > _changed_folders - for d in */; do - if ! grep -q "^$d" _changed_folders && [[ "$d" != "test/" ]]; then - rm -rf $d; - fi - done - id: prepare name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment'] @@ -71,3 +57,5 @@ tags: substitutions: _DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools' _DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1' +options: + machineType: E2_HIGHCPU_32 diff --git a/test/integration/sample_test.go b/test/integration/sample_test.go index e4969768f..2f5635065 100644 --- a/test/integration/sample_test.go +++ b/test/integration/sample_test.go @@ -82,6 +82,13 @@ func TestSamples(t *testing.T) { tft.WithSetupPath(setupPath), tft.WithRetryableTerraformErrors(retryErrors, 10, time.Minute), ) + + sampleTest.DefineInit(func(a *assert.Assertions) { + sampleTest.DefaultInit(a) + + // run tests in parallel upto GOMAXPROCS + b.t.Parallel() + }) sampleTest.DefineVerify(func(a *assert.Assertions) {}) sampleTest.Test() t.Logf("Test %s completed in %s project", sampleName, tg.projectID)