Remove non-functional Terraform provider caching
Some checks failed
Code Quality & Security Scan / Terraform Init (push) Has started running
Code Quality & Security Scan / Terraform Apply (push) Has been cancelled
Code Quality & Security Scan / TFLint (push) Successful in 19s
Code Quality & Security Scan / Terraform Destroy (push) Has been skipped
Code Quality & Security Scan / Tfsec Security Scan (push) Successful in 22s
Code Quality & Security Scan / Checkov Security Scan (push) Successful in 34s
Code Quality & Security Scan / SonarQube Trigger (push) Successful in 47s

Issue:
- Cache steps were timing out after ~5 minutes with ETIMEDOUT errors
- Gitea Actions cache server not configured or not responding
- Connection attempts to 172.19.0.3:36175 failing
- Added 8-10 minutes of unnecessary delays to pipeline

Solution:
- Removed 'Cache Terraform Providers' step from terraform-init job
- Removed 'Restore Terraform Cache' step from terraform-apply job
- Terraform init will download providers fresh each time
- No performance degradation since cache was never working

Impact:
- Faster pipeline execution (removes timeout delays)
- No functional changes (cache was never successful)
- Apply job still independent and self-contained

Note: terraform-vsphere-network never had cache steps (copied before caching was added)
This commit is contained in:
Patrick de Ruiter 2025-11-02 13:13:31 +01:00
parent 656c78ebc8
commit 1a52e592e5
Signed by: pderuiter
GPG Key ID: 5EBA7F21CF583321

View File

@ -92,16 +92,6 @@ jobs:
with: with:
terraform_version: latest terraform_version: latest
- name: Cache Terraform Providers
uses: actions/cache@v3
with:
path: |
.terraform
.terraform.lock.hcl
key: terraform-${{ hashFiles('**/.terraform.lock.hcl') }}
restore-keys: |
terraform-
- name: Terraform Init - name: Terraform Init
env: env:
AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_ACCESS_KEY }} AWS_ACCESS_KEY_ID: ${{ secrets.MINIO_ACCESS_KEY }}
@ -178,16 +168,6 @@ jobs:
with: with:
terraform_version: latest terraform_version: latest
- name: Restore Terraform Cache
uses: actions/cache@v3
with:
path: |
.terraform
.terraform.lock.hcl
key: terraform-${{ hashFiles('**/.terraform.lock.hcl') }}
restore-keys: |
terraform-
- name: Install AWS CLI - name: Install AWS CLI
run: | run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"