test(parquet): rfc0005.6 row-group sizing test, flip rfc 0005 to green - #217
Conversation
|
Warning Review limit reached
More reviews will be available in 48 minutes and 2 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a new ChangesRFC 0005 Parquet sizing test and green promotion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Pull request overview
This PR closes the remaining acceptance-test gap for RFC 0005 (Parquet storage) by adding the missing RFC0005.6 row-group sizing integration test and updating documentation to reflect RFC 0005’s current maturity as green.
Changes:
- Add an
#[ignore]d heavyweight integration test that writes >256 MiB via the production ParquetWriterand asserts non-final row groups land within the RFC 0005 §3.5 / hazards H4 sizing band. - Flip RFC 0005 frontmatter
status: drafted→status: greenand add a status note mapping all §5 scenarios to concrete tests. - Update
docs/roadmap.mdto reflect RFC 0005 asgreenand document how the heavyweight sizing test is run.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/roadmap.md | Updates the RFC ladder table entry for RFC 0005 to green and references the new sizing test. |
| docs/rfcs/0005-parquet-storage.md | Flips RFC status to green and adds a scenario→test status note including the new RFC0005.6 test. |
| crates/ourios-parquet/tests/sizing.rs | Introduces the RFC0005.6 heavyweight integration test validating row-group sizing bounds from emitted Parquet metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/roadmap.md`:
- Line 104: The roadmap document has been edited on line 104 to update the
Parquet storage status, but the "Last updated" timestamp on line 5 has not been
bumped to reflect this change. Update the "Last updated" date value to match the
current date to ensure the document metadata accurately reflects when the
content was last modified.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 374fa1e7-c9a9-41ba-9c64-de7aae23a48e
📒 Files selected for processing (3)
crates/ourios-parquet/tests/sizing.rsdocs/rfcs/0005-parquet-storage.mddocs/roadmap.md
24ff575 to
460b80b
Compare
What
Closes the last gap for RFC 0005 (Parquet storage) →
green: the one acceptance scenario without a test, RFC0005.6 (row-group size lands inside the H4 target), plus the ladder flipdrafted → green.13 of the 14 §5 scenarios were already implemented and tested — the
draftedlabel was stale (the storage layer landed early under PR #41 + the PR-D..G series and the status was never advanced). This PR adds the missing test and records reality.RFC0005.6 test (
crates/ourios-parquet/tests/sizing.rs)Per the RFC §6 testing strategy: an
#[ignore]d integration test that pushes >256 MiB of mined records through the production writer (Writer::append_records/close, not the corpus-mode single-file path), parses the emitted file's Parquet footer, and asserts every non-final row group's uncompressedtotal_byte_size∈ [128 MiB, 1 GiB] (the final group carries the remainder). It also asserts ≥2 row groups, so the 128 MiB flush actually split.Verified locally (CI does not run
#[ignore]tests — §7's open "scheduled cadence" question):cargo test -p ourios-parquet --ignored→ ok, ~6.8 s dev / ~0.9 s release.A fixture note worth recording: the body content must be high-entropy. My first cut used repetitive bodies, which compress away in the writer's in-progress buffer so the 128 MiB flush never trips → one row group. High-entropy bodies (same generator shape as
no_body_dict.rs) make the buffered uncompressed size track real bytes. So the test also implicitly guards that the sizing path keys off real volume.Ladder flip
status: drafted → green+ a status note mapping all 14 scenarios to their tests and flagging the §7 non-gating open items (codec tuning, bloom FPR, audit retention, CI cadence).docs/roadmap.md§3 status cell updated to match (the authoritative current-state table; the §§4+ narrative is disclaimer-flagged as predating).Direct
drafted → greenflip with a documented note (precedent: RFC 0009 #210, RFC 0008's green→accepted) — everything pastspecified/redwas already satisfied.Invariants
Touches §3.5 (row-group sizing / hazard H4) — this PR adds the acceptance test for that invariant; no behavior change to the writer. No schema change.
🤖 Generated with Claude Code
Summary by CodeRabbit
Tests
Documentation