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

Ensure NotYetImplemented warnings are errors #1733

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Mar 5, 2024

During HCL->PCL conversion, the converter may emit not-yet-implemented code and warn about it. For the use case in the bridge, it is better to reject such examples completely than warn about them. This changes accomplishes the dropout of affected examples indirectly.

Effect on GCP: pulumi/pulumi-gcp#1787
Effect on Azure: pulumi/pulumi-azure#1829
Effect on AWS: pulumi/pulumi-aws#3576

Fixes #1732

During HCL->PCL conversion, the converter may emit not-yet-implemented code and warn about it. For
the use case in the bridge, it is better to reject such examples completely than warn about them.
This changes accomplishes the dropout of affected examples indirectly.
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 60.92%. Comparing base (d10e056) to head (3d55ba4).
Report is 2 commits behind head on master.

Files Patch % Lines
pkg/tfgen/convert_cli.go 73.33% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1733      +/-   ##
==========================================
+ Coverage   59.72%   60.92%   +1.20%     
==========================================
  Files         301      307       +6     
  Lines       42034    35323    -6711     
==========================================
- Hits        25104    21520    -3584     
+ Misses      15495    12369    -3126     
+ Partials     1435     1434       -1     

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

@t0yv0 t0yv0 marked this pull request as ready for review March 6, 2024 18:18
@t0yv0 t0yv0 enabled auto-merge (squash) March 6, 2024 18:19
@t0yv0 t0yv0 merged commit 4fba355 into master Mar 6, 2024
9 checks passed
@t0yv0 t0yv0 deleted the t0yv0/promote-nyi-warnings-to-error branch March 6, 2024 18:31
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.

Drop examples containing NotImplemented calls
2 participants