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

Enable PRC by default #2380

Merged
merged 43 commits into from
Sep 19, 2024
Merged

Enable PRC by default #2380

merged 43 commits into from
Sep 19, 2024

Conversation

VenelinMartinov
Copy link
Contributor

@VenelinMartinov VenelinMartinov commented Aug 30, 2024

This PR enables PlanResourceChange by default in the bridge. A bunch of tests had to be fixed up to work with PRC.

fixes #1785

@VenelinMartinov VenelinMartinov changed the base branch from master to vvm/collection_only_detailed_diff_cross_test August 30, 2024 14:16
pkg/tests/regress_1020_test.go Show resolved Hide resolved
pkg/tfbridge/diff_test.go Show resolved Hide resolved
pkg/tfbridge/tests/provider_test.go Show resolved Hide resolved
@VenelinMartinov VenelinMartinov changed the title PRC cleanup Enable PRC by default Sep 17, 2024
@VenelinMartinov VenelinMartinov marked this pull request as ready for review September 17, 2024 17:19
@t0yv0
Copy link
Member

t0yv0 commented Sep 18, 2024

Thanks for cleaning up the test suite! Mostly looking good, I had a few questions on the removed tests.

}

t.Run("PRC enabled", func(t *testing.T) {
// TODO[pulumi/pulumi-terraform-bridge#2428]: Incorrect detailed diff with unknown elements
Copy link
Member

Choose a reason for hiding this comment

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

THank you!

pkg/tfbridge/diff_test.go Outdated Show resolved Hide resolved
@t0yv0 t0yv0 self-requested a review September 19, 2024 13:29
Copy link
Member

@t0yv0 t0yv0 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, thank you so much!

@VenelinMartinov VenelinMartinov enabled auto-merge (squash) September 19, 2024 13:31
@VenelinMartinov VenelinMartinov merged commit be3b5e6 into master Sep 19, 2024
11 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/PRC_cleanup branch September 19, 2024 13:48
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.91.0.

VenelinMartinov added a commit that referenced this pull request Sep 20, 2024
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
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.

[EPIC] Rollout PlanResourceChange
3 participants