[router] fix router release workflow and add build test in PR (#12315)

This commit is contained in:
Chang Su
2025-10-29 08:11:45 -07:00
committed by GitHub
parent 1e90fe2ed1
commit 400bddf24c
13 changed files with 99 additions and 39 deletions
@@ -28,7 +28,7 @@ def setup_logger():
return logger
from sglang_router_rs import PolicyType
from sglang_router.sglang_router_rs import PolicyType
class TestSetupLogger:
@@ -742,7 +742,7 @@ def test_router_defaults_and_start(monkeypatch):
assert captured["decode_selector"] is None
assert captured["cors_allowed_origins"] is None
assert captured["worker_urls"] == ["http://w1:8000"]
from sglang_router_rs import PolicyType
from sglang_router.sglang_router_rs import PolicyType
assert captured["policy"] == PolicyType.RoundRobin