Skip to content

Commit

Permalink
Fix TestIMDSAuth test by increasing root volume size (#4781)
Browse files Browse the repository at this point in the history
The `TestIMDSAuth` was broken because the default 8GB root volume was
not enough anymore to fit pulumi and the aws provider.
This change fixes that.

Also adds disk cleaning to the upstream test steps

Fixes #4780
  • Loading branch information
flostadler authored Nov 15, 2024
1 parent d13c832 commit 754a01f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .ci-mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ extraTests:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
tool-cache: false
- name: Checkout Repo
uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ jobs:
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
tool-cache: false
- name: Checkout Repo
uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ jobs:
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
tool-cache: false
- name: Checkout Repo
uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ jobs:
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
tool-cache: false
- name: Checkout Repo
uses: actions/checkout@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ jobs:
name: Run test of provider shim
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
swap-storage: false
tool-cache: false
- name: Checkout Repo
uses: actions/checkout@v4
with:
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,7 @@ bin/pulumi-java-gen: .pulumi-java-gen.version
# - Run make ci-mgmt to apply the change locally.
#
ci-mgmt: .ci-mgmt.yaml
go run github.com/pulumi/ci-mgmt/provider-ci@master generate \
--name $(ORG)/pulumi-$(PACK) \
--out . \
--template bridged-provider \
--config $<
go run github.com/pulumi/ci-mgmt/provider-ci@master generate

# Because some codegen depends on the version of the CLI used, we install a local CLI
# version pinned to the same version as `provider/go.mod`.
Expand Down
2 changes: 2 additions & 0 deletions provider/test-programs/imds-auth/imds-v2/Pulumi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ resources:
httpPutResponseHopLimit: 1
vpcSecurityGroupIds:
- ${segroup}
rootBlockDevice:
volumeSize: 20
userData: |
#!/bin/bash
# Reconfigure SSHD - workaround for pulumi Command issues
Expand Down

0 comments on commit 754a01f

Please sign in to comment.