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

Add pulumi state delete --target-dependents #11164

Merged
merged 1 commit into from Oct 27, 2022

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Oct 26, 2022

Fixes #8458

@iwahbe iwahbe self-assigned this Oct 26, 2022
@pulumi-bot
Copy link
Contributor

pulumi-bot commented Oct 26, 2022

Changelog

[uncommitted] (2022-10-27)

Features

  • [cli/state] Add the --target-dependents flag to pulumi state delete
    #11164

@iwahbe iwahbe force-pushed the iwahbe/8458/state-delete--target-dependents branch from d77d3b4 to 2d2c118 Compare October 26, 2022 23:53
Add comment + fix tests

We had two problems here.

1. Our graph rapid tests didn't encode the `includeChildren` flag as
transitive, which it should be. Looking at the call sites of
`DependingOn` confirms this.

2. `TestDeleteProtected` was sharing variables between threads (causing
flakey results). This was fixed.
@iwahbe iwahbe force-pushed the iwahbe/8458/state-delete--target-dependents branch from 38f1570 to 0582242 Compare October 27, 2022 18:24
@iwahbe
Copy link
Member Author

iwahbe commented Oct 27, 2022

bors r+

bors bot added a commit that referenced this pull request Oct 27, 2022
11164: Add `pulumi state delete --target-dependents` r=iwahbe a=iwahbe

Fixes #8458 

Co-authored-by: Ian Wahbe <ian@wahbe.com>
@bors
Copy link
Contributor

bors bot commented Oct 27, 2022

Build failed:

@iwahbe
Copy link
Member Author

iwahbe commented Oct 27, 2022

bors retry

@bors
Copy link
Contributor

bors bot commented Oct 27, 2022

Build succeeded:

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.

--target-dependents in pulumi state delete
4 participants