Repository navigation
fix: don't re-throw in jsdom-svg-polyfill uncaughtException handler - #4999
Merged
Merged
Conversation
…itest workers survive Zone-leaked errors
Contributor
Author
|
Currently doing testing at:
I'll run each a couple of times, then send an update in the chat on the outcome. |
Contributor
Author
|
After running the frontend test 3 times, I found the control got caught on the same error while the test/fix experienced no errors. |
Contributor
Author
|
/request-review @aglinxinyuan |
aglinxinyuan
approved these changes
May 9, 2026
aglinxinyuan
enabled auto-merge (squash)
May 9, 2026 08:32
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4999 +/- ##
=========================================
Coverage 42.72% 42.72%
Complexity 2186 2186
=========================================
Files 1031 1031
Lines 38152 38152
Branches 4004 4004
=========================================
Hits 16302 16302
Misses 20831 20831
Partials 1019 1019
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
Thanks for the fix! |
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…pache#4999) ### What changes were proposed in this PR? Replace the `throw err` / `throw reason` inside the `process.on("uncaughtException")` and `process.on("unhandledRejection")` handlers in `frontend/src/jsdom-svg-polyfill.ts` with `console.error(...)`. Re-throwing in `uncaughtException` aborts the Node process, crashing the Vitest worker mid-run and leaving the runner hanging until the CI timeout. Logging instead lets Vitest's own error handling fail the offending spec without killing sibling tests in the same worker. ### Any related issues, documentation, or discussions? Closes: apache#4998 ### How was this PR tested? Ran `yarn ng test --watch=false` locally — full suite passes cleanly. CI runs on the branch that no longer hangs. ### Was this PR authored or co-authored using generative AI tooling? Discovered with Claude Opus 4.7 in compliance with ASF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this PR?
Replace the
throw err/throw reasoninside theprocess.on("uncaughtException")andprocess.on("unhandledRejection")handlers infrontend/src/jsdom-svg-polyfill.tswithconsole.error(...).Re-throwing in
uncaughtExceptionaborts the Node process, crashing the Vitest worker mid-run and leaving the runner hanging until the CI timeout. Logging instead lets Vitest's own error handling fail the offending specwithout killing sibling tests in the same worker.
Any related issues, documentation, or discussions?
Closes: #4998
How was this PR tested?
Ran
yarn ng test --watch=falselocally — full suite passes cleanly. CI runs on the branch that no longer hangs.Was this PR authored or co-authored using generative AI tooling?
Discovered with Claude Opus 4.7 in compliance with ASF