test(ingester): rfc0014 red — §5 ingest-write-path stubs + status - #242
Conversation
Advance RFC 0014 specified → red: six `#[ignore]`d acceptance stubs (RFC0014.1–.6) in crates/ourios-ingester/tests/rfc0014_ingest_write_path.rs, each carrying the verification.md §2.3 doc format (`/// Scenario <id> — …` + `/// See …§5.`) with `todo!()` bodies, so the scenario↔test mapping exists and CI stays green while the sink is built. `green` replaces each body with a real assertion against the buffering `ParquetRecordSink` and wires it into the miner in place of `NoOpRecordSink`. Stubs live in `ourios-ingester` (the ingest pipeline's home: miner emit + WAL rotation hook + ourios-parquet deps); placement of the buffer-trigger scenarios may shift next to the sink at `green`, while RFC0014.5 (crash recovery) extends the RFC 0008 WAL harness here. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe RFC0014 document status is updated from ChangesRFC0014 Red Phase
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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
Moves RFC 0014 from specified to red by landing ignored, failing acceptance-test stubs in the ingester crate and updating the RFC status metadata accordingly. This matches the project’s verification flow (specified → red → green) where red is a landable state with compiling #[ignore]d todo!() stubs.
Changes:
- Flip RFC 0014 frontmatter/status note from
specifiedtoredand document what theredPR includes. - Add six
#[ignore]d RFC0014.1–.6 acceptance-test stubs inourios-ingesterwithtodo!()bodies.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/rfcs/0014-ingest-write-path.md | Updates RFC status to red and notes that the red gate lands ignored acceptance stubs. |
| crates/ourios-ingester/tests/rfc0014_ingest_write_path.rs | Adds six ignored todo!() acceptance-test stubs for RFC0014 §5 scenarios. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RFC 0014
specified → red. The failing acceptance stubs that drive thegreenParquetRecordSinkbuild.What
#[ignore]d stubs RFC0014.1–.6 incrates/ourios-ingester/tests/rfc0014_ingest_write_path.rs, each with the verification.md §2.3 doc format (/// Scenario <id> — …+/// See …§5.) and atodo!()body.cargo test→ 6 ignored (CI stays green).red.Placement
Stubs live in
ourios-ingester— the ingest pipeline's home (miner emit + WAL rotation hook + ourios-parquet deps), where the sink will be wired. RFC0014.5 (crash recovery) extends the RFC 0008 WAL harness here; the buffer-trigger scenarios (.1–.4, .6) may move next to the sink atgreen.Next (
green, deferred)Build the buffering
ParquetRecordSink(per-partition buffers; hybrid size + age + WAL-rotation flush; hard byte-ceiling with blocking backpressure; reuse the RFC 0008 batch/rotation hook), un-#[ignore]the stubs, and wire it into the miner in place ofNoOpRecordSink. Then the follow-on server-Store-wiring slice greens RFC0013.6.🤖 Generated with Claude Code
Summary by CodeRabbit
Tests
Documentation