Skip to content

test: capture raw quarantine regressions - #347

Merged
Sinity merged 1 commit into
masterfrom
feature/test/raw-quarantine-regressions
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/test/raw-quarantine-regressions

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026

Copy link
Copy Markdown
Owner

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

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

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 10 minutes and 55 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e5363404-caae-4ad0-a511-515ea66791f8

📥 Commits

Reviewing files that changed from the base of the PR and between b53ae96 and 8c85b0d.

📒 Files selected for processing (2)
  • tests/unit/cli/test_check.py
  • tests/unit/pipeline/test_quarantine_fixtures.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/raw-quarantine-regressions

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit f97a0ab into master Apr 22, 2026
12 checks passed
@Sinity
Sinity deleted the feature/test/raw-quarantine-regressions branch April 22, 2026 05:07
Sinity added a commit that referenced this pull request Apr 22, 2026
## 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
```
Sinity added a commit that referenced this pull request Apr 22, 2026
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
Sinity added a commit that referenced this pull request Apr 22, 2026
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
Sinity added a commit that referenced this pull request Apr 22, 2026
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
@Sinity

Sinity commented May 1, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Sinity
Sinity requested a review from Copilot May 1, 2026 01:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: capture raw quarantine regression cases

2 participants