-
Notifications
You must be signed in to change notification settings - Fork 43
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
Separate diff decision from presentation #2379
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2379 +/- ##
==========================================
- Coverage 57.44% 57.41% -0.03%
==========================================
Files 369 369
Lines 50189 50230 +41
==========================================
+ Hits 28831 28841 +10
- Misses 19779 19809 +30
- Partials 1579 1580 +1 ☔ View full report in Codecov by Sentry. |
I've added some nits on the code style but also a couple of higher level questions:
|
Hm, looking at this again, perhaps we can not merge this safely: This changes the Diff/NoDiff decision from being derived from the detailedDiff. I thought this only affected the workaround added in #1502 but it does have bigger implications - might be best to hold off here and merge as part of the bigger changes. |
On your questions:
Yeah, upon revisiting, this might not be safe to merge without a feature flag, will hold off.
Yeah, noticed it but it is out of scope for this PR - here I only wanted to separate the Diff/NoDiff decision from the detailed diff - the detailed diff issues should be addressed as part of #2294 |
I've added a feature flag for this, along with an env var for it. I'll set up CI to run with the feature flag so that we do not repeat mistakes from the PRC rollout |
Excellent, I was just jotting down a ticket to make tests go in a matrix fashion against the flag state space. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Very important piece for us.
This PR has been shipped in release v3.91.1. |
Adds a
DiffEqualDecisionOverride
to the shim layer which allows provider implementations to specify a diff decision instead of relying on the shim layer to do that.Also adds a
DiffEqualDecisionOverride
to the PRC sdkv2 implementation which opentofu does.Also adds a feature flag
EnableAccurateBridgePreview
which guards this feature.will fix once rolled out: #2293
will fix once rolled out: #1501
will undo once rolled out: #1502 as the underlying issue was fixed during the PRC work.
Stacked on #2380