[CI] Add CI branch coverage calculation, fix statement coverage results and add log before test for buildkite log group (#1120)
Signed-off-by: wangyu31577 <wangyu31577@hundsun.com> Co-authored-by: wangyu31577 <wangyu31577@hundsun.com>
This commit is contained in:
1 parent
8135ee81e6
commit
398ae95b96
3 files changed
+20
-11
No files matched your search
+13
-6
@@ -20,12 +20,19 @@ steps:
|
|||||||
- label: "Simple Unit Test"
|
- label: "Simple Unit Test"
|
||||||
depends_on: image-build
|
depends_on: image-build
|
||||||
commands:
|
commands:
|
||||||
- pytest -v -s tests/entrypoints/
|
- |
|
||||||
- pytest -v -s tests/diffusion/cache/
|
pytest -v -s \
|
||||||
- pytest -v -s tests/diffusion/lora/
|
tests/entrypoints/ \
|
||||||
- pytest -v -s tests/model_executor/models/qwen2_5_omni/test_audio_length.py
|
tests/diffusion/cache/ \
|
||||||
- pytest -v -s tests/worker/
|
tests/diffusion/lora/ \
|
||||||
- pytest -v -s tests/distributed/omni_connectors/test_kv_flow.py
|
tests/model_executor/models/qwen2_5_omni/test_audio_length.py \
|
||||||
|
tests/worker/ \
|
||||||
|
tests/distributed/omni_connectors/test_kv_flow.py \
|
||||||
|
--cov=vllm_omni \
|
||||||
|
--cov-branch \
|
||||||
|
--cov-report=term-missing \
|
||||||
|
--cov-report=html \
|
||||||
|
--cov-report=xml
|
||||||
agents:
|
agents:
|
||||||
queue: "gpu_1_queue"
|
queue: "gpu_1_queue"
|
||||||
plugins:
|
plugins:
|
||||||
|
|||||||
+1
-5
@@ -155,11 +155,7 @@ python_classes = ["Test*"]
|
|||||||
python_functions = ["test_*"]
|
python_functions = ["test_*"]
|
||||||
addopts = [
|
addopts = [
|
||||||
"--strict-markers",
|
"--strict-markers",
|
||||||
"--strict-config",
|
"--strict-config"
|
||||||
"--cov=vllm_omni",
|
|
||||||
"--cov-report=term-missing",
|
|
||||||
"--cov-report=html",
|
|
||||||
"--cov-report=xml",
|
|
||||||
]
|
]
|
||||||
markers = [
|
markers = [
|
||||||
# ci/cd required
|
# ci/cd required
|
||||||
|
|||||||
@@ -60,6 +60,12 @@ def clean_gpu_memory_between_tests():
|
|||||||
_run_post_test_cleanup()
|
_run_post_test_cleanup()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def log_test_name_before_test(request):
|
||||||
|
print(f"--- Running test: {request.node.name}")
|
||||||
|
yield
|
||||||
|
|
||||||
|
|
||||||
def _run_pre_test_cleanup(enable_force=False):
|
def _run_pre_test_cleanup(enable_force=False):
|
||||||
if os.getenv("VLLM_TEST_CLEAN_GPU_MEMORY", "0") != "1" and not enable_force:
|
if os.getenv("VLLM_TEST_CLEAN_GPU_MEMORY", "0") != "1" and not enable_force:
|
||||||
print("GPU cleanup disabled")
|
print("GPU cleanup disabled")
|
||||||
|
|||||||
Reference in new issue
Block a user