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

Refined ProposedNew #703

Merged
merged 3 commits into from
Jan 20, 2023
Merged

Refined ProposedNew #703

merged 3 commits into from
Jan 20, 2023

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Dec 19, 2022

When testing the TLS provider, the bridge failed to create resources that are both Computed and Optional at the same time. There was a bit of a rabbit hole with the ProposedNew calculation, the PR updates links to the likely reference source in TF. Unfortunately there's a bit of complexity there about merging priorStateValue and configValue in the Computed+Optional case, merging is recursive.

What I ended up going with is porting test cases from a likely reference TF implementation (cross-linked) and refining the current implementation to pass the test cases. There's still possibility that the implementations diverge in corner cases not covered by the test suite, but this should be good enough for many cases - hitting diminishing returns. If we have more bug reports stating discrepancy might be worth to rewrite the ProposedNew again but as a direct port of the reference code (structurally matching).

@github-actions
Copy link

Diff for pulumi-random with merge commit 1615e2e

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 1615e2e

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 1615e2e

@github-actions
Copy link

Diff for pulumi-azure with merge commit 1615e2e

@github-actions
Copy link

Diff for pulumi-aws with merge commit 1615e2e

@t0yv0 t0yv0 force-pushed the t0yv0/objchange-proposed-new branch from 644c5a1 to c49f556 Compare December 20, 2022 22:21
@github-actions
Copy link

Diff for pulumi-random with merge commit 1938ae7

@t0yv0 t0yv0 marked this pull request as ready for review December 20, 2022 22:26
@github-actions
Copy link

Diff for pulumi-azuread with merge commit 1938ae7

@github-actions
Copy link

Diff for pulumi-gcp with merge commit 1938ae7

@github-actions
Copy link

Diff for pulumi-azure with merge commit 1938ae7

@github-actions
Copy link

Diff for pulumi-aws with merge commit 1938ae7

@github-actions
Copy link

Diff for pulumi-azuread with merge commit 586be32

@github-actions
Copy link

Diff for pulumi-random with merge commit 586be32

@github-actions
Copy link

Diff for pulumi-azure with merge commit 586be32

@github-actions
Copy link

Diff for pulumi-aws with merge commit 586be32

@t0yv0 t0yv0 requested review from jazzyfresh and removed request for danielrbradley and roothorp January 13, 2023 00:00
Base automatically changed from t0yv0/tfpf-recognize-blocks to t0yv0/tfpf-stubs January 20, 2023 02:34
@t0yv0 t0yv0 merged commit a0bf21b into t0yv0/tfpf-stubs Jan 20, 2023
@t0yv0 t0yv0 deleted the t0yv0/objchange-proposed-new branch January 20, 2023 02:42
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