Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
8be0e1bc
Unverified
Commit
8be0e1bc
authored
Nov 06, 2025
by
Keyang Ru
Committed by
GitHub
Nov 06, 2025
Browse files
fix ci (#12760)
parent
8e1d6756
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
.github/workflows/pr-test-rust.yml
.github/workflows/pr-test-rust.yml
+6
-4
sgl-router/py_test/conftest.py
sgl-router/py_test/conftest.py
+9
-2
No files found.
.github/workflows/pr-test-rust.yml
View file @
8be0e1bc
...
...
@@ -166,10 +166,10 @@ jobs:
source "$HOME/.cargo/env"
export RUSTC_WRAPPER=sccache
cd sgl-router
python3 -m venv .venv
python3 -m pip install --upgrade pip maturin
maturin develop --release --profile ci --features vendored-openssl
pip uninstall -y sglang-router
maturin build --release --profile ci --features vendored-openssl
pip install target/wheels/*.whl
-
name
:
Run Python unit tests
run
:
|
...
...
@@ -266,7 +266,9 @@ jobs:
cd sgl-router
python3 -m venv .venv
python3 -m pip install --upgrade pip maturin
maturin develop --release --profile ci --features vendored-openssl
pip uninstall -y sglang-router
maturin build --release --profile ci --features vendored-openssl
pip install target/wheels/*.whl
-
name
:
Run Python E2E response API tests
run
:
|
...
...
sgl-router/py_test/conftest.py
View file @
8be0e1bc
import
sys
from
importlib.util
import
find_spec
from
pathlib
import
Path
# Ensure local sources in py_src are importable ahead of any installed package
# Only add py_src to path if the wheel is not installed (for local development)
# This ensures CI tests use the installed wheel which contains the Rust extension
_ROOT
=
Path
(
__file__
).
resolve
().
parents
[
1
]
_SRC
=
_ROOT
/
"py_src"
if
str
(
_SRC
)
not
in
sys
.
path
:
# Check if sglang_router is already installed with the Rust extension
_wheel_installed
=
find_spec
(
"sglang_router.sglang_router_rs"
)
is
not
None
# Only add py_src if wheel is not installed (development mode)
if
not
_wheel_installed
and
str
(
_SRC
)
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
str
(
_SRC
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment