Skip to content

Conversation

@keivenchang
Copy link
Contributor

Overview:

Refactors the frontend vLLM tests to use shared dynamic-port fixtures and the shared DynamoFrontendProcess implementation. This improves parallel-safety and reduces flaky behavior from port collisions or overly-broad process cleanup.

Details:

  • Update tests/frontend/test_vllm.py to use runtime_services_dynamic_ports and ServicePorts for all frontend/worker URLs
  • Add per-test pytest.mark.timeout(...) annotations based on measured runtimes and record total suite wall time in the test file header
  • Move shared port wiring into tests/conftest.py via dynamo_dynamic_ports + num_system_ports, using ServicePorts from tests/utils/port_utils.py
  • Prevent a Tokio runtime drop panic during tokenizer/encoding initialization in the parsers layer

Where should the reviewer start?

tests/frontend/test_vllm.py
tests/conftest.py
tests/utils/managed_process.py
tests/utils/port_utils.py
lib/parsers/src/reasoning/gpt_oss_parser.rs

Related Issues: (use Closes / Fixes / Resolves / Relates to)

DIS-1193, DIS-1194

/coderabbit profile chill

@keivenchang keivenchang self-assigned this Dec 18, 2025
@keivenchang keivenchang changed the title refactor: consolidate frontend vLLM tests around shared dynamic ports refactor: frontend vLLM tests to use shared dynamic ports Dec 18, 2025
@keivenchang keivenchang changed the title refactor: frontend vLLM tests to use shared dynamic ports refactor: frontend/test_vllm.py to use shared dynamic ports Dec 18, 2025
@keivenchang keivenchang force-pushed the keivenchang/DIS-1193__refactor-common-dynamic-ports-part7 branch from 2fbee30 to dfc5606 Compare December 18, 2025 05:49
- Use runtime_services_dynamic_ports + shared ServicePorts/dynamo_dynamic_ports for xdist-safe ports\n- Avoid terminating pytest by default in DynamoFrontendProcess\n- Prevent tokio runtime drop panic during tokenizer/encoding initialization\n- Add per-test pytest timeouts and record suite runtime

Signed-off-by: Keiven Chang <[email protected]>
@keivenchang keivenchang force-pushed the keivenchang/DIS-1193__refactor-common-dynamic-ports-part7 branch from dfc5606 to 3cded94 Compare December 19, 2025 02:09
Signed-off-by: Keiven Chang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants