Repository navigation
fix(id-benchmarks): remove duplicate adapters module (E0428) - #11202
Conversation
lib.rs declared adapters twice: as the file module and as an inline block holding only d1. The standalone crate failed to compile. Drop the inline block and declare d1 in adapters/mod.rs beside r2, so adapters::d1 resolves to src/adapters/d1.rs. Fixes #11178
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 59 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. |
Problem
The standalone
pkgs/id/benchmarkscrate does not compile on main:lib.rsdeclaresadapterstwice, once as the file module (pub mod adapters;) and once as an inline block (pub mod adapters { pub mod d1; }).cargo test --manifest-path pkgs/id/benchmarks/Cargo.tomlfails with E0428. The crate is not a workspace member, so no flake check catches it.Solution
src/lib.rs.pub mod d1;insrc/adapters/mod.rsnext topub mod r2;, soadapters::d1resolves tosrc/adapters/d1.rs(the same file the inline block was reaching).No adapter code changes.
Verification
cargo test --manifest-path pkgs/id/benchmarks/Cargo.tomlnow passes: d1_adapter 2, r2_adapter 6, redb_adapter 2, workload_oracle 2 (lib unittests 0).git diff --checkclean.Pre-existing
cargo fmt --checkdrift in d1.rs, r2/redb, and several tests is not changed here.Fixes #11178
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.