[CI/Build][MiniCPM-o] Allow auto-response before input commit (#5567)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-07-30 14:14:19 +00:00
1 parent f7e87e7cfd
commit 09c6ad4204
7 files changed
+104 -6

No files matched your search

@@ -1,3 +1,4 @@
import concurrent.futures
import contextlib
import importlib
import os
@@ -7,6 +8,7 @@ import types
import pytest
from vllm_omni.diffusion.data import AttentionConfig, AttentionSpec
from vllm_omni.engine import async_omni_engine as async_omni_engine_module
from vllm_omni.engine.async_omni_engine import AsyncOmniEngine
from vllm_omni.engine.stage_init_utils import (
LogicalStageInitPlan,
@@ -19,6 +21,30 @@ from vllm_omni.engine.stage_runtime import StageRuntime
pytestmark = [pytest.mark.core_model, pytest.mark.cpu]
def test_orchestrator_startup_timeout_warns_how_to_raise_limits(monkeypatch):
engine = object.__new__(AsyncOmniEngine)
engine.orchestrator_thread = types.SimpleNamespace(is_alive=lambda: True)
monkeypatch.setattr(engine, "_try_shutdown", lambda _message: None)
ticks = iter((0.0, 1.0))
monkeypatch.setattr(async_omni_engine_module.time, "monotonic", lambda: next(ticks))
warnings: list[tuple[object, ...]] = []
monkeypatch.setattr(
async_omni_engine_module.logger,
"warning",
lambda *args: warnings.append(args),
)
with pytest.raises(TimeoutError, match="did not become ready within 1s"):
engine._wait_for_orchestrator_init(concurrent.futures.Future(), startup_timeout=1)
assert len(warnings) == 1
message = str(warnings[0][0])
assert "--init-timeout" in message
assert "--stage-init-timeout" in message
def _make_llm_metadata(
stage_id: int,
*,