Skip to content

fix(mcp): implement signalToPromise dispose to remove abort listener#4

Closed
Skn0tt wants to merge 249 commits into
mainfrom
skn0tt/fix-signal-to-promise-dispose
Closed

fix(mcp): implement signalToPromise dispose to remove abort listener#4
Skn0tt wants to merge 249 commits into
mainfrom
skn0tt/fix-signal-to-promise-dispose

Conversation

@Skn0tt

@Skn0tt Skn0tt commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • signalToPromise returned a no-op dispose, leaking the 'abort' listener it adds to the AbortSignal.
  • Implement dispose to remove the listener (with an early signal.aborted fast path).
  • Call dispose() in a finally at the single caller in the test MCP context so the listener is cleaned up on every exit path.

Skn0tt and others added 30 commits May 6, 2026 12:49
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dgozman and others added 25 commits June 2, 2026 20:02
…41082)

whether it be from a dedicated protocol `timestamp` or the more general `timing` , we should use a value from the engine for `startDateTime` instead of the playwright server `Date`
signalToPromise returned a no-op dispose, so the 'abort' listener it
registered on the AbortSignal was never removed. The single caller in
the test MCP context also discarded dispose entirely. Implement dispose
to remove the listener and call it in a finally around the test run race.
@netlify

netlify Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploy Preview for pw-docs-skn0tt ready!

Name Link
🔨 Latest commit 8213652
🔍 Latest deploy log https://app.netlify.com/projects/pw-docs-skn0tt/deploys/6a22b4fe5a380f0008400f0d
😎 Deploy Preview https://deploy-preview-4--pw-docs-skn0tt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@Skn0tt

Skn0tt commented Jun 5, 2026

Copy link
Copy Markdown
Owner Author

Superseded by microsoft#41160 (targeting upstream).

@Skn0tt Skn0tt closed this Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Test results for "MCP"

2 failed
❌ [msedge] › mcp/annotate.spec.ts:173 › user-initiated annotate downloads zip with feedback.md @mcp-windows-latest-msedge
❌ [msedge] › mcp/annotate.spec.ts:230 › should capture annotations via show --annotate @mcp-windows-latest-msedge

7261 passed, 1109 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/popup.spec.ts:261 › should not throw when click closes popup `@chromium-ubuntu-22.04-node24`

39544 passed, 771 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.