[XPU] skip unsupported ut and update test_nixl_connector (#37179)

Signed-off-by: zhenwei-intel <zhenwei.liu@intel.com>
Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
liuzhenwei
2026-03-18 13:32:59 +08:00
committed by GitHub
co-authored by Kunshang Ji
parent 0e95916155
commit 86b7e3c95a
2 changed files with 10 additions and 4 deletions
@@ -1369,7 +1369,13 @@ def test_abort_timeout_on_prefiller(monkeypatch, distributed_executor_backend):
"NIXL_TELEMETRY_ENABLE": "1",
},
}
ray.init(runtime_env=runtime_env)
# On XPU/ROCm, vLLM expects Ray's device key to be "GPU".
# Explicitly reserving GPU resources here prevents false negatives
# when Ray cannot auto-detect accelerator resources in test envs.
ray_init_kwargs: dict[str, Any] = {"runtime_env": runtime_env}
if not current_platform.is_cuda():
ray_init_kwargs["num_gpus"] = 1
ray.init(**ray_init_kwargs)
try:
run_test_and_cleanup()
finally: