Repository navigation
test: link the remaining multi-file test suites into one binary - #5787
Conversation
moq-cli, moq-audio, moq-json, and moq-pattern still built one binary per `tests/*.rs` file. Each now builds one `tests/integration` binary, as moq-net, moq-relay, moq-tokio, and moq-uring do since #5689. moq-json's two suites shared an identical counting allocator, now declared once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
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 |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merge summary:
(Written by Claude Opus 5.5) |
Summary
Follow-up to #5689, which left four crates with several integration-test binaries each. Each of these now builds one
tests/integrationbinary:moq-cli: 4 binaries -> 1 (auth_serve,export,import,listen). These linkmoq-relayas a dev-dependency, so everymoq-netedit relinked all four.moq-audio: 3 -> 1 (import,playback,roundtrip).playbackis gated on its feature, but its empty binary still linked on every build without it.moq-json: 2 -> 1. Both suites declared an identical counting global allocator; it now lives once inmain.rs. Every test in the binary is an allocation test, so the shared allocator is intended.moq-pattern: 2 -> 1.pattern.jsonstays attests/pattern.json, wherejs/patternreads it.Relative
include_bytes!/include_str!paths gained one../. No recipe, nextest filter, or workflow named these binaries.Left apart, as in #5689: moq-net
loom,wasm,send,group_charge; moq-uringallocations; moq-relaydrills.Measurements
Probe: append a new
#[doc(hidden)] pub fntors/moq-net/src/lib.rs, thencargo test --locked --workspace --exclude moq-net-fuzz --no-run --timingsthrough mbx. Host loaded at about 35 on 24 threads, one sample per side, so treat these as magnitudes.An earlier pair under heavier, uneven load showed the same direction (84 s -> 17 s for the three crates).
Public API and wire impact
None. Nextest binary IDs for these crates become
<crate>::integrationwith<module>::<test>names.Checks
just check(7151 tests pass)just rs test -p moq-cli -p moq-audio -p moq-json -p moq-pattern(568 pass)cargo clippy -p moq-audio --features playback --tests -- -D warnings(Written by Claude Opus 5.5)
🤖 Generated with Claude Code