Repository navigation
test: align mixed-jsonl unknown ingest with terminal decode contract - #4232
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns the last corpus-red test with the terminal-decode contract #4229 deliberately established for malformed unknown JSONL.
Problem (evidence)
Corpus run 5 (
215385b4, master496bc2004) failed 2 tests. This one,test_unknown_mixed_jsonl_prefetch_falls_back_to_strict_decode, expected the pre-#4229 clip-then-parse-prefix behavior: a mixed file (one valid record + one malformed line) was clipped at the valid prefix and classifiedterminal_unknown_export_no_session/unsupported_parseable. #4229 made a malformed record anywhere a terminal decode verdict (terminal_unknown_json_decode/decode_failed) — exactly what the fully-malformed cases intest_live_batch_supportnow assert. The mixed case reaching the same verdict is the consistent contract; the test's protective intent (no session materialized from a partial unknown conversation, terminal not retried) is unchanged and still asserted.Verification
devtools test tests/unit/sources/test_live_watcher_parse_stage_equivalence.py→ 3 passed.devtools verify --quick→ all 15 gates ok.Residuals
test_submit_failure_cleans_every_admitted_future_and_reservation, passes in isolation and in the corpus-6 lane's full-file run — an ordering-sensitive flake under corpus parallelism, being handled separately if it recurs in run 6.🤖 Generated with Claude Code
https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA