test(rfc0016): red — §5 query-endpoint stubs + status - #282
Conversation
Encode the seven RFC 0016 §5 acceptance scenarios as #[ignore]d todo!() stubs (greppable RFC0016.N ids, verification.md §2.3 doc format) and flip the RFC status specified -> red: .1 serves a DSL query end-to-end; .2 tenant header enforced at the API; .3 drift routes to run_drift; .4 malformed DSL → 400 no engine leak (H6); .5 role gating + graceful shutdown; .6 pruning observable + OTel metric; .7 receiver + querier compose in one binary. Stubs are #[ignore]d so default cargo test (and CI) stays green while the querier role lands; green fills each body and removes the #[ignore]. 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)
📝 WalkthroughWalkthroughAdds a new test file ChangesRFC0016 Red-phase test stubs and status update
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
This PR advances RFC 0016 (query-serving endpoint) from specified to red by adding compile-only, #[ignore]d acceptance-test stubs (that fail via todo!() when run with ignored tests), and updating the RFC’s frontmatter status accordingly.
Changes:
- Flip RFC 0016 status from
specified→redin the RFC frontmatter. - Add seven
#[ignore]dtodo!()acceptance-test stubs inourios-servercovering RFC 0016 §5 scenarios (.1–.7).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/rfcs/0016-query-serving-endpoint.md | Updates RFC 0016 frontmatter status to red to reflect the presence of red-gate stubs. |
| crates/ourios-server/tests/rfc0016_query_endpoint.rs | Adds #[ignore]d todo!() stubs for each RFC 0016 §5 acceptance scenario, following the project’s red-gate testing pattern. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RFC 0016 — query-serving endpoint (red)
Encodes the seven §5 acceptance scenarios as
#[ignore]dtodo!()stubs and flips the RFC statusspecified → red(its RFC 0017 dependency — the typed-row payload — is now green in main).POST /v1/query→run_query→ 200 with rows + pruning statsX-Ourios-Tenantenforced at the API; missing header → 400 pre-scandrift …routes torun_drift→DriftResultBare
todo!()bodies (no impl refs) → the stubs compile and are#[ignore]d, so defaultcargo test/ CI stay green. Green follows scenario-group by scenario-group (transport + handler, then env-gating/main wiring, then metrics).🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
Tests
Documentation