Skip to content

Preserve dependency ordering for unchanged resources - #1143

Draft
himsngh wants to merge 1 commit into
carvel-dev:developfrom
himsngh:fix/729-noop-dependency-ordering
Draft

himsngh wants to merge 1 commit into
carvel-dev:developfrom
himsngh:fix/729-noop-dependency-ordering

Conversation

@himsngh

@himsngh himsngh commented Oct 20, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Resuming a deployment can leave an unchanged resource still reconciling. Treating it as a no-op in the change graph lets dependent resources proceed before it is ready.

Include unchanged resources in upsert ordering to retain their change rules and transitive dependencies. Remove references to pruned changes so completed prerequisites do not leave dependents blocked.

Add unit coverage for ordering, dependency chains, completed and failed prerequisites, and disabled waiting, plus an end-to-end regression using a suspended Job.

Which issue(s) this PR fixes:

Fixes #729

Does this PR introduce a user-facing change?

Fixes #729 

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


Resuming a deployment can leave an unchanged resource still reconciling. Treating it as a no-op in the change graph lets dependent resources proceed before it is ready.

Include unchanged resources in upsert ordering to retain their change rules and transitive dependencies. Remove references to pruned changes so completed prerequisites do not leave dependents blocked.

Add unit coverage for ordering, dependency chains, completed and failed prerequisites, and disabled waiting, plus an end-to-end regression using a suspended Job.

Fixes carvel-dev#729

Signed-off-by: Himanshu Singh <himansh.singh3@gmail.com>
@himsngh
himsngh force-pushed the fix/729-noop-dependency-ordering branch from bb36583 to cbe96d5 Compare October 26, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

kapp unblocks dependent changes if the changes which are depended upon already exists

2 participants