Repository navigation
fix(parser): split JSONL records only on newline characters - #20029
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe parser now splits JSONL content only on literal newline characters. This preserves Unicode line and paragraph separators inside JSON string values. New parametrized tests cover detection and parsing with ChangesJSONL Separator Handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to JSONL records continue to parse with LF and CRLF while Unicode separators inside strings are preserved. No concrete merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. A rabbit hops through JSON lines Comment |
|
LGTM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20029 +/- ##
=======================================
Coverage 38.07% 38.07%
=======================================
Files 54 54
Lines 15500 15500
Branches 125 125
=======================================
Hits 5902 5902
Misses 9570 9570
Partials 28 28 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Split JSONL records on LF in both format detection and parsing. Python splitlines also splits valid Unicode characters inside JSON strings, which can make a valid file produce no chunks. CRLF remains supported.
Validation
JSON Lines specifies LF record separators: https://jsonlines.org/
No public issue has been filed. Investigation, code, and tests used AI assistance.