Skip to content

test(tlon): transport tests leak socket writes after close (unhandled ECONNRESET) #192567

Closed

Description

@RomneyDa

Problem

In 2026.11.5-beta.1 FRVs, plugin prerelease extensions-shard-4 failed repeatedly with a Vitest unhandled write ECONNRESET from the tlon urbit channel-ops.transport.test.ts, even though all 354 tests passed. Earlier runs had a single-case failure in the tlon monitor SSE shutdown. The test passes 24/24 alone, so the cause depends on load or file order. Each occurrence cost a 55-minute shard rerun.

Proposed

Make the tlon transport tests close or abort sockets before teardown, so no write happens after close, and assert there are no unhandled errors.

Source: 2026.11.5-beta.1 retrospective, finding 17.

Activity

  1. added
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    clawsweeper:intake:needs-repro
    P2
    impact:other
    issue-rating: 🦪 silver shellfish
    and removed
    clawsweeper:intake:bug
    clawsweeper:intake:needs-environment
    clawsweeper:intake:needs-repro
    on Nov 4, 2026
  2. clawsweeper commented on Nov 4, 2026

    @clawsweeper
    Contributor

    Codex review: this still needs some work.

    Summary
    Keep this issue open: it is member-authored and reports repeated release-validation failures, but current evidence does not establish which socket operation causes the unhandled reset.

    Reproducibility: no. high-confidence reproduction is available: this read-only review ran no tests, and the reported standalone pass does not reproduce the shard failure.

    Next step
    Recover the failing shard’s trace, candidate SHA, runtime, and file order, then establish a failing regression that identifies the socket-error owner before changing teardown.

    Review details

    Best possible solution:

    Make the responsible fixture settle its streams and socket errors before teardown while preserving the existing cancellation assertions.

    Do we have a high-confidence way to reproduce the issue?

    No high-confidence reproduction is available: this read-only review ran no tests, and the reported standalone pass does not reproduce the shard failure.

    Is this the best way to solve the issue?

    Fixture lifecycle repair is a sensible direction, but adding more socket destruction without locating the emitting error could preserve or worsen the reset.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The failing candidate SHA, run logs, runtime version, and file order are missing, so fixture writes, request-body errors, and client cleanup remain unseparated.
    • The earlier monitor shutdown failure may be independent of the transport reset.

    Codex review notes: model internal, reasoning medium; reviewed against ff8fe07318eb.

    Label changes

    Label changes:

    • add P2: Repeated release-validation reruns warrant investigation, but the report establishes no current user-facing runtime outage.
    • add impact:other: The demonstrated impact is unreliable release-validation automation and expensive shard reruns.
    • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.

    Label justifications:

    • P2: Repeated release-validation reruns warrant investigation, but the report establishes no current user-facing runtime outage.
    • impact:other: The demonstrated impact is unreliable release-validation automation and expensive shard reruns.
    Evidence reviewed

    What I checked:

    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed November 4, 2026, 12:38 AM ET / 05:38 UTC.

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

    P2impact:otherissue-rating: 🦪 silver shellfish

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions