-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[CI] re-enable test_vision_openai_server_a ci #13444
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,16 @@ | |
|
|
||
| import unittest | ||
|
|
||
| import openai | ||
| from test_vision_openai_server_common import * | ||
| from test_vision_openai_server_common import ( # DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,; DEFAULT_URL_FOR_TEST,; IMAGE_MAN_IRONING_URL,; popen_launch_server, | ||
| AudioOpenAITestMixin, | ||
| CustomTestCase, | ||
| ImageOpenAITestMixin, | ||
| OmniOpenAITestMixin, | ||
| TestOpenAIMLLMServerBase, | ||
| VideoOpenAITestMixin, | ||
| ) | ||
|
Comment on lines
10
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The wildcard import on line 10 is redundant and not good practice as it pollutes the global namespace and makes it hard to track where names are coming from. The explicit import on lines 11-18 is a good step, but it's incomplete and coexists with the wildcard import. It's better to have a single, clean, explicit import statement. The commented-out names on line 11 are actually used in this file and should be imported explicitly. I suggest combining these into a single, comprehensive import statement and removing the wildcard import and the commented-out names. from test_vision_openai_server_common import (
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
DEFAULT_URL_FOR_TEST,
IMAGE_MAN_IRONING_URL,
AudioOpenAITestMixin,
CustomTestCase,
ImageOpenAITestMixin,
OmniOpenAITestMixin,
TestOpenAIMLLMServerBase,
VideoOpenAITestMixin,
popen_launch_server,
) |
||
|
|
||
|
|
||
| class TestLlavaServer(ImageOpenAITestMixin): | ||
|
|
@@ -207,12 +216,11 @@ def test_single_image_chat_completion(self): | |
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| # Note: Cannot delete mixin classes imported via * since they're not in local scope | ||
| # del ( | ||
| # TestOpenAIMLLMServerBase, | ||
| # ImageOpenAITestMixin, | ||
| # VideoOpenAITestMixin, | ||
| # AudioOpenAITestMixin, | ||
| # OmniOpenAITestMixin, | ||
| # ) | ||
| del ( | ||
| TestOpenAIMLLMServerBase, | ||
| ImageOpenAITestMixin, | ||
| VideoOpenAITestMixin, | ||
| AudioOpenAITestMixin, | ||
| OmniOpenAITestMixin, | ||
| ) | ||
| unittest.main() | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since
test_vision_openai_server_a.pyis now included in theper-commit-1-gputest suite, this line in the__not_in_ci__list is no longer necessary. For better code clarity, it's best to remove this line entirely rather than commenting it out. Additionally, theTODO: Fix timeoutcomment seems to be obsolete given the context of this pull request, which re-enables the test.