-
Notifications
You must be signed in to change notification settings - Fork 44
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
PF detailed diff #2629
PF detailed diff #2629
Conversation
This change is part of the following stack: Change managed by git-spice. |
50fdce9
to
74c623e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2629 +/- ##
==========================================
+ Coverage 69.39% 69.43% +0.04%
==========================================
Files 301 301
Lines 38560 38590 +30
==========================================
+ Hits 26759 26796 +37
+ Misses 10281 10270 -11
- Partials 1520 1524 +4 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
b677d0f
to
3d1d6b5
Compare
009000c
to
da9413d
Compare
3d1d6b5
to
e2a772c
Compare
da9413d
to
3dc7185
Compare
e2a772c
to
cdb2b0f
Compare
2321542
to
03b445c
Compare
cdb2b0f
to
b1a1cbf
Compare
03b445c
to
eb3e316
Compare
b1a1cbf
to
27b43ab
Compare
863540c
to
d55566a
Compare
27b43ab
to
906cb5a
Compare
d55566a
to
638dc4f
Compare
This change adds additional testing for Diff in PF for sets involving Computed. The following schemas are covered: - Set block with a Computed attribute - Set block with a Computed attribute and RequiresReplace on the non-computed attribute - Set block with a Computed attribute and RequiresReplace on the computed attribute - Set block with a Computed attribute and RequiresReplace on the block - Set block with a Computed attribute and no UseStateForUnknown on the Computed attribute For each of these we test both when the Computed attribute is specified in the program and when it is not. For each of these schemas we test the full set of scenarios added in #2592 This should give us some confidence that the changes we are making by adding Detailed Diff for PF are good for Computed properties. I will categorize all the issues here as a follow-up before merging #2629
906cb5a
to
f7fd6eb
Compare
fcc0655
to
529ed9e
Compare
f7fd6eb
to
0dac56b
Compare
52bf5ef
to
65bc464
Compare
0dac56b
to
72c930a
Compare
f8aba52
to
12bb0f7
Compare
81b7e10
to
33e32f7
Compare
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 #2629 The problem was that we were re-calculating the `diffs` and `replaces` keys for the GRPC Diff protocol in the `provider_server` implementation but also doing that incorrectly. Instead this change now makes `provider_server`'s `marshalDiff` just pass through the `diffs` and `replaces` which we have already calculated in https://github.com/pulumi/pulumi-terraform-bridge/blob/1d6b032f3e376af4667c6c4d80a65eff072df807/pkg/pf/tfbridge/provider_diff.go#L108-L109 fixes #2620
This reverts commit 0b4ed87bba2f3158c383fe9557feb69c141ff04e.
This reverts commit 529ed9e.
33e32f7
to
897bf79
Compare
This change adds recordings of the detailed diff sent to the engine to all Diff cross-tests in PF. This helps with spot-checking the results and troubleshooting issues. This comes after #2629 in order to reduce the noise in the change there.
This PR has been shipped in release v3.97.0. |
This change integrates the detailed diff v2 algorithm for the Plugin Framework bridge. This leads to better previews for many common operations.
Will follow-up on #2660 as the only regression compared to not computing the detailed diff in the bridge.
fixes #752
fixes #2647
fixes #2649
fixes #2650