Skip to content

[Misc] code clean duplicate set_current_vllm_config in _set_vllm_config #22566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

andyxning
Copy link
Contributor

@andyxning andyxning commented Aug 9, 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
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Purpose

set_current_vllm_config is duplicated.

Test Plan

NA

Test Result

NA

(Optional) Documentation Update

NA

Copy link

github-actions bot commented Aug 9, 2025

👋 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.

🚀

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 removes a redundant and ineffective call to set_current_vllm_config. The change is a good code cleanup.

While reviewing this function, I noticed a potential resource leak. The temporary file created on line 37 with tempfile.mkstemp() is not being cleaned up after use. This could lead to an accumulation of temporary files, potentially causing issues in CI environments.

I recommend addressing this in a follow-up pull request by using a context manager, for example tempfile.NamedTemporaryFile, to ensure the temporary file is automatically deleted. This is just a suggestion for future improvement and doesn't block this PR.

Signed-off-by: Andy Xie <andy.xning@gmail.com>
@andyxning andyxning force-pushed the code_clean_duplicate_set_current_vllm_config_in__set_vllm_config branch from 65f09de to 2078a06 Compare August 10, 2025 01:50
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) August 10, 2025 03:54
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 10, 2025
@andyxning
Copy link
Contributor Author

Seems ci failures are flakes and some error about entrypoint which also fails in other PRs. Can you help force merge of this. @DarkLight1337

@vllm-bot vllm-bot merged commit 3269762 into vllm-project:main Aug 10, 2025
23 of 29 checks passed
@andyxning andyxning deleted the code_clean_duplicate_set_current_vllm_config_in__set_vllm_config branch August 10, 2025 10:26
noamgat pushed a commit to noamgat/vllm that referenced this pull request Aug 10, 2025
jingyu-ml pushed a commit to jingyu-ml/vllm that referenced this pull request Aug 11, 2025
…ig (vllm-project#22566)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: jingyu <jingyu@omniml.ai>
yyihuang pushed a commit to yyihuang/vllm that referenced this pull request Aug 11, 2025
…ig (vllm-project#22566)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Avery Yingyi Huang <yingyihuang2000@outlook.com>
aarnphm pushed a commit to aarnphm/vllm that referenced this pull request Aug 13, 2025
paulpak58 pushed a commit to paulpak58/vllm that referenced this pull request Aug 13, 2025
…ig (vllm-project#22566)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Paul Pak <paulpak58@gmail.com>
taneem-ibrahim pushed a commit to taneem-ibrahim/vllm that referenced this pull request Aug 14, 2025
BoyuanFeng pushed a commit to BoyuanFeng/vllm that referenced this pull request Aug 14, 2025
…ig (vllm-project#22566)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Boyuan Feng <boyuan@meta.com>
diegocastanibm pushed a commit to diegocastanibm/vllm that referenced this pull request Aug 15, 2025
…ig (vllm-project#22566)

Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Diego-Castan <diego.castan@ibm.com>
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