-
Notifications
You must be signed in to change notification settings - Fork 156
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
Consolidate integration tests #4910
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I find it a bit odd that we put the tests (i.e. go files) into the examples/
directory. Couldn't we do the same thing we did for EKS and put all the testdata and programs into provider
and reference the example programs from there?
Not blocking on this though. This change is a great improvement!
@flostadler good questions!
Yeah,
It doesn't matter where the integration tests live -- we currently hard-code it to examples but that will be configurable after pulumi/ci-mgmt#1217. So if you want integration tests to live under However I would add that for simplicity it's a good idea to keep slower-running integration tests separate from unit tests. So for example if unit tests live under I should mention another (self-inflicted) reason for putting integration tests under Finally I'll also add that after we stop sharding by language it will no longer be necessary to need build tags on your integration tests, which gives you a much nicer developer experience when you need to touch them. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4910 +/- ##
==============================
==============================
☔ View full report in Codecov by Sentry. |
* 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
This PR has been shipped in release v6.65.0. |
This moves integration tests currently under
provider
into theexamples
directory, and removesprovider_test
defined inextraTests
.These integration tests will now benefit from pulumi/ci-mgmt#1033 as a result, and #4911 is no longer necessary.