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

Do not execute pending deletes at the start of deployment #11027

Merged
merged 1 commit into from Nov 1, 2022

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Oct 14, 2022

Description

This removes all the handling of pending deletes from the start of deployments. Instead we allow resources to just be deleted as they usually would at the end of the deployment.

There's a big comment in TestPendingDeleteOrder that explains the order of operations in a succesful run and how that order differs if we try and do pending deletes up-front.

Fixes #2948

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@pulumi-bot
Copy link
Contributor

pulumi-bot commented Oct 14, 2022

Changelog

[uncommitted] (2022-10-14)

Bug Fixes

  • [engine] Pending deletes are no longer executed before everything else. This correctly handles dependencies for resource graphs that were partially deleted.
    #11027

@Frassle
Copy link
Member Author

Frassle commented Oct 14, 2022

bors try

bors bot added a commit that referenced this pull request Oct 14, 2022
This removes all the handling of pending deletes from the start of
deployments. Instead we allow resources to just be deleted as they
usually would at the end of the deployment.

There's a big comment in TestPendingDeleteOrder that explains the order
of operations in a succesful run and how that order differs if we try
and do pending deletes up-front.

Fixes #2948
@bors
Copy link
Contributor

bors bot commented Oct 14, 2022

try

Timed out.

@Frassle Frassle mentioned this pull request Oct 30, 2022
3 tasks
Copy link
Contributor

@Zaid-Ajaj Zaid-Ajaj left a comment

Choose a reason for hiding this comment

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

Going through the test case again and the explanation, I think the simplified steps are reasonable and it is not obvious how to break it with a counter test case

@Frassle
Copy link
Member Author

Frassle commented Nov 1, 2022

bors merge

@bors
Copy link
Contributor

bors bot commented Nov 1, 2022

Build succeeded:

@bors bors bot merged commit 1ccfa9f into master Nov 1, 2022
@bors bors bot deleted the fraser/pendingDeletes branch November 1, 2022 10:53
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.

Deleting pendingDeletes at beginning of deployment leads to stuck states
3 participants