Skip to content

Commit 49ace79

Browse files
authored
Set PULUMI_HOME for test env (#1801)
The providertest library currently [requires that plugins be installed to the default PULUMI_HOME](https://github.com/pulumi/providertest/blob/de729147b25ed68f54a5b35cd0c013d75d7c13c7/providers/downloadPluginBinary.go#L33-L36) (i.e. `$HOME/.pulumi`). This PR overrides the PULUMI_HOME env var in the mise `test` env which is active when acceptance tests are run. Tested this out in [pulumi-tls](https://github.com/pulumi/pulumi-tls/actions/runs/18874882199/job/53862290778?pr=878)
1 parent 7a0338c commit 49ace79

File tree

16 files changed

+80
-16
lines changed

16 files changed

+80
-16
lines changed

provider-ci/internal/pkg/templates/all/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/acme/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/aws-native/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/aws/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/cloudflare/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/command/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/docker-build/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/docker/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/eks/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

provider-ci/test-providers/kubernetes-cert-manager/.config/mise.test.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
22

3-
# Overrides tool versions for test workflows
3+
# Overrides for test workflows
4+
5+
[env]
6+
# Acceptance (specifically providertest) tests require that PULUMI_HOME be the default
7+
PULUMI_HOME = "{{ env.HOME }}/.pulumi"
48

59
[tools]
610
# always use pulumi latest for tests

0 commit comments

Comments
 (0)