Closed VenelinMartinov closed 17 hours ago
Attention: Patch coverage is 61.76471%
with 13 lines
in your changes missing coverage. Please review.
Project coverage is 69.39%. Comparing base (
bc33162
) to head (12bb0f7
). Report is 1 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
pkg/pf/internal/plugin/provider_server.go | 61.76% | 13 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
We already have changes to our copy, so resolving the divergence is out of scope here. Getting rid of our copy is blocked on the config encoding work. The upstream copy does not seem to work correctly for the detailed diff either but is only used in tests.
EDIT: Added some unit tests. The tests in https://github.com/pulumi/pulumi-terraform-bridge/pull/2629 should add quite broad coverage here. I have separated this into a different PR to make reviewing easier.
Very surprised but this seems to hold?
https://github.com/search?q=org%3Apulumi%20plugin.NewProviderServer&type=code
Looks like these are mostly non-production uses.
Can you point out which line had the bug you're fixing? Very non-obvious.
I'm inclined to get this in given your finding that this Core code is not in prod anywhere. We need to maintain a working copy then. Oof. Please address the enum cast concern the rest are nits.
This change fixes an issue with the
provider_server
implementation's detailed diff handling. Previously passing a detailed diff to it would result in the previews being deleted. This is tested as part of https://github.com/pulumi/pulumi-terraform-bridge/pull/2629The problem was that we were re-calculating the
diffs
andreplaces
keys for the GRPC Diff protocol in theprovider_server
implementation but also doing that incorrectly. Instead this change now makesprovider_server
'smarshalDiff
just pass through thediffs
andreplaces
which we have already calculated in https://github.com/pulumi/pulumi-terraform-bridge/blob/1d6b032f3e376af4667c6c4d80a65eff072df807/pkg/pf/tfbridge/provider_diff.go#L108-L109fixes https://github.com/pulumi/pulumi-terraform-bridge/issues/2620