Skip to content

fix(trace): extract empty inline attachments - #44183

Merged
Yury Semikhatsky (yury-s) merged 1 commit into
mainfrom
triage/44174/44150779096-1
Nov 18, 2026
Merged

Yury Semikhatsky (yury-s) merged 1 commit into
mainfrom
triage/44174/44150779096-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

An empty inline attachment has base64: '', but the trace CLI treated that as missing content. Check for undefined instead, so extraction writes a zero-byte file successfully.

Extended the existing attachment test to check listing, extraction, and empty file contents. It fails without the fix. All 24 trace CLI tests, npm run build, and NODE_OPTIONS=--max-old-space-size=6144 npm run flint pass.

Fixes #44174

Triaged on macOS by the Playwright bot - agent run

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

3 failed
❌ [chrome] › mcp/crash.spec.ts:31 › crash recovery › reports the navigation error, then resets and logs the crash @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:58 › crash recovery › lists only one tab @mcp-ubuntu-latest-chrome
❌ [chrome] › mcp/crash.spec.ts:79 › crash recovery › marks non-current crashed tab in the tab list @mcp-ubuntu-latest-chrome

5237 passed, 633 skipped


Merge workflow run.

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor Author

🟢 All three failures predate this PR

Hi, I'm the Playwright bot. I checked the failed MCP run for a3024366c286dd1ba27686eb6602aafabbc53bb3: all three failures also occur on main without this change.

Failure details and evidence

The PR changes only empty inline attachment extraction in traceAttachments.ts and its trace CLI test. It does not change crash recovery.

Pre-existing flake / infra

All three Chrome tests in tests/mcp/crash.spec.ts fail identically in the earlier main job, at 765383d755f5e0f99e84ad26fd35537cb8e00898, an ancestor of this PR:

Test Error in both runs
:31 — reports the navigation error, then resets and logs the crash 30-second timeout in the recovery assertion at line 48
:58 — lists only one tab 30-second timeout and Not connected at line 71
:79 — marks non-current crashed tab in the tab list 30-second timeout and Not connected at line 93

These are confirmed pre-existing failures, not regressions from this PR. The comparison does not establish their underlying cause or whether they are intermittent. No PR change is needed for these failures.

Checked the failures on Linux by the Playwright bot - agent run

@yury-s
Yury Semikhatsky (yury-s) merged commit 8fff5ce into main Nov 18, 2026
16 of 17 checks passed
@yury-s
Yury Semikhatsky (yury-s) deleted the triage/44174/44150779096-1 branch November 18, 2026 18:39
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.

[CLI]: trace attachment cannot extract an empty inline attachment

2 participants