Skip to content

Harden two load-sensitive tests (extension-host in-flight commands, mcp-upstream descendant reaping) #123

Open

Description

@SSFSKIM

Purpose

Two tests fail under full-suite load roughly once in three runs and pass 5/5 in isolation, which makes every #113 milestone gate nondeterministic (seen at PR #122, three runs: 1303/0/37, then one failure each in the other two).

  • test/extension-host.test.mjs "commands in flight when the user cancels debugging or closes the tab…": ECONNREFUSED on the fake socket.
  • test/mcp-upstream.test.mjs "owned descendants left in the process group after the runtime exits are reaped".

Goal

Both tests pass 10/10 in a full HOME=/tmp/cua-scratch-home npm test on this Mac under load, by waiting on the observable condition (socket listening, process gone) instead of a fixed interval, without weakening what they assert.

Notes

Found by the plan-executor during #113 M1a; not touched by M1a's files.

Activity

  1. added
    bug
    status:ready-for-implementer
    on Oct 13, 2026
  2. SSFSKIM commented on Oct 13, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: Residue of #113 M1a (PR #122)

  3. added
    priority:P3
    on Oct 13, 2026
  4. SSFSKIM commented on Oct 14, 2026

    @SSFSKIM
    OwnerAuthor

    Third candidate from #113 M1b's gate: test/deploy-cloud-vm.test.mjs failed once in a full run and passed 7/7 alone. Same treatment: wait on the observable condition under full-suite load.

  5. SSFSKIM commented on Oct 14, 2026

    @SSFSKIM
    OwnerAuthor

    Fourth candidate (#113 M1c gate): test/browser-service/cdp.test.mjs 'a first attachment gives each setup command…' missed its timing bound by 3 ms once under full-suite load, passed on re-run.

  6. SSFSKIM commented on Oct 14, 2026

    @SSFSKIM
    OwnerAuthor

    Fifth candidate (#113 M3 gate): test/mcp-upstream.test.mjs 'the anchor leads the group…' failed once under full-suite load, passed 3/3 alone and on re-run.

  7. SSFSKIM commented on Oct 18, 2026

    @SSFSKIM
    OwnerAuthor

    Another load- and runtime-sensitive pair, found by #159 (2026-10-18): two resume-budget timing tests in test/remote-client.test.mjs fail locally on Node 26, on main as well. They pass on CI's Node 24.

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

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions