Repository navigation
test: capture raw quarantine regressions - #347
Conversation
|
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 10 minutes and 55 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: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
## Summary Closes #328. Adds focused regression coverage for legitimate raw quarantine failures seen during archive repair: zero-length raw blobs and malformed JSONL records. ## Problem The existing quarantine coverage mostly exercised `ingest_record` result objects and schema-verifier internals. The deployment-readiness gap was proving that these failure shapes persist through the raw validation path and remain visible in the operator-facing `doctor --schemas --schema-quarantine-malformed` output. ## Solution - Added validation-flow coverage in `tests/unit/pipeline/test_quarantine_fixtures.py` proving zero-length and malformed JSONL records persist as failed validation rows with `parse_error`, stay unparsed, and classify as quarantined. - Added a real CLI regression in `tests/unit/cli/test_check.py` proving `doctor --schemas --schema-quarantine-malformed` reports `decode_errors=1 quarantined=1` and persists the quarantine state for malformed JSONL. - Kept the existing recoverable malformed JSONL validation-off behavior unchanged. ## Verification ```bash pytest tests/unit/pipeline/test_quarantine_fixtures.py -q pytest tests/unit/cli/test_check.py -q -k quarantine ruff format --check tests/unit/pipeline/test_quarantine_fixtures.py tests/unit/cli/test_check.py ruff check tests/unit/pipeline/test_quarantine_fixtures.py tests/unit/cli/test_check.py devtools verify git push -u origin feature/test/raw-quarantine-regressions # pre-push: devtools verify --quick ```
Existing quarantine coverage mostly exercised `ingest_record` result objects and schema-verifier internals. The deployment- readiness gap was proving that these failure shapes persist through the raw validation path and remain visible in the operator-facing `doctor --schemas --schema-quarantine-malformed` output. Adds validation-flow coverage in `test_quarantine_fixtures.py` proving zero-length and malformed JSONL records persist as failed validation rows with `parse_error`, stay unparsed, and classify as quarantined. Adds a real CLI regression in `test_check.py` proving `doctor --schemas --schema-quarantine-malformed` reports `decode_errors=1 quarantined=1` and persists the quarantine state for malformed JSONL. Keeps the existing recoverable malformed JSONL validation-off behavior unchanged. Verification: ruff + pytest over quarantine-fixtures and check suites; devtools verify green. Closes #328
Existing quarantine coverage mostly exercised `ingest_record` result objects and schema-verifier internals. The deployment- readiness gap was proving that these failure shapes persist through the raw validation path and remain visible in the operator-facing `doctor --schemas --schema-quarantine-malformed` output. Adds validation-flow coverage in `test_quarantine_fixtures.py` proving zero-length and malformed JSONL records persist as failed validation rows with `parse_error`, stay unparsed, and classify as quarantined. Adds a real CLI regression in `test_check.py` proving `doctor --schemas --schema-quarantine-malformed` reports `decode_errors=1 quarantined=1` and persists the quarantine state for malformed JSONL. Keeps the existing recoverable malformed JSONL validation-off behavior unchanged. Verification: ruff + pytest over quarantine-fixtures and check suites; devtools verify green. Closes #328
Existing quarantine coverage mostly exercised `ingest_record` result objects and schema-verifier internals. The deployment- readiness gap was proving that these failure shapes persist through the raw validation path and remain visible in the operator-facing `doctor --schemas --schema-quarantine-malformed` output. Adds validation-flow coverage in `test_quarantine_fixtures.py` proving zero-length and malformed JSONL records persist as failed validation rows with `parse_error`, stay unparsed, and classify as quarantined. Adds a real CLI regression in `test_check.py` proving `doctor --schemas --schema-quarantine-malformed` reports `decode_errors=1 quarantined=1` and persists the quarantine state for malformed JSONL. Keeps the existing recoverable malformed JSONL validation-off behavior unchanged. Verification: ruff + pytest over quarantine-fixtures and check suites; devtools verify green. Closes #328
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Closes #328.
Adds focused regression coverage for legitimate raw quarantine failures seen during archive repair: zero-length raw blobs and malformed JSONL records.
Problem
The existing quarantine coverage mostly exercised
ingest_recordresult objects and schema-verifier internals. The deployment-readiness gap was proving that these failure shapes persist through the raw validation path and remain visible in the operator-facingdoctor --schemas --schema-quarantine-malformedoutput.Solution
tests/unit/pipeline/test_quarantine_fixtures.pyproving zero-length and malformed JSONL records persist as failed validation rows withparse_error, stay unparsed, and classify as quarantined.tests/unit/cli/test_check.pyprovingdoctor --schemas --schema-quarantine-malformedreportsdecode_errors=1 quarantined=1and persists the quarantine state for malformed JSONL.Verification
pytest tests/unit/pipeline/test_quarantine_fixtures.py -q pytest tests/unit/cli/test_check.py -q -k quarantine ruff format --check tests/unit/pipeline/test_quarantine_fixtures.py tests/unit/cli/test_check.py ruff check tests/unit/pipeline/test_quarantine_fixtures.py tests/unit/cli/test_check.py devtools verify git push -u origin feature/test/raw-quarantine-regressions # pre-push: devtools verify --quick