Skip to content

Conversation

@justinvp
Copy link
Member

There are currently two envvars that are used to specify an Pulumi Service org for tests:

  1. The automation API tests look for the PULUMI_TEST_ORG envvar and fallback to using the pulumi-test org when the envvar isn't set. We're not currently setting PULUMI_TEST_ORG in the GHA workflows like we do in pulumi/pulumi, so presumably the automation API tests are using the pulumi-test org fallback.
  2. There's also a PULUMI_TEST_OWNER envvar that some of the integration tests uses. We are currently setting PULUMI_TEST_OWNER to moolumi.

This change updates the automation API tests to first look for the PULUMI_TEST_OWNER envvar, falling back to PULUMI_TEST_ORG, and then finally pulumi-test. That way, we only need to have a single consistent envvar set in CI (PULUMI_TEST_OWNER), set to moolumi, which is the org we want to use for these tests.

PULUMI_TEST_OWNER was chosen over PULUMI_TEST_ORG because PULUMI_TEST_OWNER is also used in the Go integration test framework.

There are currently two envvars that are used to specify an Pulumi Service org for tests:

1. The automation API tests look for the `PULUMI_TEST_ORG` envvar and fallback to using the `pulumi-test` org when the envvar isn't set. We're not currently setting `PULUMI_TEST_ORG` in the GHA workflows like we do in `pulumi/pulumi`, so presumably the automation API tests are using the `pulumi-test` org fallback.
2. There's also a `PULUMI_TEST_OWNER` envvar that some of the integration tests uses. We are currently setting `PULUMI_TEST_OWNER` to `moolumi`.

This change updates the automation API tests to first look for the `PULUMI_TEST_OWNER` envvar, falling back to `PULUMI_TEST_ORG`, and then finally `pulumi-test`. That way, we only need to have a single consistent envvar set in CI (`PULUMI_TEST_OWNER`), set to `moolumi`, which is the org we want to use for these tests.

`PULUMI_TEST_OWNER` was chosen over `PULUMI_TEST_ORG` because `PULUMI_TEST_OWNER` is also used in the Go integration test framework.
@justinvp justinvp added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Jan 31, 2023
@justinvp justinvp requested review from Frassle and Zaid-Ajaj January 31, 2023 02:19
@Frassle
Copy link
Member

Frassle commented Jan 31, 2023

PULUMI_TEST_OWNER was chosen over PULUMI_TEST_ORG because PULUMI_TEST_OWNER is also used in the Go integration test framework.

Do we consistently use the "owner" terminology for orgs everywhere else? I'd think trying to get everything consistently using "PULUMI_TEST_ORG" would be more understandable?

@Frassle Frassle enabled auto-merge December 14, 2023 22:11
@Frassle Frassle disabled auto-merge December 14, 2023 22:12
@brandonpollack23 brandonpollack23 requested a review from a team as a code owner May 20, 2025 11:52
@tgummerer
Copy link
Contributor

I think PULUMI_TEST_ORG is more commonly used in pulumi/pulumi, so I'd also argue for standardizing on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact/no-changelog-required This issue doesn't require a CHANGELOG update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants