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

Stop embedding bridge-metadata.json #3169

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Stop embedding bridge-metadata.json #3169

merged 3 commits into from
Dec 21, 2023

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Dec 20, 2023

At this point bridge-metadata.json is a compile-time only concern as it is not needed at runtime at all. This PR makes the change obvious and stops embedding it. This should help the binary size a bit, possibly to the tune of 30MB (uncompressed):

31M provider/cmd/pulumi-resource-aws/bridge-metadata.json
88K provider/cmd/pulumi-resource-aws/runtime-bridge-metadata.json

Only runtime-bridge-metadata.json is currently needed.

At this point bridge-metadata.json is a compile-time only concern as it is not needed at runtime at
all. This PR makes the change obvious and stops embedding it. This should help the binary size a
bit, possibly to the tune of 30MB (uncompressed):

 31M    provider/cmd/pulumi-resource-aws/bridge-metadata.json
 88K    provider/cmd/pulumi-resource-aws/runtime-bridge-metadata.json

Only runtime-bridge-metadata.json is currently needed.
@t0yv0 t0yv0 requested a review from iwahbe December 20, 2023 21:42
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

Looks good.

@t0yv0
Copy link
Member Author

t0yv0 commented Dec 20, 2023

Ah of course need to fix some tests here.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8fdc0c3) 0.00% compared to head (2a885f2) 0.00%.
Report is 1 commits behind head on master.

❗ Current head 2a885f2 differs from pull request most recent head 4c70d38. Consider uploading reports for the commit 4c70d38 to get more accurate results

Additional details and impacted files
@@      Coverage Diff       @@
##   master   #3169   +/-   ##
==============================
==============================

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

Copy link

Does the PR have any schema changes?

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@t0yv0 t0yv0 merged commit 6a43815 into master Dec 21, 2023
18 checks passed
@t0yv0 t0yv0 deleted the t0yv0/embed-less-json branch December 21, 2023 22:02
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.

2 participants