GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute · Issue #6943 · developing-today/code

id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943

New issue
Copy link
New issue
Copy link
Closed
Closed
id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute#6943
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/xsTrivial: expected under 30 minutes of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 7, 2026
Issue body actions

id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute

Finding

The CLI regression test for the --first/--last conflict (conflicts_with, the #3029 contract) is dead code on current main: it carries no #[test] attribute, is never called from anywhere, and therefore never runs — while the suite stays green.

Evidence

  • PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738 (merged, merge commit 5fa06504a63c, verified ancestor of main 63f83bef5ab2 via compare API, behind_by 0) inserted its new test between the existing #[test] attribute and the function it belonged to. Its diff hunk (cli.rs, old lines ~2923-2946) shows the context line #[test], then the added + #[test] / + fn test_cli_rejects_zero_result_limits(), and after the inserted body the context line fn test_cli_rejects_first_and_last_together() with no attribute.
  • Current main pkgs/id/src/cli.rs:3608-3609: test_cli_rejects_zero_result_limits carries two #[test] attributes (a duplicated-attribute warning; the test registers twice, per the mechanism documented in issue id(commands/text): the only tsv_row test never runs — its #[test] attribute sits doubled on the neighboring test (text.rs:276-277 vs :293) #6409).
  • Current main pkgs/id/src/cli.rs:3638: fn test_cli_rejects_first_and_last_together() carries none. A repo-wide code search for its name returns exactly one hit — its own definition in cli.rs — so nothing else calls it either.
  • PR fix(id): restore lib-test build broken by #3738 derive placement (+ #3695 test leftovers) #3754 fixed the identical displacement PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738 caused for Command's #[derive(Subcommand)] (issue id(cli): pkgs/id does not compile on main — PR #3738 inserted parse_result_limit between Command's derive and the enum #3751), but did not catch this second displacement in the same PR.
  • The behaviour the dead test guards is still configured on main: the --first fields still carry conflicts_with = "last" (e.g. cli.rs ~:883), so the test is expected to pass when re-enabled — its assertions are the oracle.

Relation to issue #6410

Issue #6410 (OPEN) lists cli.rs:3608-3609 among "five more doubled sites" and states no dead neighbour was found there. That is true for the preceding neighbour, but the following neighbour is the dead one here. Simply deleting one duplicated attribute at cli.rs (the literal #6410 acceptance step) would leave this test dead. Moving one attribute to test_cli_rejects_first_and_last_together satisfies both issues for the cli.rs site.

Why it matters

PR #3738's body claims "#3029's first/last conflict behaviour is preserved" — the one test that pins that behaviour at the CLI boundary has not run since PR #3738 merged. If a future clap refactor drops the conflict, nothing would say so.

Acceptance criteria

  • Move one #[test] from test_cli_rejects_zero_result_limits to test_cli_rejects_first_and_last_together in pkgs/id/src/cli.rs (no test-body or production-code changes).
  • cargo test -- --list for the id crate shows both tests exactly once each.
  • The re-enabled test_cli_rejects_first_and_last_together passes; if it fails, that is a live first/last-conflict regression — triage it as such, do not weaken the test.
  • Note the cli.rs site as resolved on issue id(web/markdown): the #945 footnote round-trip test never runs — its #[test] sits doubled on the next test (markdown.rs:7055 vs :7088); five more doubled #[test] sites in pkgs/id #6410 when this lands.

Activity

Next
  1. dezren39
    added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Nov 7, 2026
  2. developing-today commented on Nov 7, 2026

    @developing-today
    developing-todayBot
    on Nov 7, 2026 – with developing.today
    Contributor
    More actions

    CODE-2191

  3. dezren39
    added
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/xsTrivial: expected under 30 minutes of work
    on Nov 7, 2026
  4. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-diff-review job
    • Session / ID: pr-diff-review cron run 2026-11-07 13:24 CST
    • Found via: filed this run
    • Task: Triage the dead test_cli_rejects_first_and_last_together finding from PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738's diff (attribute displacement, cli.rs:3608-3638) against current main; related to issue id(web/markdown): the #945 footnote round-trip test never runs — its #[test] sits doubled on the next test (markdown.rs:7055 vs :7088); five more doubled #[test] sites in pkgs/id #6410's cli.rs doubled site.
    • Expectation: effort/xs — move one #[test] attribute, verify both tests list and run exactly once; done when the re-enabled conflict test passes.
    • Links: PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738, issue id(web/markdown): the #945 footnote round-trip test never runs — its #[test] sits doubled on the next test (markdown.rs:7055 vs :7088); five more doubled #[test] sites in pkgs/id #6410, issue id(cli): pkgs/id does not compile on main — PR #3738 inserted parse_result_limit between Command's derive and the enum #3751 / PR fix(id): restore lib-test build broken by #3738 derive placement (+ #3695 test leftovers) #3754 (the derive twin, already fixed)
  5. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-q
    • Session / ID: task 11335
    • Found via: queue claim; execution-lane assignment returned opencode
    • Task: Triage for issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 (dead first/last-conflict CLI test — PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738 attribute displacement in cli.rs). Revalidated fresh 2026-11-08T02:09Z via REST: issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 OPEN with no hard-stop labels; PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738 is merged (the PR that displaced the #[test] attribute). Handed off to the opencode claimant per the execution-lane assignment; this lane did not work it directly.
    • Expectation: claimant launches the bound opencode session; task 11335 parked 20 minutes for the claimant to bind.
    • Links: issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943, PR id(cli/repl): reject zero result limits at both boundaries (#3059) #3738
  6. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 8, 2026
  7. 12 remaining items

  8. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-t (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-t run 2026-11-09 16:59 CST; task 11335
    • Found via: queue claim · task 11335
    • Task: task 11335 for issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 (triage). Fresh check: issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment row 3648 returned opencode — handed off to the opencode claimant; this lane does not work it directly.
    • Expectation: claimant session drives task 11335 to a terminal state.
    • Links: task 11335 · issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943
  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    task 11335 — picked up by lane code-b, verified fresh: issue #6943 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent).
    execution_lane: opencode (lane row 3648) — handed off to the opencode claimant; claimant launches the bound opencode session.
    stage: handed_off

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1 — task 11335 pickup + handoff (lane code-g)

    • event: handed_off
    • task: 11335 (triage packet, issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 — dead first/last-conflict CLI test, cli.rs attribute displacement)
    • execution_lane: opencode (lane row 3648)
    • handoff_reason: scheduled shift is time-bounded; claimant is the persistent execution session
    • verified fresh: issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 OPEN, no hard-stop labels, no status/needs-triage
    • §1c check: no triage-step agent note of record on issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943, so no "triaged" completion is claimed for this packet; handed off per §1b instead
    • note for the claimant: task progress records PR test(id): restore footnote test and dedupe attributes #6429 OPEN on queue/10836-6410-restore-footnote-test touching the same cli.rs attribute site — treat as the conflicting artifact, do not build a parallel fix
    • next: claimant launches the bound opencode session
  11. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off to opencode claimant — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 11335, repo-queue-worker-shift-b 2026-11-10 run. Task 11335 (triage) for issue #6943; attempts 3/4 on this claim. Fresh check: issue #6943 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels, no status/needs-triage. Execution lane row 3648 = opencode. Checkpointed handed_off with Rule-4 reason (scheduled shift is time-bounded; claimant is the persistent execution session); parking task 11335 for 20 minutes for the claimant window.

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-h (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-h run 2026-11-10; task 11335
    • Found via: claimed task 11335 this shift; execution-lane assignment returned opencode (row 3648)
    • Task: task 11335 for issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 (triage). Fresh check: issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), and no status/needs-triage — but no triage-step triage note was found among the issue's comments, so the runbook §1c bookkeeping-completion premise (triage step already triaged it) is not evidenced for this packet. Handed off to the opencode claimant per §1b, as prior lanes did — scheduled shift is time-bounded; claimant is the persistent execution session. Existing branch queue/11335-6943-cli-test-attr is on record in the task progress for the claimant session to resume.
    • Expectation: claimant session drives task 11335 to a terminal state.
    • Links: task 11335 · issue id(cli): test_cli_rejects_first_and_last_together never runs — PR #3738's inserted test took its #[test] attribute #6943
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: handed-off
    queue: repo-health-code-pilot
    task: 11335 (triage, worker repo-worker-code, lane code-n)
    issue: #6943
    Verified fresh 2026-11-10T09:43Z: issue #6943 OPEN, no hard-stop labels, no status/needs-triage. Triage-separation check (#8097 rule 3): packet kind is triage, but no triage-step agent note exists on #6943 and the packet acceptance is a concrete code fix (move one #[test] attribute in pkgs/id/src/cli.rs), so this is not a bookkeeping-complete; the packet stays live.
    Lane assignment: opencode (assignment row 3648). Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session.
    Next: claimant launches the bound opencode session. Task 11335 parked 1200s for the claimant window.

  14. dezren39
    added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    Agent note (lane code-b, task 11335): already fixed on current main — closing as already-done with verification.

    State found (worktree at origin/main 57bbf2ad73): the cli tests now live in pkgs/id/src/cli/tests.rs (cli.rs became a module directory since this issue was filed), and the attribute displacement is gone — test_cli_rejects_zero_result_limits (tests.rs:901) carries exactly one #[test], and test_cli_rejects_first_and_last_together (tests.rs:930) carries its own #[test]. The fix evidently landed with the #6410 doubled-attribute cleanup (issue #6410 is CLOSED, which also covers this issue's "note the cli.rs site on #6410" acceptance bullet).

    Verification against the acceptance oracle, this run:

    • cargo test --lib test_cli_rejects -- --list lists cli::tests::test_cli_rejects_first_and_last_together and cli::tests::test_cli_rejects_zero_result_limits exactly once each.
    • cargo test --lib test_cli_rejects: 2 passed, 0 failed — the re-enabled first/last-conflict test passes, so there is no live --first/--last conflict regression to triage.

    No code change was needed; no PR opened.

  16. dezren39
    closed this as completedon Nov 11, 2026
  17. dezren39
    added
    status/done
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  18. developing-today
    added
    status:done
    on Nov 11, 2026
  19. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · follow-on claim verified already-fixed (task 14972, lane code-c)

    • Independently re-verified on current main: the CLI tests now live in pkgs/id/src/cli/tests.rs; test_cli_rejects_zero_result_limits (line 900-901) and test_cli_rejects_first_and_last_together (line 929-930) each carry exactly one #[test].
    • cargo test --lib test_cli_rejects runs both exactly once and both pass — the re-enabled first/last-conflict test is green, so there is no live conflict regression to triage.
    • This matches the earlier already-done closure by lane code-b (task 11335). The cli.rs site named in id(web/markdown): the #945 footnote round-trip test never runs — its #[test] sits doubled on the next test (markdown.rs:7055 vs :7088); five more doubled #[test] sites in pkgs/id #6410 is resolved by this same state. Queue task 14972 completes as already-done; no PR from this claim.
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)effort/xsTrivial: expected under 30 minutes of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus/donestatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.