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

Remove vendored plugin server #2410

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Remove vendored plugin server #2410

merged 1 commit into from
Sep 11, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Sep 11, 2024

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):

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.
@iwahbe iwahbe self-assigned this Sep 11, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 0% with 31 lines in your changes missing coverage. Please review.

Project coverage is 57.65%. Comparing base (69fe479) to head (dd6e8bc).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pf/internal/plugin/provider_server.go 0.00% 28 Missing ⚠️
pf/internal/plugin/provider_context.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2410      +/-   ##
==========================================
+ Coverage   57.10%   57.65%   +0.55%     
==========================================
  Files         369      369              
  Lines       50593    50110     -483     
==========================================
  Hits        28893    28893              
+ Misses      20123    19638     -485     
- Partials     1577     1579       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@VenelinMartinov VenelinMartinov left a comment

Choose a reason for hiding this comment

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

LGTM - would be good to test with a PF provider and/or a dynamically bridged one

@VenelinMartinov
Copy link
Contributor

You've hit pulumi/pulumi#14240

@iwahbe
Copy link
Member Author

iwahbe commented Sep 11, 2024

I'm opening up test PRs in gcp and random. If work as expected, then I'll merge.

Dynamic bridged providers layer on top of PF, so I don't think they need explicit testing.

@iwahbe iwahbe merged commit fbc2abd into master Sep 11, 2024
11 checks passed
@iwahbe iwahbe deleted the iwahbe/remove-vendored-plugin branch September 11, 2024 15:51
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.91.0.

@t0yv0
Copy link
Member

t0yv0 commented Sep 20, 2024

Very nice cleanup here thank you.

guineveresaenger added a commit that referenced this pull request Sep 24, 2024
Reverts #2410

---------

Co-authored-by: guineveresaenger <guinevere@pulumi.com>
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.

4 participants