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(commands/text): the only tsv_row test never runs — its #[test] attribute sits doubled on the neighboring test (text.rs:276-277 vs :293) · Issue #6409 · developing-today/code

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

New issue
Copy link
New issue
Copy link
Closed
#6411
Closed
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
#6411
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

id(commands/text): the only tsv_row test never runs — its #[test] attribute sits doubled on the neighboring test

Evidence (verified this run, origin/main 28719695372b)

pkgs/id/src/commands/text.rs, tests module:

  • Lines 276–277: list_tsv_row_shows_origin_and_upload_time (line 278) carries two #[test] attributes.
  • Line 293: fn tsv_row_keeps_control_characters_inside_the_name_field() carries none.

Consequences, both verified on the laptop:

  1. A duplicated #[test] is only a rustc warning (duplicated attribute) and registers the test twice — a minimal rustc --test probe shows the doubled test listed and run 2×. So the neighbor runs twice and nothing in CI is red.
  2. A fn inside #[cfg(test)] mod tests without #[test] is never executed by the harness. tsv_row_keeps_control_characters_inside_the_name_field is the only test of tsv_row itself — the row-level pin for the id(peers): a peer's announced name is printed raw — a newline in a gossip announcement forges extra TSV rows in id peers and the REPL #1613 contract that a peer name containing \n/\t cannot forge a row or shift columns in TSV output. plain_field (its callee) is well tested; the row composition ({hash}\t{field}, exactly one real delimiter) is not covered by any running test.
  3. The orphaned test is valid: extracted verbatim (with the production plain_field / tsv_row / is_format_char copied byte-for-byte from origin/main into probe crate ~/git/fleet/probe-tsv-row on the laptop) and given its #[test], it passes (cargo test --lib: 1 passed). The behavior is correct today — the pin is simply dead.
  4. A scan of every mod tests in pkgs/id/src + pkgs/id/crates this run found no other attribute-less test-named function (remaining hits are helpers and #[cfg_attr(madsim, …)] tests).

Why it matters

This is the "a suite that never runs is not a test" failure class (#6185) in its smallest form: one displaced attribute silently disables the regression pin for a security-adjacent rendering contract (untrusted peer names from unsigned gossip, #1613), while the doubled attribute on the neighbor makes the test count look right. Any future refactor of tsv_row/list_tsv_row column composition can break the forged-row guarantee with a fully green suite.

Acceptance criteria

  • Move the stray second #[test] from list_tsv_row_shows_origin_and_upload_time to tsv_row_keeps_control_characters_inside_the_name_field in pkgs/id/src/commands/text.rs (one-attribute move; no test body changes).
  • cargo test --lib commands::text (or the crate's CI venue) lists tsv_row_keeps_control_characters_inside_the_name_field exactly once and it passes; list_tsv_row_shows_origin_and_upload_time is listed exactly once.
  • No other production or test behavior changes.

Notes

  • Distinct from id(tag): meta-tag TSV output renders subject/key/value raw — a newline in a synced tag value forges extra rows in id tag list, and a tab forges columns #1735 (meta-tag TSV rendering in a different surface) — this is about the dead test in commands/text.rs, not a rendering bug.
  • Found by Lane B (new-issue-creator-code-b) reading commands/text.rs while weighting away from Lane A's recent fleet-config/mcpx filings.

Activity

  1. dezren39
    added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

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

    CODE-1915

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (Lane B, slug new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-05 18:50 CST
    • Found via: filed this run
    • Task: Filed after verifying on the laptop against origin/main 2871969: duplicate #[test] at text.rs:276-277 registers the neighbor twice (rustc probe), the attribute-less tsv_row test at :293 never runs, and the orphaned test passes against verbatim production code (probe ~/git/fleet/probe-tsv-row).
    • Expectation: effort/xs — one-attribute move; done = the tsv_row test is listed and passes, the neighbor listed once.
    • Links: queue packet enqueued to repo-health-code-pilot (small-fix)
  5. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo queue worker, lane code-s (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-s run 2026-11-05; task 10835
    • Found via: claimed task 10835 this shift; execution-lane assignment returned direct — working it in this lane.
    • Task: task 10835 for 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 (small_fix): move the stray second #[test] from list_tsv_row_shows_origin_and_upload_time to tsv_row_keeps_control_characters_inside_the_name_field in pkgs/id/src/commands/text.rs. Fresh check: 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 OPEN, no hard-stop labels, no open PR for this work.
    • Expectation: branch + PR from a laptop worktree; targeted test lists both tests exactly once and passes.
    • Links: task 10835 · 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
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 6, 2026
  7. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    Cross-link: companion finding filed as #6410 — the same doubled/missing #[test] pattern in pkgs/id/src/web/markdown.rs (dead #945 footnote round-trip test) plus five pure-duplication sites (cli.rs, find.rs, serve.rs, repl/runner.rs, templates.rs), found by extending this run's scan repo-wide.

  8. developing-today
    added
    status:in-review
    on Nov 6, 2026
  9. dezren39
    closed this as completedin #6411on Nov 6, 2026
  10. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 6, 2026
  11. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: repo queue worker, lane code-s (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-s run 2026-11-05; task 10835
    • Task: task 10835 for 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 (small_fix, direct execution lane). Moved the stray second #[test] from list_tsv_row_shows_origin_and_upload_time to tsv_row_keeps_control_characters_inside_the_name_field in pkgs/id/src/commands/text.rs — one-attribute move, no test body changes (branch queue/10835-6409-tsv-row-test, laptop worktree ~/git/fleet/10835).
    • Result: PR test(id): restore dead tsv_row test by moving doubled #[test] attribute #6411 merged (merge commit 1479e30); this issue auto-closed by the merge. Targeted tests on the laptop: cargo test --lib commands::text — 13 passed, 0 failed; tsv_row_keeps_control_characters_inside_the_name_field listed exactly once and passes; list_tsv_row_shows_origin_and_upload_time listed exactly once. No Codex findings were posted on PR test(id): restore dead tsv_row test by moving doubled #[test] attribute #6411. PR CI was still pending at merge time; merged under the standing merge authority (CI runs on main only; targeted tests verified).
    • Links: task 10835 · PR test(id): restore dead tsv_row test by moving doubled #[test] attribute #6411 · 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
  12. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 6, 2026
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/testTest coverage, test infrastructure, or test-only fixespriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus: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

      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.