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

Move integration tests to ./tests #1490

Merged
merged 9 commits into from
Nov 14, 2024
Merged

Move integration tests to ./tests #1490

merged 9 commits into from
Nov 14, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Nov 14, 2024

This consolidates integration tests (currently located in ./examples and ./provider) under ./tests.

This is prep work for #1474, and the net result is a clearer distinction between "fast" and "slow" tests meant to be run during the "prerequisites" and "tests" steps in CI. Everything under ./provider can be considered "fast" and everything under ./tests can be considered "slow" and worthy of sharding.

Specifically:

  • Everything under ./examples/tests is moved to ./tests/testdata/programs as these were assumed to not be user-facing.
  • Upgrade tests under ./provider are also moved to ./tests but tagged in a way that they continue to run as their own job. (These are the new upgrade_test.go and validation_test.go files.)
  • examples/utils/utils.go moves to tests/internal/utils.
  • TestEksAuthModeUpgrade wasn't re-enabled as part of Re-Enable Upgrade tests #1387, so I re-enabled and re-recorded it.
  • go.mod is consolidated at the repo root to keep dependencies consistent across the provider and tests. (There are a ton of additional DX advantages to structuring things this way.) This project is not meant to be consumed as a library so this is an acceptable breaking change.

Copy link

Does the PR have any schema changes?

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

Comment on lines -170 to -172
test_build::
cd examples/utils/testvpc && yarn install && yarn run tsc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This directory doesn't exist.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch!

@blampe blampe changed the title [WIP] Move integration tests to ./tests Move integration tests to ./tests Nov 14, 2024
Copy link
Contributor

@flostadler flostadler left a comment

Choose a reason for hiding this comment

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

Sweat. Looks good to me!
And good catch with the upgrade test that was missed

@blampe blampe merged commit e666a6f into master Nov 14, 2024
36 checks passed
@blampe blampe deleted the blampe/upgrade-tests branch November 14, 2024 16:36
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.1.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