Skip to content

[release-1.14] Correct NominatedNodeName lifecycle and preempt eligibility - #6090

Merged
volcano-sh-bot merged 2 commits into
release-1.14from
copilot/release-114-fix-nominatednodename-lifecycle
Oct 14, 2026
Merged

volcano-sh-bot merged 2 commits into
release-1.14from
copilot/release-114-fix-nominatednodename-lifecycle

Conversation

Copilot AI commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Backport #6066 to release-1.14, resolving conflicts while preserving release-specific behavior. Addresses stale nominations after rollback and incorrectly blocked preemption.

  • Nomination lifecycle: Derive nominations from live pipelined transactions, not diagnostic snapshots. Clear EvictionOccurred on rollback; retain nominations after committed preemption.
  • Preempt eligibility: Keep policy checks before PrePredicateFn; evaluate nominated-node predicates afterward. Allow schedulable or deleted nominated nodes without bypassing the terminating-victim guard.
  • Regression coverage: Adapt upstream eligibility cases and add focused Pipeline/Discard/Commit lifecycle coverage.

@volcano-sh-bot volcano-sh-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 13, 2026
… fixes

Co-authored-by: JesseStutler <38534065+JesseStutler@users.noreply.github.com>
@volcano-sh-bot volcano-sh-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 13, 2026
Copilot AI changed the title [WIP] Fix NominatedNodeName lifecycle and preempt eligibility [release-1.14] Correct NominatedNodeName lifecycle and preempt eligibility Oct 13, 2026
Copilot AI requested a review from JesseStutler October 13, 2026 12:53
@JesseStutler
JesseStutler marked this pull request as ready for review October 13, 2026 13:46
Copilot AI balanced review requested due to automatic review settings October 13, 2026 13:46
@volcano-sh-bot volcano-sh-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The backport preserves the upstream behavior and includes focused regression coverage for all affected paths.

0 open findings

What changed in this PR

Backports #6066 to fix scheduler nomination lifecycle and preemption eligibility.

Changes:

  • Prevents stale nominations after rollback while retaining committed nominations.
  • Corrects nominated-node preemption checks and ordering.
  • Adds regression coverage for lifecycle and eligibility scenarios.
File Description
pkg/​scheduler/​util/​test_utils.go Adds nominated-node pod test helper.
pkg/​scheduler/​framework/​statement.go Clears live eviction state on rollback.
pkg/​scheduler/​framework/​statement_nomination_test.go Tests pipeline lifecycle behavior.
pkg/​scheduler/​api/​job_info.go Derives nominations from live state.
pkg/​scheduler/​api/​job_info_test.go Tests nomination derivation.
pkg/​scheduler/​actions/​preempt/​preempt.go Corrects preemption eligibility flow.
pkg/​scheduler/​actions/​preempt/​preempt_test.go Covers schedulable and deleted nominations.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@JesseStutler

Copy link
Copy Markdown
Member

/approve
/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 14, 2026
@volcano-sh-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JesseStutler

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 14, 2026
@volcano-sh-bot
volcano-sh-bot merged commit 8cbac0c into release-1.14 Oct 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[release-1.14] fix(scheduler): correct NominatedNodeName lifecycle and preempt eligibility

4 participants