From 4885b563c33e10cc8655538f73db88451ca3cbb3 Mon Sep 17 00:00:00 2001 From: Mohammad Miadh Angkad <176301910+mmangkad@users.noreply.github.com> Date: Tue, 29 Sep 2026 21:52:31 +0000 Subject: [PATCH] [Test] Demote PD test RDMA openability check to a warning (#41681) Co-authored-by: hnyls2002 --- .../server_fixtures/disaggregation_fixture.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/python/sglang/test/server_fixtures/disaggregation_fixture.py b/python/sglang/test/server_fixtures/disaggregation_fixture.py index 2eab0c3e7b..16b543b7d3 100644 --- a/python/sglang/test/server_fixtures/disaggregation_fixture.py +++ b/python/sglang/test/server_fixtures/disaggregation_fixture.py @@ -97,7 +97,7 @@ class PDDisaggregationServerBase(CustomTestCase): cls._ucx_net_devices_set = False if is_in_ci(): cls.transfer_backend = ["--disaggregation-transfer-backend", "mooncake"] - _check_rdma_openable() + _warn_if_rdma_unopenable() ib_devices = get_rdma_devices_args() cls.rdma_devices = ["--disaggregation-ib-device", ib_devices] cls._mc_gid_index_set = _maybe_set_roce_gid_index(ib_devices) @@ -428,15 +428,16 @@ def _ibverbs_device_names() -> Optional[set]: # Without an openable device the PD transfer backend silently falls back to TCP, -# and transfers then fail under load instead of at setup. -def _check_rdma_openable() -> None: +# and transfers may then fail under load; warn so such failures are traceable. +def _warn_if_rdma_unopenable() -> None: if not _get_available_ib_devices(): return if _ibverbs_device_names() == set(): - raise RuntimeError( - f"Active RDMA devices are listed in {_IB_SYSFS} but ibverbs can open " - "none; the PD transfer backend would lose RDMA. " - "Check /dev/infiniband in the container." + logger.warning( + "Active RDMA devices are listed in %s but ibverbs can open none; " + "the PD transfer backend will fall back to TCP. " + "Check /dev/infiniband in the container.", + _IB_SYSFS, )