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

Fix diff logic for server-side apply mode #1679

Merged
merged 1 commit into from
Aug 19, 2021
Merged

Conversation

lblackstone
Copy link
Member

Proposed changes

Related issues (optional)

Fix #1667

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@mikhailshilkov
Copy link
Member

mikhailshilkov commented Aug 19, 2021

I think I understand the mechanics of the change but I'm missing the bigger picture. Could you give an example of why this is needed and how the merge fixes #1667? Any danger for regression in other diff scenarios that you can identify?

Copy link
Contributor

@viveklak viveklak 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. As an aside, we need to put some thought into making the provider a bit more independently testable. I don't think the integration testing framework allows validating diffs for instance.

@lblackstone
Copy link
Member Author

I think I understand the mechanics of the change but I'm missing the bigger picture. Could you give an example of why this is needed and how the merge fixes #1667? Any danger for regression in other diff scenarios that you can identify?

#1667 (comment) has some more details. The server-side diff computes a different patch than the client-side diff, which led to a bug in our replacement computation. By merging those patches (preferring the server-side changes), both of the changes are considered.

The default diff behavior (client-side diff) will not change, and I can't think of a reason why this would break the opt-in server-side diff either.

@lblackstone
Copy link
Member Author

As an aside, we need to put some thought into making the provider a bit more independently testable. I don't think the integration testing framework allows validating diffs for instance.

I agree. It seems like the diff computations are an area that could from some standardization across our native providers.

@lblackstone lblackstone merged commit bd2c26f into master Aug 19, 2021
@pulumi-bot pulumi-bot deleted the lblackstone/ss-diff branch August 19, 2021 16:06
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.

Secrets are updated not replaced
3 participants