[Bugfix] fix nightly multi-node EPLB tests' "DYNAMIC_EPLB=true" environment not working (#4223)
### What this PR does / why we need it? fix nightly multi-node EPLB tests by adjusting vllm_ascend\eplb\core\eplb_utils.py dynamic_eplb gate checking ### Does this PR introduce _any_ user-facing change? no - vLLM version: v0.11.0 - vLLM main: https://github.com/vllm-project/vllm/commit/2918c1b49c88c29783c86f78d2c4221cb9622379 --------- Signed-off-by: 白永斌 <baiyongbin3@h-partners.com> Signed-off-by: 欧派果奶我还要 <47294568+845473182@users.noreply.github.com> Co-authored-by: 白永斌 <baiyongbin3@h-partners.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
4 files changed
+20
-7
No files matched your search
@@ -128,7 +128,7 @@ class TestEPLBParamUtils:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=
|
||||
'Can not enable dynamic_eplb when not export DYNAMIC_EPLB="true".'
|
||||
'Can not enable dynamic_eplb when DYNAMIC_EPLB is not set to "true" or "1".'
|
||||
):
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
@@ -136,7 +136,7 @@ class TestEPLBParamUtils:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=
|
||||
'Can not enable dynamic_eplb when not export DYNAMIC_EPLB="true".'
|
||||
'Can not enable dynamic_eplb when DYNAMIC_EPLB is not set to "true" or "1".'
|
||||
):
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
@@ -144,7 +144,7 @@ class TestEPLBParamUtils:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=
|
||||
'Can not enable dynamic_eplb when not export DYNAMIC_EPLB="true".'
|
||||
'Can not enable dynamic_eplb when DYNAMIC_EPLB is not set to "true" or "1".'
|
||||
):
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
@@ -152,6 +152,12 @@ class TestEPLBParamUtils:
|
||||
monkeypatch.setenv("DYNAMIC_EPLB", "true")
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
monkeypatch.setenv("DYNAMIC_EPLB", "True")
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
monkeypatch.setenv("DYNAMIC_EPLB", "1")
|
||||
EPLBParamUtils.check_dynamic_eplb(True)
|
||||
|
||||
def test_check_expert_map_path_none(self):
|
||||
EPLBParamUtils.check_expert_map_path(None)
|
||||
|
||||
|
||||
Reference in new issue
Block a user