Skip to content

id(world_net): lib test suite does not compile on main — info_details_rejects test calls a nonexistent inject_json (and json! is not in scope) #6640

Closed

Description

@dezren39

Summary

The id lib test suite does not compile on current main: the test info_details_rejects_malformed_active_module_hash (pkgs/id/src/world_net.rs:3421, added by repo-keeper snapshot 4ecb351) calls client.inject_json(...) seven times (:3443, :3455, :3466, :3478, :3490, :3502, :3514), but no inject_json method exists anywhere in the crate — so every cargo test for the id lib fails at compile time and no lib test can run at all.

Evidence (verified this run, laptop @ 4ecb351)

  • grep -rn "inject_json" pkgs/id/src pkgs/id/crates returns only the seven call sites in the one test; there is no definition, trait, or macro providing it.
  • Laptop, clean worktree at 4ecb351, verified twice independently in pkgs/id: cargo test --lib info_details_rejects_malformed_active_module_hash fails to compile, and cargo check --lib --tests --message-format short reports 14 errors in this one test — 7× error[E0599]: no method named inject_json found for struct WorldClient (:3443, :3455, :3466, :3478, :3490, :3502, :3514) and 7× error: cannot find macro json in this scope (:3436, :3460, :3471, :3483, :3495, :3507 and one more call site) — ending with error: could not compile id (lib test) due to 14 previous errors. The test module does not import serde_json::json either.
  • The snapshot commit 4ecb351 ("repo-keeper: snapshot code 2026-11-06 17:23 CST") landed both the (correct) production fix for id(world_net): info_details reads a mistyped 'active_module_hash' as Ok(None) — a malformed module_info reply reports "no module" for a world that has one #6633 in info_details and this test in the same sweep — the production fix is good; only the test harness is missing.
  • The test's design cannot work as written even if a stub existed: info_details reads its reply from the real host connection (host(Some("admin")) + invite_for), so an injected reply would race / be ignored in favour of the live host's module_info frame. The malformed-reply cases need a scripted host that answers the info request with the malformed frame (the pattern already used by the fleet's scripted-host probes for this file), or a factored-out reply-parsing helper that the test can call directly.

Why it matters

A non-compiling test suite silently disables the entire id lib test safety net on main: no other lib test in the crate can run, CI/local verification for any pkgs/id change is blocked or — worse — skipped, and the #6633 fix currently has no working regression test despite appearances.

Acceptance criteria

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
    on Nov 7, 2026
  2. developing-today commented on Nov 7, 2026

    @developing-today
    Contributor
  3. added
    source/creatorFiled by the new-issue-creator job
    priority/highImportant and time-sensitive
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 7, 2026
  4. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Cross-lane cross-link: #6643 (lane A) filed the identical inject_json lib-test breakage minutes after this issue and has been closed by its filer as a duplicate of this one. This issue is canonical; the duplicate never enqueued (PostgREST outage #6619), so no queue cleanup is owed for it.

  6. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Fixed by PR #6675 (merged 779336f, from queue worker lane code-a working issue #6633 in fallback mode): the reply parsing was factored into WorldClient::parse_module_info_reply and the test rewritten against it — cargo test -p id --lib compiles again and info_details_rejects_malformed_active_module_hash passes on the laptop. Issue #6643 is the duplicate of this issue; both closed by the same PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivequeue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobstatus/needs-triageNot yet triaged; needs a first lookstatus: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