-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added an optional_import check for onnxruntime and applied the @unitt… #8641
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
Conversation
…est.skipUnless decorator to the test_onnx method. Signed-off-by: ytl0623 <david89062388@gmail.com>
WalkthroughThis change adds an optional import check for the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes This is a straightforward pattern: single file modified, standard optional dependency check, and a skip decorator applied to one test method. No complex logic or structural changes involved. Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.py⚙️ CodeRabbit configuration file
Files:
🧬 Code graph analysis (1)tests/apps/detection/networks/test_retinanet.py (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). (19)
🔇 Additional comments (2)
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 |
for more information, see https://pre-commit.ci
ericspod
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.
Hi @ytl0623 thanks for this fix, I don't think this conflicts with anything else we're working on so I can approve now.
|
/build |
2 similar comments
|
/build |
|
/build |
|
/build |
|
Hi @ytl0623, the gitlab server down yesterday, and the team are trying to resolve the issue. |
…est.skipUnless decorator to the test_onnx method.
Fixes #8533 .
Description
Added an optional_import check for onnxruntime and applied the @unittest.skipUnless decorator to the test_onnx method. This ensures the ONNX tests are automatically skipped if the onnxruntime dependency is missing, preventing the test suite from hanging.
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.