test(server): rfc 0028 slice 2d — 8 test binaries fold into one harness - #403
Conversation
Pure moves + the harness main.rs; ci.yml's s3-integration job retargets the rfc0019 --exact names with their new module prefix in the same commit (RFC0028.5). rfc0016_6_query_metrics stays a dedicated binary (process-global OTel meter provider, RFC0028.2). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 2 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 (10)
✨ 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 2d for ourios-server by consolidating eight previously separate server integration-test binaries into a single tests/it/main.rs harness, leaving rfc0016_6_query_metrics.rs as the only dedicated integration-test binary due to its process-global OTel meter-provider installation. It also updates CI to keep S3/localstack integration coverage running under the new module-qualified test names.
Changes:
- Added a consolidated
crates/ourios-server/tests/it/main.rsharness that pulls eight moved integration suites in as modules. - Moved the eight integration suites into
crates/ourios-server/tests/it/*.rswithout changing test bodies (module-path prefixes now appear in test names). - Updated
.github/workflows/ci.ymlS3-integration job to invoke the ignored S3 tests by their newrfc0019_storage_backend::...exact names under--test it.
Reviewed changes
Copilot reviewed 2 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/ourios-server/tests/it/main.rs | New consolidated integration-test harness for the server crate. |
| crates/ourios-server/tests/it/rfc0003_16_served_binary.rs | Served-binary receiver suite moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0008_10_recovery_driver.rs | WAL recovery driver suite moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0013_6_wal_stays_local.rs | WAL-locality e2e suite moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0016_5_7_served_querier.rs | Process-boundary querier scenarios moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0016_query_endpoint.rs | In-process query endpoint acceptance scenarios moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0019_storage_backend.rs | Localstack S3-backed server scenarios moved under the harness as a module (still #[ignore]). |
| crates/ourios-server/tests/it/rfc0020_config_file.rs | Config-file acceptance scenarios moved under the harness as a module. |
| crates/ourios-server/tests/it/rfc0026_auth.rs | Auth acceptance/stub scenarios moved under the harness as a module. |
| .github/workflows/ci.yml | Retargets S3-integration CI invocation to --test it and module-qualified exact test names. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
What
RFC 0028 slice 2d — the server crate's 9 integration-test binaries become 2: 8 fold into the
tests/it/harness, andrfc0016_6_query_metrics.rsstays dedicated (it installs the process-global OTel meter provider — the RFC0028.2 exemption class, noted in the harness header). The served-binary suites spawn theourios-serverchild process, so they join the harness safely.ci.yml's s3-integration job retargets its--exactnames with therfc0019_storage_backend::module prefix in the same commit — the RFC0028.5 CI-parity lesson from #401, applied up front. No test body changed.RFC0028.1 — inventory proof
cargo test -p ourios-server -- --list: 90 tests before, 90 after; leaf-name sets identical after stripping module-path prefixes (snapshots below). The 8#[ignore]d S3/localstack tests moved with their file and stay#[ignore]d, now invoked by CI under their prefixed names.Indicative timing (not the RFC0028.3 gate)
Same machine, warm workspace:
touch crates/ourios-server/src/lib.rs && cargo test -p ourios-server --no-run— 65.7 s before, 50.5 s after (the bin + lib + exempt-metrics links dominate what remains).Invariants / hazards
CLAUDE.md §6.2 (tests are specifications): nothing weakened or deleted; the RFC0026/0019/0020 acceptance suites move intact.
Pre inventory (90)
Post inventory (90)
🤖 Generated with Claude Code