Skip to content

[CI/Build] Stop k8s routing tests when the engine pods never become ready - #1134

Merged
ruizhang0101 merged 3 commits into
vllm-project:mainfrom
theminjunchoi:ci/k8s-e2e-engine-not-ready
Nov 3, 2026
Merged

ruizhang0101 merged 3 commits into
vllm-project:mainfrom
theminjunchoi:ci/k8s-e2e-engine-not-ready

Conversation

@theminjunchoi

Copy link
Copy Markdown
Contributor

When an engine never becomes ready, the k8s routing e2e test still runs and fails with an error that has nothing to do with the engine, and the real cause only shows up in the artifact (details in #1133). This makes that failure show up where people look first.

  • run-k8s-routing-test.sh: stop the test when wait_for_pods fails. It runs inside an if, so set -e never caught the timeout. Debug logs are still collected and the release is cleaned up, same as a failed test run.
  • wait-for-pods.sh: on timeout, print the last 40 log lines of every pod that isn't ready. For the failures in bug: k8s-discovery e2e fails on roundrobin when an engine dies at startup, and the job hides why #1133 that's where RuntimeError: cudaHostAlloc failed: 1 is.
  • router-e2e-test.yml: remove the result dir before the run. The self-hosted runner keeps /tmp, so the artifact had logs from earlier runs mixed in.

This doesn't fix the allocation failure itself. That depends on the runner's memory, so I left it for discussion in the issue.

Testing: I can't run the GPU job locally, so I ran both scripts with stubbed kubectl/helm/python.

  • With the wait failing for the first test only, main still runs the roundrobin test. This branch stops it with vllm pods did not become ready, collects its debug logs, and runs the other four tests as before.
  • On timeout, wait-for-pods.sh prints logs only for the 0/1 pod and exits 1.
  • shellcheck v0.10.0 and actionlint v1.7.7 (the pre-commit versions) pass on the changed files.

FIX #1133


  • Make sure the code changes pass the pre-commit checks.
  • Sign-off your commit by using -s when doing git commit
  • Try to classify PRs for easy understanding of the type of changes, such as [Bugfix], [Feat], and [CI].

The wait runs where set -e is off, so a timeout was ignored and the test ran against engines that never started.

Signed-off-by: MinJun Choi <[email protected]>
The self-hosted runner keeps /tmp, so artifacts mixed in logs from earlier runs.

Signed-off-by: MinJun Choi <[email protected]>

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request improves Kubernetes E2E testing by explicitly checking for failures in the 'wait_for_pods' function and printing the last 40 log lines of unready pods when waiting times out. Feedback was provided to refactor the pod log collection loop in 'wait-for-pods.sh' using 'awk' to prevent potential script crashes under 'set -eo pipefail' when 'grep' finds no matching pods.

Comment thread tests/e2e/wait-for-pods.sh Resolved
@theminjunchoi

Copy link
Copy Markdown
Contributor Author

Hi @ruizhang0101, when you have a moment, could you take a look at this one? It's a small CI change so that the k8s routing test stops right away when the engine pods never come up, and the pod logs end up in the job output instead of only in the artifact. It came out of the failures I described in #1133. Thanks!

@ruizhang0101 ruizhang0101 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ruizhang0101
ruizhang0101 enabled auto-merge (squash) November 2, 2026 23:35
@ruizhang0101
ruizhang0101 merged commit e4a51f6 into vllm-project:main Nov 3, 2026
17 checks passed
bcdonadio added a commit to powerhome/vllm-production-stack that referenced this pull request Nov 12, 2026
* [Bugfix][Router] Read vllm:kv_cache_usage_perc for KV cache usage (vllm-project#1118)

Signed-off-by: Muhammad Ibrahim <[email protected]>

* [Doc] Add Simplified Chinese translation (README.zh.md) (vllm-project#1136)

Signed-off-by: YE <[email protected]>

* [CI/Build] Run helm unittest in CI and fix two broken tests (vllm-project#1131)

Signed-off-by: zjjkee <[email protected]>

* [Bugfix][Router] Key request stats by dispatch, not by X-Request-Id (vllm-project#1115)

Signed-off-by: David-Wu1119 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Rui Zhang <[email protected]>

* [Bugfix][Router] Use least-inflight for PrefixAware below-threshold fallback (vllm-project#1089)

Signed-off-by: Dundy Pasupuleti <[email protected]>

* [Bugfix][Router] Keep P/D model labels when dynamic config reloads the router (vllm-project#1129)

Signed-off-by: MinJun Choi <[email protected]>

* [Bugfix] Match KEDA scalers to enabled model deployments (vllm-project#1142)

Signed-off-by: bojiang-li <[email protected]>

* [Router] added pooling route (vllm-project#1112)

Signed-off-by: [email protected] <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Rui Zhang <[email protected]>

* [CI] Drop host docker prune from runner-cleanup workflow (vllm-project#1174)

Signed-off-by: Rui Zhang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [Feat][Router] Add /v1/systemone and /v1/decisions routes (vllm-project#1173)

Signed-off-by: Shern Shiou Tan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [CI/Build] Stop k8s routing tests when the engine pods never become ready (vllm-project#1134)

Signed-off-by: MinJun Choi <[email protected]>

* [Bugfix][Router] Upgrade aiohttp and vllm (0.33.0) to resolve router image CVEs (vllm-project#1185)

Signed-off-by: Shern Shiou Tan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* Bump chart version to 0.1.14 (vllm-project#1190)

Signed-off-by: Rui Zhang <[email protected]>

---------

Signed-off-by: Muhammad Ibrahim <[email protected]>
Signed-off-by: YE <[email protected]>
Signed-off-by: zjjkee <[email protected]>
Signed-off-by: David-Wu1119 <[email protected]>
Signed-off-by: Dundy Pasupuleti <[email protected]>
Signed-off-by: MinJun Choi <[email protected]>
Signed-off-by: bojiang-li <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Shern Shiou Tan <[email protected]>
Signed-off-by: MinJun Choi <[email protected]>
Signed-off-by: Rui Zhang <[email protected]>
Signed-off-by: Bernardo Donadio <[email protected]>
Co-authored-by: Muhammad Ibrahim <[email protected]>
Co-authored-by: YE <[email protected]>
Co-authored-by: Jingke zou <[email protected]>
Co-authored-by: Yanze (David) Wu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Rui Zhang <[email protected]>
Co-authored-by: Dundy Pasupuleti <[email protected]>
Co-authored-by: MinJun Choi <[email protected]>
Co-authored-by: Bojiang Li <[email protected]>
Co-authored-by: MaelvanDijk <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Shern Shiou Tan <[email protected]>
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.

bug: k8s-discovery e2e fails on roundrobin when an engine dies at startup, and the job hides why

2 participants