-
Notifications
You must be signed in to change notification settings - Fork 50
Improve test isolation for TestTranslateCodeBlocks #2981
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
Conversation
…and trips up the converter
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2981 +/- ##
==========================================
+ Coverage 68.30% 68.48% +0.18%
==========================================
Files 330 334 +4
Lines 42108 43212 +1104
==========================================
+ Hits 28761 29593 +832
- Misses 11766 11963 +197
- Partials 1581 1656 +75 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Feel free to check this in but this does not fix 2974 as in principle we still have test isolation issues that can surface is that correct? |
|
You're right, this PR is mainly a response to changes in the converter, which add additional network calls when encountering a Going to add my thoughts on #2974 over there - had a few thoughts. |
|
Another source of confusion and problem in this test case is Should be probably this: As it thinks provider-simple is very different from the one needed for simple_ resources. |
|
It would be great to understand what this fixes, and possibly take this as an improvement but pulumi/pulumi-converter-terraform#319 remains a problem as of this morning: The test is not isolated as it auto-installs the converter at latest version. Am I perhaps running this wrong? |
|
Hm 🤔 - this test should now be exactly as isolated as I'm not sure that it is a significant problem anymore though - the test will not attempt to install the latest converter, and instead abide by the converter version specified in Make. So if tests are run via Make, which is what CI uses, this should be OK. |
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.
If it's isolated in CI that's probably good enough for now.. Sounds like the installation of a concrete version is pinned in Makefile. I'd like to fix someday so that the tests could be invoked directly through Go w/o Makefile.
This pull request fixes up
TestTranslateCodeBlocks:simple).required_providerssection as unnecessaryAs a result of pulumi/pulumi-converter-terraform#319, which is now in use by the bridge, we also no longer download the terraform-provider for a nonexisting provider.
Fixes #2974