-
Notifications
You must be signed in to change notification settings - Fork 705
feat: parameterize request plane tests #4451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe runtime fixture in conftest.py is parametrized to execute tests with two transport options: tcp and nats. The fixture now dynamically selects the transport plane based on test parameters instead of hardcoding nats. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
lib/bindings/python/tests/conftest.py (1)
405-440: Parametrizedruntimefixture implementation looks correct; consider minor clarificationsUsing
params=["tcp", "nats"]andrequest.paramto feedrequest_planeintoDistributedRuntimeis idiomatic pytest and will correctly run eachruntime-using test against both transport modes. Lifecycle logic and the singleton/forked guard remain unchanged, so there are no new correctness or isolation issues from this change.Two small, optional improvements you might consider:
- Add a note to the
runtimedocstring that tests are executed for both"tcp"and"nats"request planes so readers understand the expanded coverage.- Optionally give the params explicit IDs, e.g.
params=[pytest.param("tcp", id="tcp"), pytest.param("nats", id="nats")], to make test names a bit clearer in pytest output.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
lib/bindings/python/tests/conftest.py(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
lib/bindings/python/tests/conftest.py (2)
lib/runtime/src/distributed.rs (2)
request_plane(438-440)runtime(291-293)lib/bindings/python/src/dynamo/_core.pyi (1)
DistributedRuntime(35-58)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
- GitHub Check: vllm (amd64)
- GitHub Check: trtllm (arm64)
- GitHub Check: vllm (arm64)
- GitHub Check: operator (arm64)
- GitHub Check: operator (amd64)
- GitHub Check: trtllm (amd64)
- GitHub Check: sglang (arm64)
- GitHub Check: sglang (amd64)
- GitHub Check: Build and Test - dynamo
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
|
|
||
|
|
||
| @pytest.fixture(scope="function", autouse=False) | ||
| @pytest.fixture(scope="function", autouse=False, params=["tcp", "nats"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to mark this for post merge / nightly (the "tcp" version?)
|
/ok to test 188448f |
kthui
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the goal here is to enable unit testing for both TCP and NATS first, and after switching the default from NATS to TCP, all other tests including E2E will be switched to testing on TCP and the unit tests will still provide minimal testing on NATS?
In my head, general guideline is - we'd test whatever features customers are using,
tcp is always on from now on. nats will be off once all users are not using nats anymore. |
Overview:
parameterize pytest to run unit tests with both request planes: nats and tcp
Details:
Where should the reviewer start?
Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit