Repository navigation
fix(id): unbreak main checks — E0382, clippy denied lints, dht_testnet dev-dep, formatter drift (#8904) - #10548
Conversation
…ed in canonical_cbor, formatter drift (#8904)
Test modules use unwrap/expect/panic pervasively while the workspace denies those lints; apply the in-tree convention of module-level allows on test code (id-core, id-caps, id-worlds, id-web, id-sync tests, and the id crate test modules in boards/device_bridge/grants/hosted_export/grant_service plus tests/admission_path_coverage.rs). Production sites fixed properly: world_ws poison-recovering lock access, grant_service invariant expects get fn-level justified allows (currency.rs precedent), b01 key lifecycle expect becomes a typed NotEnrolled error. Also add the missing iroh-mainline-address-lookup dev-dependency so tests/dht_testnet.rs compiles under --all-features (Cargo.lock updated).
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. |
|
Caution Review failedThe pull request is closed.
Warning Some tools did not complete. Review the errors below.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Agent note — duplicate salvage + merge disposition (task 17384, lane code-b) Canonical PR for issue #8904 is this PR (#10548, branch
Codex disposition: the Codex review on e33f12c failed to complete (Codex usage limits reached, per the bot's own comment); there are zero inline Codex findings on this PR to disposition.
|
Fixes the code-side failures of the broken main
idworkflow tracked in #8904 (run 43745000827, breakage f00ef4935f08). Issue #8904 stays open: the prod-lines-check failures (7 files over the 2,500-line limit) are split out in #8590-#8594 and land separately; a green post-mergeidrun is the final confirmation.What was broken -> fix
crates/id-cli/src/commands/serve.rs:endpointwas moved intoRouter::builderand borrowed again for AppState (transfer endpoint from id(web): send selected files to another server (#5346) #10506). Now cloned at the builder call. This one error blocked cargo-check, test-unit, test-shards, test-web-unit and the crash-gate checks.-D clippy::unwrap_usedin production code —crates/id-core/src/canonical_cbor.rstry_into().unwrap()x3 now map the error toCborError::UnexpectedEof.unwrap_used/expect_used/panicand cargo surfaces one crate layer at a time. Test modules across id-core, id-caps, id-worlds, id-web, id-sync and the rootidcrate (boards, device_bridge, grants, hosted_export, grant_service, tests/admission_path_coverage.rs) get the module-level allow that is already the in-tree convention for test code. Production sites were fixed properly instead:id-webworld_ws lock access recovers from mutex poisoning, the b01 key-lifecycleexpectbecomes a typedLifecycleError::NotEnrolled, and grant_service confirm/reconcile invariant expects carry fn-level justified allows (the src/currency.rs precedent).iroh_mainline_address_lookup, which the root package never declared. Added as a dev-dependency (0.6, already in the lock via id-sync); Cargo.lock updated.Verification (local, this branch)
cargo check --all-targets --all-features— PASScargo clippy --all-targets --all-features— PASS (exit 0)cargo clippy -p id-native-shell --all-targets— PASS (exit 0)cargo fmt --all -- --check, biome format check, prettier --check, nixfmt --check — PASSNotes
A detached workhorse session is also working main-broken: developing-today/code id @1920f34 — basic: nix flake check (biome-check) #8904 in a separate worktree (branch fix/id-8904-cargo-check); this PR supersedes that partial fmt-only snapshot.
CI on the failing run also showed Magic Nix Cache throttling (HTTP 418) noise on some fmt jobs — infra, not code.
cargo test --all-features --lib— 3,359 passed; the single failure (id-web test_load_asset_urls_from_manifest) was the missing local web-asset build in the worktree and passes oncejust webhas run (verified) — in CI the assets are built before tests.