fix: allow relaxing numeric ranges for highly numeric datasets#661
fix: allow relaxing numeric ranges for highly numeric datasets#661mckornfield wants to merge 2 commits into
Conversation
Signed-off-by: Matt Kornfield <mkornfield@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (10)
WalkthroughAdds configurable floating-point range enforcement. Disabled enforcement removes numeric bounds from generation schemas while retaining integer and enum constraints, with tests covering nullable types, immutability, and schemas generated from data. ChangesNumeric range enforcement
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Greptile SummaryThis PR adds a new
Confidence Score: 5/5Safe to merge. The change is additive and opt-in (default keeps existing strict behaviour), the schema relaxation is isolated to a single well-tested helper, and the relaxed schema is applied consistently to all downstream consumers in VllmBackend. All changed code paths are straightforward and additive. The new enforce_numeric_range flag defaults to True, so no existing behaviour changes without an explicit opt-in. The relax_numeric_bounds helper is pure (no side effects on its input), its logic correctly handles string types, nullable type arrays, integer bounds, and enum constraints, and the test suite covers all four of those cases including an end-to-end round-trip with make_json_schema. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "docs: shorten enforce_numeric_range Fiel..." | Re-trigger Greptile |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Matt Kornfield <mkornfield@nvidia.com>
Summary
Pre-Review Checklist
Ensure that the following pass:
mise run format && mise run checkor via prek validation.mise run testpasses locallymise run test:e2epasses locallymise run test:ci-containerpasses locally (recommended)/syncon this PR to trigger a run (auto-triggers on ready-for-review)Pre-Merge Checklist
Other Notes
Summary by CodeRabbit