Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify OIDC extraTest #4909

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Simplify OIDC extraTest #4909

merged 2 commits into from
Dec 12, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Dec 11, 2024

Today TestAccCloudWatch and TestAccCloudWatchOidcManual are each executed twice. Once as part of the test (nodejs, local) (examples) job, and again as part of the test_oidc job defined in extraTests.

The test_oidc job executes TestAccCloudWatchOidcManual without any ambient AWS credentials, and then TestAccCloudWatch after assuming OIDC_ROLE_ARN.

This PR removes the extra test_oidc job by incorporating these tests into the usual examples job.

  • TestAccCloudWatch and TestAccCloudWatchOIDCAmbient preserve the existing behavior of running these using the ambient credentials from the examples job. (Do we want to keep this?)
  • TestAccCloudWatchOIDCManual and TestAccCloudWatchOIDC preserving the test_oidc behavior by running without ambient credentials and after assuming OIDC_ROLE_ARN, respectively.

Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

Copy link
Contributor

@corymhall corymhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this is better!

@blampe blampe enabled auto-merge December 11, 2024 22:35
@blampe blampe merged commit e1ae150 into master Dec 12, 2024
30 checks passed
@blampe blampe deleted the blampe/extra-tests branch December 12, 2024 00:16
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (88369b2) to head (2c34100).
Report is 3 commits behind head on master.

Additional details and impacted files
@@      Coverage Diff       @@
##   master   #4909   +/-   ##
==============================
==============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

github-merge-queue bot pushed a commit to pulumi/ci-mgmt that referenced this pull request Dec 12, 2024
* Updates `test-provider/aws/.ci-mgmt.yaml` to what's currently
checked-in.
* Consolidates test jobs into a shared workflow using
`run-acceptance-tests` as the starting point.

`extraTests` are included in the shared workflow mostly for simplicity.
This will break aws because those tests will specify `needs:` that are
no longer valid. We can fix that manually or just remove these extra
tests (pulumi/pulumi-aws#4910,
pulumi/pulumi-aws#4909).

No special treatment is given to TestPulumiExamples. We're not using
this outside of azure-native, and it should really just be treated like
any other integration test
#1211. If we don't want these
tests to run in certain workflows then we should expose some info to let
them `t.Skip` themselves.

Fixes #1034
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v6.65.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants