Skip to content

id benchmarks: standalone crate does not compile — adapters module defined twice in lib.rs (E0428) #11178

Closed

Description

@dezren39

Summary

The standalone pkgs/id/benchmarks crate does not compile at current main: cargo test (run from pkgs/id/benchmarks) fails with

error[E0428]: the name `adapters` is defined multiple times
  --> src/lib.rs:16:1
   |
10 | pub mod adapters;
   | ----------------- previous definition of the module `adapters` here
...
16 | pub mod adapters {
   | ^^^^^^^^^^^^^^^ `adapters` redefined here

Evidence

  • Verified 2026-11-17 under queue task 20619 at main 8722d2ea00: cargo test in pkgs/id/benchmarks → error: could not compile id-benchmarks (lib) due to 1 previous error, exit 101.
  • The duplicate is verbatim at the base sha (not a local edit): src/lib.rs line 10 declares pub mod adapters; (backed by src/adapters/mod.rs, which declares the engine modules) and line 16 also defines an inline pub mod adapters { pub mod d1; }.
  • Introduced by commit a2013128a7 — "id benchmarks: D1 workload adapter and native counters (C9133-02-D1) (id benchmarks: D1 workload adapter and native counters (C9133-02-D1) #11142)" per git log -S 'pub mod adapters {'.
  • The crate is deliberately standalone (not a pkgs/id workspace member), so no flake check or workspace test catches this — it only surfaces when running the crate's own tests via its manifest, as its Cargo.toml header prescribes.

Fix shape

Remove one of the two definitions — the inline block looks like the stale one (it declares only d1, while src/adapters/mod.rs is the module the other engine slices use) — and run the crate's full test suite (cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml) to confirm the adapter tests pass, including workload_oracle.

Found by lane any-p during the #10462 flake-check verification pass (task 20619); unrelated to the treefmt fix in PR #11175, which is why it is filed separately instead of folded into that PR.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/normalOrdinary priority (the default)
    on Nov 17, 2026
  2. developing-today commented on Nov 17, 2026

    @developing-today
    Contributor
  3. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Conductor cycle 2026-11-17 13:22 CT: task 20717 selected for dispatch, then parked with reason executor-saturated. Only the Claude pool has fresh open quota (5h 25%, 7d 45%); the other pools on the workhorse route chain read closed or unsupported, so no launch was made and no session is bound. Re-dispatch on the next cycle once a route reads open. Queue task remains parked for its owner to release.

  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    state: verified_closed / already_done
    task: 20717 (repo-health-code-pilot, lane oc-code-03)
    issue: #11178 — id benchmarks crate does not compile (E0428 duplicate adapters module)

    Fresh check 2026-11-18: issue CLOSED (2026-11-18T00:12:44Z). Fix is PR #11202, MERGED 2026-11-17T10:08:32Z (commit d10f400). On origin/main, pkgs/id/benchmarks/src/lib.rs:10 declares pub mod adapters once.

    Disposition: already_done, no follow-on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/queuedHas a queued queue taskstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions