Skip to content

test(test_cmdline):add try finally to terminal model - #5039

Closed
llyycchhee wants to merge 1 commit into
xorbitsai:mainfrom
llyycchhee:fix/test-cmdline-terminate-for-ci
Closed

llyycchhee wants to merge 1 commit into
xorbitsai:mainfrom
llyycchhee:fix/test-cmdline-terminate-for-ci

Conversation

@llyycchhee

Copy link
Copy Markdown
Collaborator

Add try finally to terminal model.

@XprobeBot XprobeBot added this to the v2.x milestone Jun 16, 2026

@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 updates the test_cmdline function in xinference/deploy/test/test_cmdline.py by wrapping the model lifecycle and testing steps inside a try...finally block. This ensures that the launched model is always terminated, preventing resource leaks if any assertions fail during the test execution. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@qinxuye

qinxuye commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Replaced by #5042

@qinxuye qinxuye closed this Jun 16, 2026
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.

3 participants