Skip to content

Conversation

@varundeepsaini
Copy link
Contributor

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:

  • Delete actions: reverse edge (dependent → dependency)
  • Other actions: normal edge (dependency → dependent)

Tests

Added bundle/direct/graph_test.go

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4105
  • Commit SHA: d6ebbc5d848259de4f4aa82bfbc9234d58a141b0

Checks will be approved automatically on success.

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 resources should respect the dependencies between resources

1 participant