-
Notifications
You must be signed in to change notification settings - Fork 125
Reverse dependency order for delete operations in direct engine #4105
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
Reverse dependency order for delete operations in direct engine #4105
Conversation
d6ebbc5 to
2042b3a
Compare
|
@andrewnester @denik |
|
Thanks @varundeepsaini this looks on the right track. You need to update output of all acceptance tests (make test-update) and deduplicate the entries: |
|
Commit: 7a2ff5e
8 interesting tests: 7 KNOWN, 1 SKIP
Top 25 slowest tests (at least 2 minutes):
|
acceptance/bundle/resource_deps/job_id/out.plan_delete.direct.json
Outdated
Show resolved
Hide resolved
|
@denik |
denik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, minor comments remaining. Please also rebase.
Added bundle/direct/graph_test.go
I don't see this file.
|
@denik can you review once again, and queue the tests (the integration tests as well) |
|
Looks great! Please also update NEXT_CHANGELOG.md |
|
updated the changelog |
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
denik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, thanks!
|
Commit: 700366b
10 interesting tests: 7 KNOWN, 2 flaky, 1 SKIP
Top 50 slowest tests (at least 2 minutes):
|
## Release v0.281.0 ### CLI * Fix lakeview publish to default `embed_credentials` to false ([#4066](#4066)) ### Bundles * Add support for configurable catalog/schema for dashboards ([#4130](#4130)) * Pass SYSTEM\_ACCESSTOKEN from env to the Terraform provider ([#4135](#4135)) * `bundle deployment migrate`: when running `bundle plan` propagate `-var` arguments. * engine/direct: New option --plan to `bundle deploy` to deploy previously saved plan (saved plan with `bundle plan -o json`) ([#4134](#4134)) * engine/direct: Fix dependency-ordered deletion by persisting depends\_on in state ([#4105](#4105)) ### Dependency updates * Upgrade Go SDK to 0.94.0 ([#4148](#4148)) * Upgrade Terraform provider to 1.100.0 ([#4150](#4150))
Fixes: #4089
Changes
When deleting resources with dependencies, the direct deployment engine now deletes dependents before their dependencies. Previously, resources were deleted in deployment order, which could cause errors when a dependency was deleted before resources that depend on it.
Edge direction in the dependency graph is now determined per-node based on action type: