Skip to content

feat(tracing): add live option to startHar - #40609

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:feat-tracing-har-live
May 4, 2026
Merged

feat(tracing): add live option to startHar#40609
Yury Semikhatsky (yury-s) merged 1 commit into
microsoft:mainfrom
yury-s:feat-tracing-har-live

Conversation

@yury-s

Copy link
Copy Markdown
Member

Summary

  • Adds a live: boolean option to tracing.startHar() that rewrites the HAR file on disk every time a network request finishes, so it can be read while recording.
  • Not compatible with a .zip output path or with remote connections.
  • Coalesces consecutive same-path writeFile ops in SerializedFS so live recordings don't queue O(N) redundant disk writes.

When set, the HAR file is rewritten on disk every time a network request
finishes, so it can be read while recording. Not compatible with .zip
output or remote connections.
@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

3 failed
❌ [msedge] › mcp/cli-storage.spec.ts:61 › state-load restores storage state from file @mcp-windows-latest-msedge
❌ [webkit] › mcp/http.spec.ts:103 › http transport browser lifecycle (isolated) @mcp-windows-latest-webkit
❌ [webkit] › mcp/http.spec.ts:142 › http transport browser sigint @mcp-windows-latest-webkit

6873 passed, 1015 skipped


Merge workflow run.

@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [firefox-library] › library/har.spec.ts:976 › tracing.startHar › should write HAR live while recording @firefox-ubuntu-22.04-node20

2 flaky ⚠️ [chromium-library] › library/video.spec.ts:476 › screencast › should capture static page in persistent context Radoslav Kirilov (@smoke) `@chromium-ubuntu-22.04-node24`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:763 › should partition action tree state by test `@windows-latest-node20`

41592 passed, 847 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.

2 participants