Skip to content

fix(tracing): include source for tracing.group(location)#39307

Merged
Skn0tt merged 3 commits intomicrosoft:mainfrom
Skn0tt:fix-group-location
Feb 25, 2026
Merged

fix(tracing): include source for tracing.group(location)#39307
Skn0tt merged 3 commits intomicrosoft:mainfrom
Skn0tt:fix-group-location

Conversation

@Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Feb 18, 2026

Closes #39302

@Skn0tt Skn0tt requested a review from dgozman February 18, 2026 09:48
@Skn0tt Skn0tt self-assigned this Feb 18, 2026
@Skn0tt Skn0tt force-pushed the fix-group-location branch from 830ae5b to 8933de4 Compare February 18, 2026 09:59
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

await this._channel.tracingGroup({ name, location: options.location });
await this._wrapApiCall(async zone => {
if (options.location)
zone.frames.push({ file: options.location.file, line: options.location.line ?? 0, column: options.location.column ?? 0 });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks scary, I hope we don't do anything like this in other places. If we want to fix it, we should pass the overriding location to the _wrapApiCall and use it in the API zone.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.


export class Tracing extends ChannelOwner<channels.TracingChannel> implements api.Tracing {
private _includeSources = false;
private _additionalSources = new Set<string>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clean it up in stop/stopChunk.

- write
- append
includeSources: boolean
additionalSources:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to say - make this one optional please.

@github-actions
Copy link
Contributor

Test results for "MCP"

6 failed
❌ [chrome] › mcp/mouse.spec.ts:75 › browser_mouse_click_xy (right button) @mcp-windows-latest
❌ [chromium] › mcp/mouse.spec.ts:75 › browser_mouse_click_xy (right button) @mcp-windows-latest
❌ [chromium] › mcp/roots.spec.ts:47 › check that trace is saved in workspace @mcp-windows-latest
❌ [msedge] › mcp/mouse.spec.ts:75 › browser_mouse_click_xy (right button) @mcp-windows-latest
❌ [msedge] › mcp/roots.spec.ts:47 › check that trace is saved in workspace @mcp-windows-latest
❌ [chrome] › mcp/http.spec.ts:199 › http transport browser lifecycle (persistent) @mcp-macos-15

5036 passed, 171 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "tests 1"

4 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1082 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-page] › page/page-wait-for-function.spec.ts:104 › should work with strict CSP policy `@firefox-ubuntu-22.04-node20`
⚠️ [webkit-library] › library/browsertype-connect.spec.ts:736 › run-server › should upload a folder `@webkit-ubuntu-22.04-node20`
⚠️ [webkit-page] › page/page-autowaiting-basic.spec.ts:79 › should await form-post on click `@webkit-ubuntu-22.04-node20`

38521 passed, 843 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.

[Bug]: custom location of tracing.group API is not included in zip output

3 participants