From c4b788970f40627b659453e4b0b3e7397ea41a76 Mon Sep 17 00:00:00 2001 From: Ludo Date: Fri, 14 Oct 2022 19:39:12 +0200 Subject: [PATCH] disable parallel execution of tests and plugin cache --- .github/workflows/tests.yml | 44 ++++--------------------------------- default-versions.tf | 12 ++-------- 2 files changed, 6 insertions(+), 50 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 114f04fde4..2a90352531 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,15 +54,6 @@ jobs: terraform_version: ${{ env.TF_VERSION }} terraform_wrapper: false - - name: Config Terraform plugin cache - run: | - echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc - mkdir --parents ~/.terraform.d/plugin-cache - - - name: Initialize providers - run: | - terraform init - # avoid conflicts with user-installed providers on local machines - name: Pin provider versions run: | @@ -75,7 +66,7 @@ jobs: run: | mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }} pip install -r tests/requirements.txt - pytest -vv --numprocesses auto --dist loadgroup tests/examples + pytest -vv tests/examples examples: runs-on: ubuntu-latest @@ -98,15 +89,6 @@ jobs: terraform_version: ${{ env.TF_VERSION }} terraform_wrapper: false - - name: Config Terraform plugin cache - run: | - echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc - mkdir --parents ~/.terraform.d/plugin-cache - - - name: Initialize providers - run: | - terraform init - # avoid conflicts with user-installed providers on local machines - name: Pin provider versions run: | @@ -119,7 +101,7 @@ jobs: run: | mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }} pip install -r tests/requirements.txt - pytest -vv --numprocesses auto --dist loadgroup tests/blueprints + pytest -vv tests/blueprints modules: runs-on: ubuntu-latest @@ -142,15 +124,6 @@ jobs: terraform_version: ${{ env.TF_VERSION }} terraform_wrapper: false - - name: Config Terraform plugin cache - run: | - echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc - mkdir --parents ~/.terraform.d/plugin-cache - - - name: Initialize providers - run: | - terraform init - # avoid conflicts with user-installed providers on local machines - name: Pin provider versions run: | @@ -163,7 +136,7 @@ jobs: run: | mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }} pip install -r tests/requirements.txt - pytest -vv --numprocesses auto --dist loadgroup tests/modules + pytest -vv tests/modules fast: runs-on: ubuntu-latest @@ -186,15 +159,6 @@ jobs: terraform_version: ${{ env.TF_VERSION }} terraform_wrapper: false - - name: Config Terraform plugin cache - run: | - echo 'plugin_cache_dir="$HOME/.terraform.d/plugin-cache"' >~/.terraformrc - mkdir --parents ~/.terraform.d/plugin-cache - - - name: Initialize providers - run: | - terraform init - # avoid conflicts with user-installed providers on local machines - name: Pin provider versions run: | @@ -207,4 +171,4 @@ jobs: run: | mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }} pip install -r tests/requirements.txt - pytest -vv --numprocesses auto --dist loadgroup tests/fast + pytest -vv tests/fast diff --git a/default-versions.tf b/default-versions.tf index ab57f9e93d..6862241d12 100644 --- a/default-versions.tf +++ b/default-versions.tf @@ -17,19 +17,11 @@ terraform { required_providers { google = { source = "hashicorp/google" - version = ">= 4.36.0" # tftest + version = ">= 4.36.0" } google-beta = { source = "hashicorp/google-beta" - version = ">= 4.36.0" # tftest - } - # used in modules - archive = { - source = "hashicorp/archive" - } - # used in fast - local = { - source = "hashicorp/local" + version = ">= 4.36.0" } } }