-
Notifications
You must be signed in to change notification settings - Fork 3.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
Conversation
Summary of ChangesHello @yhyang201, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on re-integrating the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request successfully re-enables the test_vision_openai_server_a CI test. The changes in run_suite.py correctly move the test into an active test suite. The modifications in test_vision_openai_server_a.py are necessary for the test to run, but the import statements have been left in a slightly messy state. I've provided a couple of suggestions to clean up the code for better maintainability and adherence to best practices.
| 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, | ||
| ) |
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.
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,
)| TestFile("test_verl_engine_server.py"), | ||
| TestFile("test_vertex_endpoint.py"), | ||
| TestFile("test_vision_openai_server_a.py"), # TODO: Fix timeout | ||
| # TestFile("test_vision_openai_server_a.py"), # TODO: Fix timeout |
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.py is now included in the per-commit-1-gpu test 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, the TODO: Fix timeout comment seems to be obsolete given the context of this pull request, which re-enables the test.
|
Failed tests are unrelated |
Motivation
Installed scripts/ci/ci_install_dependency.sh to keep the environment consistent with the CI.
After running this test file multiple times, no errors were observed.
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist