fix: harden test-inference scripts with error handling and cleanup#1804
fix: harden test-inference scripts with error handling and cleanup#1804WuKongAI-CMU wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
- Add SPDX license headers (missing from both scripts) - Add set -euo pipefail for strict error handling - Use mktemp instead of hardcoded /tmp/req.json to avoid collisions - Add trap to clean up temp file on exit - Add -f (fail on HTTP errors) and --max-time 30 to curl - Print trailing newline for readable output Signed-off-by: Peter Tam <nicholaslwk@gmail.com> Signed-off-by: peteryuqin <peter.yuqin@gmail.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 8 minutes and 20 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✨ Thanks for submitting this PR, which proposes a way to improve the robustness of test-inference scripts with better error handling and cleanup. |
Summary
set -euo pipefailto both test-inference scripts for fail-fast behavior/tmp/nemoclaw-test-req-XXXXXX.json) with proper cleanup trap--max-time 30and-sfflags to curl for bounded, silent-on-success requestsTest plan
🤖 Generated with Claude Code
Signed-off-by: Intern Dev dev@wukongai.io