Skip to content

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Jul 26, 2025

Essential Elements of an Effective PR Description Checklist

  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results

Purpose

After #21445, all vLLM processes are now named with VLLM prefix. This breaks the benchmark script where it fails to kill these processes to stop the benchmark. So, CI benchmark jobs wait forever till they are timing out, i.e. https://github.com/pytorch/pytorch-integration-testing/actions/runs/16530638203/job/46754923133

Test Plan

Manually run a benchmark with the code from this PR https://github.com/pytorch/pytorch-integration-testing/actions/runs/16534596580

@github-actions
Copy link

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added ci/build performance Performance-related issues labels Jul 26, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request correctly identifies the need to terminate vLLM processes by their new name to fix the CI pipeline. However, the implementation can be made more robust to avoid a potential race condition where the pkill command might terminate itself. I've suggested a small change to improve the reliability of the script.

pkill -f text-generation
pkill -f lmdeploy
# vLLM now names the process with VLLM prefix after https://github.com/vllm-project/vllm/pull/21445
pkill -f VLLM
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Using pkill -f VLLM can be unreliable as it might match and kill its own process before it has a chance to terminate the target vLLM processes. This is because the command pkill -f VLLM itself contains the string "VLLM" and will be found by pkill -f.

A more robust and common practice is to use a pattern like [V]LLM. This prevents pkill from matching its own command in the process list, ensuring it only targets the intended vLLM processes and avoiding a potential race condition.

Suggested change
pkill -f VLLM
pkill -f '[V]LLM'

Signed-off-by: Huy Do <huydhn@gmail.com>
pkill -f '[t]ext-generation'
pkill -f '[l]mdeploy'
# vLLM now names the process with VLLM prefix after https://github.com/vllm-project/vllm/pull/21445
pkill -f '[V]LLM'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The square bracket is a good sugesstion from Gemini

Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@vllm-bot vllm-bot merged commit a55c950 into vllm-project:main Jul 26, 2025
7 of 9 checks passed
@chaunceyjiang
Copy link
Collaborator

Thanks~

liuyumoye pushed a commit to liuyumoye/vllm that referenced this pull request Jul 31, 2025
HsChen-sys pushed a commit to HsChen-sys/vllm that referenced this pull request Aug 1, 2025
x22x22 pushed a commit to x22x22/vllm that referenced this pull request Aug 5, 2025
…m-project#21641)

Signed-off-by: Huy Do <huydhn@gmail.com>
Signed-off-by: x22x22 <wadeking@qq.com>
Pradyun92 pushed a commit to Pradyun92/vllm that referenced this pull request Aug 6, 2025
npanpaliya pushed a commit to odh-on-pz/vllm-upstream that referenced this pull request Aug 6, 2025
jinzhen-lin pushed a commit to jinzhen-lin/vllm that referenced this pull request Aug 9, 2025
…m-project#21641)

Signed-off-by: Huy Do <huydhn@gmail.com>
Signed-off-by: Jinzhen Lin <linjinzhen@hotmail.com>
paulpak58 pushed a commit to paulpak58/vllm that referenced this pull request Aug 13, 2025
…m-project#21641)

Signed-off-by: Huy Do <huydhn@gmail.com>
Signed-off-by: Paul Pak <paulpak58@gmail.com>
diegocastanibm pushed a commit to diegocastanibm/vllm that referenced this pull request Aug 15, 2025
…m-project#21641)

Signed-off-by: Huy Do <huydhn@gmail.com>
Signed-off-by: Diego-Castan <diego.castan@ibm.com>
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build performance Performance-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants