-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix attach to enable PULUMI_DEBUG_PROVIDERS #1716
Conversation
"github.com/pulumi/providertest/pulumitest/opttest" | ||
) | ||
|
||
func TestAttach(t *testing.T) { |
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.
This is currently failing due to the problem with YAML not supporting PULUMI_DEBUG_PROVIDERS. It should work once pulumi/pulumi#15526 is finalized and propagated to pulumi-yaml
I can probably check this in with a test skip until we sort out the dependency, WDYT? |
I'm happy with that - seems unlikely to affect any production code |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1716 +/- ##
==========================================
- Coverage 59.74% 59.19% -0.55%
==========================================
Files 300 308 +8
Lines 42025 42412 +387
==========================================
- Hits 25109 25107 -2
- Misses 15482 15871 +389
Partials 1434 1434 ☔ View full report in Codecov by Sentry. |
What can this possibly be. |
With these change providers based on Plugin Framework as well as muxed providers that utilize Plugin Framework for a subset of their resources gain support for the PULUMI_DEBUG_PROVIDERS env var. For example, this will now work: # Start an AWS provider process, allowing to attach a debugger $ pulumi-resource-aws 12345 # Instruct Pulumi to connect to the provider process instead of starting a new one PULUMI_DEBUG_PROVIDERS=aws:12345 pulumi up
As part of #2148, this PR removes the duplicate implementation of `pulumigrpc.ResourceProviderServer` copied over from pulumi/pulumi and then modified. This is a post #2258 version of #2195, and is much less invasive. Addressing previous edits in response to #2195 (comment): - #1716: This change accommodated for a previous edit (`ProviderWithContext`) and is no longer necessary. That said, the tests it introduced are still present (and continue to pass), so we are sure this commit did not break the functionality. - #1683: Simply brings DiffConfig into line with pu/pu, which we get for free by not vendoring. - #1047: This is still handled in `provider_server.go`, and is still under test. - #1065: This has already been moved out of this area in #2258, so it is no longer relevant here.
As part of #2148, this PR removes the duplicate implementation of `pulumigrpc.ResourceProviderServer` copied over from pulumi/pulumi and then modified. This is a post #2258 version of #2195, and is much less invasive. Addressing previous edits in response to #2195 (comment): - #1716: This change accommodated for a previous edit (`ProviderWithContext`) and is no longer necessary. That said, the tests it introduced are still present (and continue to pass), so we are sure this commit did not break the functionality. - #1683: Simply brings DiffConfig into line with pu/pu, which we get for free by not vendoring. - #1047: This is still handled in `provider_server.go`, and is still under test. - #1065: This has already been moved out of this area in #2258, so it is no longer relevant here.
Due to a small omission PULUMI_DEBUG_PROVIDERS did not work before this change with providers utilizing Plugin Framework, which includes GCP and AWS. It now works.