Skip to content

Conversation

hyongtao-code
Copy link
Contributor

@hyongtao-code hyongtao-code commented Oct 18, 2025

Purpose

RuntimeError was raised with an unformatted tuple due to printf-style arguments not being interpolated in Python exception constructors. Replaced with f-strings for proper message rendering.

Test Plan

Test Result


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
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

RuntimeError was raised with an unformatted tuple due to printf-style
arguments not being interpolated in Python exception constructors.
Replaced with f-strings for proper message rendering.

Signed-off-by: Yongtao Huang <[email protected]>
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

This pull request correctly fixes a bug where RuntimeError exceptions in the barrier logic were raised with an unformatted tuple, making the error message unhelpful. The change to use f-strings not only resolves this issue but also improves the readability and consistency of the timeout messages by formatting the timeout value to two decimal places and using "seconds" uniformly. The fix is accurate and improves the code's robustness. I approve of these changes.

Copy link
Member

@yewentao256 yewentao256 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the work! Please fix the pre-commit issue

Signed-off-by: Yongtao Huang <[email protected]>
@yewentao256 yewentao256 added the ready ONLY add when PR is ready to merge/full CI is needed label Oct 18, 2025
@yewentao256 yewentao256 enabled auto-merge (squash) October 18, 2025 15:13
@vllm-bot vllm-bot merged commit 168e578 into vllm-project:main Oct 18, 2025
47 of 52 checks passed
@hyongtao-code hyongtao-code deleted the fix-raise branch October 20, 2025 02:07
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants