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

[codegen/python] emit pulumiplugin.json by default #8527

Merged
merged 5 commits into from Dec 2, 2021

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Dec 2, 2021

Description

Remove the flag that makes pulumiplugin.json optional. We will now emit unconditionally.

Fixes #8526

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@iwahbe iwahbe requested review from justinvp and a team December 2, 2021 00:02
@iwahbe iwahbe self-assigned this Dec 2, 2021
@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azuread with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-random with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-random with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azuread with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-kubernetes with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-kubernetes with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-gcp with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-gcp with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-aws with merge commit 8c49262

Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1941,15 +1941,14 @@ func genPulumiPluginFile(pkg *schema.Package) ([]byte, error) {
plugin := &plugin.PulumiPluginJSON{
Resource: true,
Name: pkg.Name,
Version: "${PLUGIN_VERSION}",
Copy link
Member

@justinvp justinvp Dec 2, 2021

Choose a reason for hiding this comment

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

Nice. I like this. Now, when this codegen change is adopted by the providers we aren't forced to make a change to the Makefile to search/replace this value. We can do it at our leisure. And we can use jq to add the version property.

I do think we'll end up wanting to update our provider Makefiles to do this, because it'll fix being able to automatically download plugins for dev builds of the package, but that's not a huge priority.

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-aws with merge commit 90c0665

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #8527 (0e08378) into master (a79a759) will increase coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8527      +/-   ##
==========================================
+ Coverage   58.59%   58.61%   +0.02%     
==========================================
  Files         634      634              
  Lines       96844    96843       -1     
  Branches     1378     1378              
==========================================
+ Hits        56744    56769      +25     
+ Misses      36831    36804      -27     
- Partials     3269     3270       +1     
Impacted Files Coverage Δ
pkg/codegen/python/importer.go 30.00% <ø> (ø)
pkg/codegen/python/gen.go 82.81% <71.42%> (+0.63%) ⬆️
sdk/go/common/resource/plugin/plugin.go 65.25% <100.00%> (ø)
...k/dotnet/Pulumi/Deployment/TaskMonitoringHelper.cs 96.29% <0.00%> (-3.71%) ⬇️
sdk/nodejs/automation/localWorkspace.ts 74.03% <0.00%> (+0.38%) ⬆️
sdk/go/common/util/ciutil/github_actions.go 73.52% <0.00%> (+38.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a79a759...0e08378. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure-native with merge commit 8c49262

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure-native with merge commit 90c0665

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-random with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azuread with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-kubernetes with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-gcp with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-aws with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure with merge commit 417a7e6

@github-actions
Copy link

github-actions bot commented Dec 2, 2021

Diff for pulumi-azure-native with merge commit 417a7e6

@iwahbe iwahbe merged commit eb735c7 into master Dec 2, 2021
@pulumi-bot pulumi-bot deleted the iwahbe/8526/python-emit-pulumiplugin-by-default branch December 2, 2021 02:07
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.

[codegen/python] Emit pulumiplugin.json by default.
2 participants