Skip to content

Conversation

@9aoy
Copy link
Collaborator

@9aoy 9aoy commented Jan 6, 2026

Summary

  • should print error correctly when worker unexpectedly exit
  • exclude Node.js-specific flags from worker execArgv when test in Deno
image

Related Links

#828

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 6, 2026 12:53
@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 886fef3
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/695dd4734dccd70008babe54
😎 Deploy Preview https://deploy-preview-837--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes error reporting when worker setup fails by adding global process event handlers and conditionally excluding Node.js-specific flags when running in Deno.

  • Adds global uncaughtException and unhandledRejection event handlers to catch worker setup errors
  • Introduces isDeno detection to conditionally exclude Node.js-specific flags from worker execArgv
  • Extracts error handling logic into a reusable handleUnexpectedExit function

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/core/src/utils/helper.ts Adds isDeno constant to detect Deno runtime
packages/core/src/pool/index.ts Conditionally excludes Node.js experimental flags when running in Deno
packages/core/src/cli/commands.ts Adds global process error handlers and extracts handleUnexpectedExit helper function
e2e/cli/fixtures/worker.error.config.ts Adds test fixture config with invalid worker flag to test error handling
e2e/cli/config.test.ts Adds test case to verify worker setup errors are printed correctly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@9aoy 9aoy changed the title fix: should print error correctly when worker setup error fix: should print error correctly when worker unexpectedly error Jan 6, 2026
@9aoy 9aoy changed the title fix: should print error correctly when worker unexpectedly error fix: should print error correctly when worker unexpectedly exit Jan 6, 2026
@9aoy 9aoy merged commit 2dcf1f0 into main Jan 7, 2026
32 of 35 checks passed
@9aoy 9aoy deleted the worker-bad-option branch January 7, 2026 06:29
@9aoy 9aoy mentioned this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants