-
Notifications
You must be signed in to change notification settings - Fork 629
fix: Cleanup Parser Library Tests #3452
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
fix: Cleanup Parser Library Tests #3452
Conversation
👋 Hi ronantakizawa! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
WalkthroughDeletes the entire preprocessor test module under lib/llm/tests, removing Hugging Face token handling, model download helpers, ModelDeploymentCard builders, and multiple async prompt formatting tests with snapshots and tool scenarios. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ 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)
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 |
2cb593f
to
7ae3d95
Compare
Signed-off-by: Ronan Takizawa <[email protected]>
7ae3d95
to
a15611c
Compare
Hi @ronantakizawa, Can you elaborate on the motivation and goal of removing these files? Do you have some analysis on test/feature coverage with/without? |
Signed-off-by: Ronan Takizawa <[email protected]>
@rmccorm4 this was an attempt to fix issue #3399 that used unrealistic/mock data instead of actual engine responses from vLLM, sglang, or trtllm. I removed |
Signed-off-by: ronantakizawa <[email protected]>
6dcd48b
to
e6ac0cb
Compare
@ronantakizawa Thanks for your contribution. We really don't want to delete any test files. The cleanup required is mostly on removing redundant tests but there are many unit tests that test the core functionality of the code. |
Overview:
Remove parser library tests that use mock data instead of actual engine responses from
vLLM, sglang, or trtllm engines.
Details:
This PR removes two test files from the parser library:
lib/llm/tests/test_jail.rs
(2,553 lines) - Contains ~40 unit tests that use manually createdmock data via helper functions like
create_mock_response_chunk()
.lib/llm/tests/preprocessor.rs
(495 lines) - Contains tests that download HuggingFace modelsto test prompt formatting, but do not test against realistic engine streaming data.
Where should the reviewer start?
lib/llm/tests/test_parsers_e2e.rs
still provides adequate test coverage with realengine data
Related Issues:
Summary by CodeRabbit