test(querier): rfc 0028 slice 2a — 19 test binaries fold into one harness - #400
Conversation
…ness Pure moves + mechanical scaffolding (tests/it/main.rs mod lines, crate::-prefixed common imports, one include_str! gaining a path segment): no test body changed (RFC0028.1). Nothing needs process isolation in this crate, so nothing is exempt (RFC0028.2). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 11 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (21)
✨ 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 implements RFC 0028 slice 2a for ourios-querier by consolidating the crate’s integration tests into a single tests/it/ harness to reduce DataFusion-heavy link count while preserving the existing test inventory and behavior.
Changes:
- Introduces a consolidated integration test harness at
crates/ourios-querier/tests/it/main.rsand moves former integration tests undertests/it/as modules. - Removes per-file
mod common;patterns and updates shared fixture imports/paths to usecrate::common. - Adjusts the one
include_str!path for the deeper test-module location.
Reviewed changes
Copilot reviewed 13 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/ourios-querier/tests/it/main.rs | New single-harness entrypoint that wires all integration-test modules. |
| crates/ourios-querier/tests/it/common/mod.rs | Consolidated shared fixtures for the harness (now referenced via crate::common). |
| crates/ourios-querier/tests/it/acceptance.rs | Acceptance-criteria mapping notes retained in harness module form. |
| crates/ourios-querier/tests/it/boundary.rs | Boundary/leakage integration test moved under harness. |
| crates/ourios-querier/tests/it/execution.rs | Execution-path integration tests moved under harness. |
| crates/ourios-querier/tests/it/forward_compat.rs | Forward-compat schema-drift integration tests moved under harness. |
| crates/ourios-querier/tests/it/manifest.rs | Manifest reader-side integration tests moved under harness. |
| crates/ourios-querier/tests/it/drift.rs | Drift integration tests updated to use crate::common fixtures. |
| crates/ourios-querier/tests/it/rfc0001_query_semantics.rs | Updated common-fixture references to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0001_time_preserved.rs | Updated common-fixture references to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0002_dsl.rs | Updated common imports and include_str! path for new module depth. |
| crates/ourios-querier/tests/it/rfc0005_13.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0005_14_alias_derivation.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0017_query_rows.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0017_registry.rs | RFC0017 registry scenario moved under harness. |
| crates/ourios-querier/tests/it/rfc0017_rendering.rs | RFC0017 rendering scenarios moved under harness. |
| crates/ourios-querier/tests/it/rfc0018_otlp_compliance.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0018_severity.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0022_attr_columns.rs | Updated common imports/paths to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0024_properties.rs | Updated common imports to crate::common under harness. |
| crates/ourios-querier/tests/it/rfc0025_rendering.rs | Updated common imports to crate::common under harness. |
Comments suppressed due to low confidence (2)
crates/ourios-querier/tests/it/rfc0001_query_semantics.rs:9
- These module docs still reference the pre-consolidation locations (
tests/rfc0002_dsl.rsandtests/common). After moving into thetests/itharness, the shared fixtures are provided bycrate::common, and keeping the docs accurate makes navigation much easier.
crates/ourios-querier/tests/it/rfc0001_time_preserved.rs:10 - The doc comment still refers to
tests/common, but the shared fixtures now live in the consolidated harness ascrate::common(tests/it/common). Updating the reference avoids pointing readers at a non-existent path.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The s3-integration job names the old rfc0013_object_store binary (now the it harness, module-prefixed names under --exact), and the weekly deep-run's parquet + querier lines target rfc0024_properties binaries consolidated by this PR and #400 — the querier line broke silently at #400 (schedule-only job). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ness (#401) * test(parquet): rfc 0028 slice 2b — 17 test binaries fold into one harness Pure moves (incl. the proptest-regressions sidecar, which resolves source-relative) + the harness main.rs: no test body changed (RFC0028.1); nothing needs process isolation (RFC0028.2). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * ci: retarget harness test invocations (RFC0028.5) The s3-integration job names the old rfc0013_object_store binary (now the it harness, module-prefixed names under --exact), and the weekly deep-run's parquet + querier lines target rfc0024_properties binaries consolidated by this PR and #400 — the querier line broke silently at #400 (schedule-only job). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
What
RFC 0028 slice 2a — the querier's 19 integration-test binaries fold into one
tests/it/harness (the same recipe as the ingester's #399). Pure file moves plus the §6-sanctioned mechanical scaffolding:tests/it/main.rsmodlines, removal of the 12 duplicatedmod common;declarations,crate::-prefixedcommonimports/paths, and oneinclude_str!gaining a../segment for the new file depth. No test body changed.RFC0028.1 — inventory proof
cargo test -p ourios-querier -- --list: 162 tests before, 162 after; leaf-name sets identical after stripping module-path prefixes (both snapshots below).RFC0028.2 — exemptions
None: no querier test installs the process-global meter provider, mutates the environment, or otherwise needs its own process.
Indicative timing (not the RFC0028.3 gate)
Same machine, warm workspace:
touch crates/ourios-querier/src/lib.rs && cargo test -p ourios-querier --no-run— 88.8 s before, 50.0 s after (1.8×). The remaining cost is the two unavoidable DataFusion links (lib-test + the one harness); the authoritative RFC0028.3 probe re-run happens once slice 2 completes across crates, recorded in epic #382.Invariants / hazards
CLAUDE.md §6.2 (tests are specifications): nothing weakened or deleted — the inventory proof is this PR's shape.
Pre inventory (162)
Post inventory (162)
🤖 Generated with Claude Code