[model-gateway] rename py_test to e2e_test (#16454)
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -34,7 +34,7 @@
|
||||
/sgl-model-gateway @slin1237 @CatherineSue
|
||||
/sgl-model-gateway/benches @slin1237
|
||||
/sgl-model-gateway/bindings/python @CatherineSue @key4ng @slin1237
|
||||
/sgl-model-gateway/py_test @CatherineSue @key4ng
|
||||
/sgl-model-gateway/e2e_test @CatherineSue @key4ng
|
||||
/sgl-model-gateway/src/config @slin1237
|
||||
/sgl-model-gateway/src/core @slin1237
|
||||
/sgl-model-gateway/src/data_connector @key4ng
|
||||
|
||||
6
.github/workflows/pr-test-rust.yml
vendored
6
.github/workflows/pr-test-rust.yml
vendored
@@ -203,7 +203,7 @@ jobs:
|
||||
source "$HOME/.cargo/env"
|
||||
python3 -m pip --no-cache-dir install --upgrade --ignore-installed blinker
|
||||
python3 -m pip --no-cache-dir install --upgrade genai-bench==0.0.2
|
||||
pytest py_test/e2e_http -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
pytest e2e_test/e2e_http -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
|
||||
- name: Upload benchmark results
|
||||
if: success()
|
||||
@@ -301,14 +301,14 @@ jobs:
|
||||
bash scripts/killall_sglang.sh "nuk_gpus"
|
||||
cd sgl-model-gateway
|
||||
source "$HOME/.cargo/env"
|
||||
SHOW_ROUTER_LOGS=1 pytest --reruns 3 --reruns-delay 2 py_test/e2e_response_api -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
SHOW_ROUTER_LOGS=1 pytest --reruns 3 --reruns-delay 2 e2e_test/e2e_response_api -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
|
||||
- name: Run Python E2E gRPC tests
|
||||
run: |
|
||||
bash scripts/killall_sglang.sh "nuk_gpus"
|
||||
cd sgl-model-gateway
|
||||
source "$HOME/.cargo/env"
|
||||
SHOW_ROUTER_LOGS=1 ROUTER_LOCAL_MODEL_PATH="/home/ubuntu/models" pytest py_test/e2e_grpc -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
SHOW_ROUTER_LOGS=1 ROUTER_LOCAL_MODEL_PATH="/home/ubuntu/models" pytest e2e_test/e2e_grpc -s -vv -o log_cli=true --log-cli-level=INFO
|
||||
|
||||
- name: Cleanup Brave MCP Server
|
||||
if: always()
|
||||
|
||||
@@ -120,7 +120,7 @@ python-clean: ## Clean Python build artifacts
|
||||
|
||||
python-test: ## Run Python tests
|
||||
@echo "Running Python tests..."
|
||||
@pytest py_test/ -v
|
||||
@pytest e2e_test/ -v
|
||||
|
||||
python-check: ## Check Python package with twine
|
||||
@echo "Checking Python package..."
|
||||
|
||||
@@ -1001,7 +1001,7 @@ cd bindings/python && maturin develop
|
||||
|
||||
# Run Python tests
|
||||
cd ../.. # Back to sgl-model-gateway root
|
||||
pytest py_test/
|
||||
pytest e2e_test/
|
||||
```
|
||||
For production builds, use `maturin build --release --out dist` from the `bindings/python/` directory to create optimized wheels. During development, `maturin develop` rebuilds and installs instantly without creating wheel files. Use `python -m sglang_router.launch_server` to co-launch router and SGLang workers in small clusters for local validation.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ with minimal changes:
|
||||
- All test logic and assertions remain identical
|
||||
|
||||
Run with:
|
||||
pytest py_test/e2e_grpc/e2e_grpc/function_call/test_openai_function_calling.py -v
|
||||
pytest e2e_test/e2e_grpc/e2e_grpc/function_call/test_openai_function_calling.py -v
|
||||
"""
|
||||
|
||||
import json
|
||||
@@ -9,7 +9,7 @@ with minimal changes:
|
||||
- All test logic and assertions remain identical
|
||||
|
||||
Run with:
|
||||
pytest py_test/e2e_grpc/e2e_grpc/validation/test_openai_server_ignore_eos.py -v
|
||||
pytest e2e_test/e2e_grpc/e2e_grpc/validation/test_openai_server_ignore_eos.py -v
|
||||
"""
|
||||
|
||||
import sys
|
||||
@@ -1,5 +1,5 @@
|
||||
[pytest]
|
||||
testpaths = py_test
|
||||
testpaths = e2e_test
|
||||
python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
|
||||
Reference in New Issue
Block a user