Skip to content

test: consolidate isPodReady on the stricter semantics - #1969

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
iamtanishqjain:test/consolidate-ispodready
Nov 6, 2026
Merged

volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
iamtanishqjain:test/consolidate-ispodready

Conversation

@iamtanishqjain

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

utils.IsPodReady returns true for a terminating Pod, because a Pod keeps Running and its Ready condition for a while after its deletion starts. A test waiting for N ready Pods can therefore count one that is going away.

Four call sites already work around this in three different ways:

  • model_serving_coordination_test.go:135 checks DeletionTimestamp before the call
  • model_serving_test.go:524 does the same
  • router/shared.go:2205 does the same with the condition inverted
  • model_serving_inplace_test.go:97 keeps a private copy of the helper that checks it

The remaining 11 callers do not check at all.

This moves the check into the shared helper and removes the four workarounds.

Which issue(s) this PR fixes:

N/A

Bug evidence (required for bug-related PRs):

N/A, test-only.

Special notes for your reviewer:

I could not run the e2e suites locally, so I am relying on CI here.

Does this PR introduce a user-facing change?

NONE

utils.IsPodReady treated a terminating Pod as ready, because a Pod keeps
Running and its Ready condition for a while after deletion starts. Three
call sites checked DeletionTimestamp themselves and a fourth kept a private
copy of the helper that did.

Move the check into the shared helper and drop the four workarounds.

Signed-off-by: iamtanishqjain <tanishqjain7014@gmail.com>
@iamtanishqjain

Copy link
Copy Markdown
Contributor Author

/cc @FAUST-BENCHOU

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

No active review issues remain for the test-only cleanup centralizing deletion-aware Pod readiness checks.

No open issues 🎉

What changed in this PR

This test-only cleanup centralizes stricter Pod readiness checks in the shared end-to-end test helper, preventing terminating Pods from being counted as ready.

Changes:

  • Make utils.IsPodReady reject Pods with a deletion timestamp.
  • Remove redundant deletion checks from callers.
  • Replace the private in-place-update readiness helper with the shared helper.
File Description
test/​e2e/​utils/​utils.go Exclude terminating Pods and document the readiness behavior.
test/​e2e/​router/​shared.go Remove the redundant deletion check in the sticky-session test.
test/​e2e/​controller-manager/​model_serving_test.go Simplify the Pod recovery readiness check.
test/​e2e/​controller-manager/​model_serving_inplace_test.go Replace the private readiness helper with utils.IsPodReady.
test/​e2e/​controller-manager/​model_serving_coordination_test.go Use the shared helper for deletion-aware readiness checks.

Review effort: Balanced

@iamtanishqjain

Copy link
Copy Markdown
Contributor Author

/cc @YaoZengzeng PTAL sir, all CI passed

@FAUST-BENCHOU FAUST-BENCHOU left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm
/approve

@volcano-sh-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FAUST-BENCHOU

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 merged commit 3809f22 into volcano-sh:main Nov 6, 2026
18 checks passed
@github-project-automation github-project-automation Bot moved this from Accepted to Done in Kthena Release Tracking Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants