[Test] Add full test for Qwen3-Omni-30B-A3B-Instruct#720
[Test] Add full test for Qwen3-Omni-30B-A3B-Instruct#720hsliuustc0106 merged 15 commits intovllm-project:mainfrom
Conversation
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3023809d85
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| import psutil | ||
| import pytest | ||
| import torch | ||
| import whisper | ||
| import yaml |
There was a problem hiding this comment.
Avoid import-time dependency on whisper/psutil
Because tests/conftest.py is imported for every test run, the top-level import whisper/import psutil will raise ImportError in any environment that doesn’t preinstall those packages, causing test collection to fail even when the new e2e tests aren’t selected. The repo’s pyproject.toml doesn’t declare these dependencies, so a default dev/CI setup is likely to hit this; consider moving the imports inside the helper functions/tests that need them or adding the packages to test/dev extras.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@yenuo26 please pay attention to AI's review, this could help us improve efficiency and avoid obvious mistakes
There was a problem hiding this comment.
@yenuo26 please pay attention to AI's review, this could help us improve efficiency and avoid obvious mistakes
get
| output_path = f"{yaml_path.split('.')[0]}_{int(time.time())}.yaml" | ||
| with open(output_path, "w", encoding="utf-8") as f: |
There was a problem hiding this comment.
Preserve dotted paths when writing modified YAML
Building the output filename with yaml_path.split('.')[0] drops everything after the first dot in the entire path, so a path like /tmp/.config/stage.yaml or config.v1.yaml will be rewritten into a different directory/name (e.g., /tmp/_<ts>.yaml), which can overwrite the wrong file or fail to be found later. Using Path(yaml_path).with_name(Path(yaml_path).stem + f"_{ts}").with_suffix(".yaml") (or similar) preserves the original directory and base name.
Useful? React with 👍 / 👎.
|
Should we consider a better way to manage variables such as concurrency size and message type? Hardcoding them inside the function impacts maintainability and increases the risk of missing or duplication in our test coverage. |
Signed-off-by: wangyu31577 <[email protected]>
I have added the following two functions to solve this problem. |
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]>
pyproject.toml
Outdated
| "pytest-cov>=4.0.0", | ||
| "mypy==1.11.1", | ||
| "pre-commit==4.0.1", | ||
| "openai-whisper" |
Signed-off-by: wangyu31577 <[email protected]>
Signed-off-by: wangyu31577 <[email protected]> Co-authored-by: wangyu31577 <[email protected]> Signed-off-by: Chen Yang <[email protected]>
Signed-off-by: wangyu31577 <[email protected]> Co-authored-by: wangyu31577 <[email protected]>
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT THE BOTTOM) HAVE BEEN CONSIDERED.
Purpose
This PR is intended to add full test for Qwen3-Omni-30B-A3B-Instruct
design and plan, please refer to the #723
Test Plan
python -m pytest -sv tests/e2e/online_serving/test_qwen3_omni_expansion.py::test_text_to_text_001
python -m pytest -sv tests/e2e/online_serving/test_qwen3_omni_expansion.py::test_text_to_text_audio_001
Test Result
2 passed, 2 warnings in 299.74s (0:04:59)
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.BEFORE SUBMITTING, PLEASE READ https://github.com/vllm-project/vllm-omni/blob/main/CONTRIBUTING.md (anything written below this line will be removed by GitHub Actions)