Skip to content

fix(tracing): add missing error handlers to createWriteStream pipes - #41227

Merged
dcrousso merged 1 commit into
microsoft:mainfrom
SebTardif:fix-createwritestream-error-handlers
Jun 10, 2026
Merged

fix(tracing): add missing error handlers to createWriteStream pipes#41227
dcrousso merged 1 commit into
microsoft:mainfrom
SebTardif:fix-createwritestream-error-handlers

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Summary

  • Add .on('error', reject) to two createWriteStream pipe chains that only had 'close' handlers
  • Without error handlers, write failures (disk full, permissions) cause the promise to hang and the unhandled error event to crash the process
  • Matches the existing pattern in the same codebase (testTracing.ts:396, blob.ts:88)

Without an 'error' handler on createWriteStream, a write failure
(disk full, permissions) causes the wrapping promise to never resolve
and the unhandled 'error' event to crash the process.

Add .on('error', reject) to match the existing correct pattern
in testTracing.ts:396 and blob.ts:88.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

7279 passed, 1119 skipped


Merge workflow run.

@dcrousso
dcrousso merged commit 0878827 into microsoft:main Jun 10, 2026
45 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

3 flaky ⚠️ [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@chromium-ubuntu-22.04-node22`
⚠️ [webkit-library] › library/browsertype-connect.spec.ts:792 › run-server › should upload a folder `@webkit-ubuntu-22.04-node20`

39488 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.

2 participants