fix: allow relaxing numeric ranges for highly numeric datasets#661
fix: allow relaxing numeric ranges for highly numeric datasets#661mckornfield wants to merge 1 commit 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 (4)
📜 Recent review details⏰ Context from checks skipped due to timeout. (9)
🧰 Additional context used📓 Path-based instructions (15)**/*.{md,markdown,py}📄 CodeRabbit inference engine (.cursor/rules/agent-markdown-style.mdc)
Files:
**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/**/config/**/*.py📄 CodeRabbit inference engine (STYLE_GUIDE.md)
Files:
src/**/*.py📄 CodeRabbit inference engine (STYLE_GUIDE.md)
Files:
⚙️ CodeRabbit configuration file
Files:
**/*📄 CodeRabbit inference engine (STYLE_GUIDE.md)
Files:
⚙️ CodeRabbit configuration file
Files:
**/*.{py,sh,yaml,yml,md}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*.{py,pyi}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*.{py,md}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*.{py,sh}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
src/nemo_safe_synthesizer/config/**/*.py⚙️ CodeRabbit configuration file
Files:
src/nemo_safe_synthesizer/data_processing/**/*.py⚙️ CodeRabbit configuration file
Files:
src/nemo_safe_synthesizer/generation/**/*.py⚙️ CodeRabbit configuration file
Files:
**/test_*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
tests/**📄 CodeRabbit inference engine (.cursor/rules/repo-navigation.mdc)
Files:
tests/**/*.py📄 CodeRabbit inference engine (tests/TESTING.md)
Files:
⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (1)📚 Learning: 2026-05-27T22:20:37.354ZApplied to files:
🔇 Additional comments (4)
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: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Greptile SummaryAdds an
Confidence Score: 5/5Safe to merge — the change is opt-in (default keeps existing strict behavior), schema relaxation is applied consistently to both grammar and validation paths, and all callers receive the same schema object. The feature is backward-compatible, the relax_numeric_bounds implementation is correct, the schema is relaxed before create_processor so both the grammar constraint and jsonschema.validate stay in sync, TimeseriesBackend inherits the fix automatically, and the test suite covers the key behavioral contracts. No files require special attention. The only subtle point — shared non-float property dict references between the relaxed and original schemas — is safe because the original schema is immediately replaced by the relaxed one and goes unreferenced. Important Files Changed
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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
New Features
Tests