@@ -37,6 +37,39 @@ def test_serve_command_launches_local_server_without_scheduler(tmp_path):
3737 assert env ["SGLANG_ENABLE_JIT_DEEPGEMM" ] == "0"
3838
3939
40+ def test_join_command_does_not_inject_runtime_defaults (tmp_path ):
41+ launch_script = tmp_path / "src" / "parallax" / "launch.py"
42+ launch_script .parent .mkdir (parents = True )
43+ launch_script .touch ()
44+
45+ args = Namespace (scheduler_addr = "auto" , skip_upload = True , use_relay = False )
46+
47+ with (
48+ patch .object (cli , "check_python_version" ),
49+ patch .object (cli , "get_project_root" , return_value = Path (tmp_path )),
50+ patch .object (cli .sys , "executable" , "/repo/.venv/bin/python" ),
51+ patch .object (cli , "_execute_with_graceful_shutdown" ) as execute ,
52+ ):
53+ cli .join_command (args , ["--log-level" , "DEBUG" ])
54+
55+ cmd = execute .call_args .args [0 ]
56+ env = execute .call_args .kwargs ["env" ]
57+
58+ assert cmd == [
59+ "/repo/.venv/bin/python" ,
60+ str (launch_script ),
61+ "--scheduler-addr" ,
62+ "auto" ,
63+ "--log-level" ,
64+ "DEBUG" ,
65+ ]
66+ assert "--max-num-tokens-per-batch" not in cmd
67+ assert "--max-sequence-length" not in cmd
68+ assert "--max-batch-size" not in cmd
69+ assert "--kv-block-size" not in cmd
70+ assert env ["SGLANG_ENABLE_JIT_DEEPGEMM" ] == "0"
71+
72+
4073def test_main_dispatches_serve_command_with_passthrough_args ():
4174 with (
4275 patch .object (
0 commit comments