Skip to content

fix(tracing): send addStackToTracingNoReply on the LocalUtils connection - #1967

Open
monkey (Develop-KIM) wants to merge 1 commit into
microsoft:mainfrom
Develop-KIM:fix-1962
Open

fix(tracing): send addStackToTracingNoReply on the LocalUtils connection#1967
monkey (Develop-KIM) wants to merge 1 commit into
microsoft:mainfrom
Develop-KIM:fix-1962

Conversation

@Develop-KIM

Copy link
Copy Markdown
Contributor

Summary

  • Connection.internalSendMessage addressed addStackToTracingNoReply to localUtils.guid but sent it over its own transport. For a browser from connect() that transport is the server pipe, not the driver connection that owns LocalUtils, so the stack session opened by tracingStarted never received anything and setSources(true) produced no sources.
  • Sends it on localUtils.connection instead, matching this._localUtils?.addStackToTracingNoReply(...) in packages/playwright-core/src/client/connection.ts. For a local connection that is the same object, so nothing changes there.
  • TestBrowserTypeConnect#shouldRecordTraceWithSources already covered this and fails on main (0 sources instead of 1); it passes with the change. It never ran on CI because the sources job filters on -D test=*TestTracing*.

Fixes #1962

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.

[Bug]: Tracing setSources(true) produces no sources when the browser is connected via connect()

1 participant