Skip to content

fix(id): PR #3110 left cmd_serve's #[allow(unused_variables)] on serve_groups_log_path — non-web builds warn on web/port again #4662

Closed

Description

@dezren39

Finding

PR #3110 (merged) threaded --groups-log into id serve's group-warning watcher (#2778). To add its path-resolution helper it inserted the new serve_groups_log_path function between cmd_serve's doc comment / #[allow(unused_variables)] attribute and cmd_serve itself. In Rust an outer attribute binds to the next item, so the allow — whose own comment says it exists because "web/port only used with web feature" — now decorates serve_groups_log_path (which uses its only parameter and needs no allow), and cmd_serve has lost it.

Evidence

  • PR: id(serve): thread --groups-log into the group-warning watcher (#2778) #3110 — merged, head 9f5f2832789bfaff8feac9957f04115324de01bf. Its serve.rs hunk inserts the doc comment + fn serve_groups_log_path directly after the context line #[allow(unused_variables)] // web/port only used with web feature and before pub async fn cmd_serve.
  • Current main (17610f5553): pkgs/id/src/commands/serve.rs:832 — #[allow(unused_variables)] // web/port only used with web feature immediately precedes the serve_groups_log_path doc comment and function at :833-839; cmd_serve follows at :841 with no attribute.
  • cmd_serve destructures web and port out of ServeOptions (serve.rs, just below :841); those bindings are the ones the allow was written for — without the web feature they are unused.
  • Verified still present on current main by reading serve.rs:825-849 directly. Dedupe: searched open + closed issues 2026-11-02 for unused_variables, serve_groups_log_path, and allow attribute serve — no match.

Why it matters

Feature-reduced builds of the id crate (--no-default-features / web disabled) get the unused_variables warnings on web/port that the attribute existed to suppress — warning noise that can mask real warnings and fails any -D warnings invocation — and the stray allow on the helper misleads the next reader about which function needs it.

Acceptance criteria

  • #[allow(unused_variables)] (with its web/port comment) sits on cmd_serve again, and serve_groups_log_path carries no allow attribute.
  • Building the id crate with the web feature disabled produces no unused_variables warnings for web/port in cmd_serve (checked in CI).
  • No behavior change: serve_groups_log_path resolution and the id(serve): thread --groups-log into the group-warning watcher (#2778) #3110 regression tests are untouched and still pass.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/lowNice to have; do when convenient
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 2, 2026
  2. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  3. dezren39 commented on Nov 2, 2026

    @dezren39
    MemberAuthor

    Agent note — picked up (repo queue worker, lane D)

    • Agent: queue worker (repo-worker-code), lane code-d
    • Session / ID: queue task 6617 (triage-and-fix), claimed 2026-11-02T23:44Z
    • Found via: atomic queue claim in repo-health-code-pilot.
    • Next: verify the attribute placement on fresh origin/main, then move #[allow(unused_variables)] back onto cmd_serve in a laptop worktree (branch queue/6617-4662-cmd-serve-allow) and open the PR. Scope: serve.rs attribute placement only.
  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 2, 2026
  5. 1 remaining item

  6. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 2, 2026
  7. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 3, 2026
  9. added a commit that references this issue on Nov 3, 2026
  10. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

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/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions