You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI test runner hangs when Zone-leaked errors hit jsdom-svg-polyfill uncaughtException handler #4998
The frontend Vitest CI job hangs intermittently on Linux/macOS runners (Windows usually passes by scheduling luck). The runner stalls until the GitHub Actions timeout, even though all individual test assertions pass.
Root cause: frontend/src/jsdom-svg-polyfill.ts registers a process.on("uncaughtException") handler that re-throws any non-benign error. Re-throwing inside uncaughtException aborts the Node process, which kills the Vitest
worker mid-run, leaves the pool, waiting for results that never arrive.
The trigger is execute-workflow.service.spec.ts line 161, which deliberately throws "Logical plan error" to test error propagation. The synchronous throw is caught correctly by expect(...).toThrowError(...), but Zone.js
asynchronously re-emits it to process, where the polyfill's handler then re-throws, crashing the worker.
Expected: the runner finishes the suite, and reports pass/fail cleanly.
How to reproduce?
Run yarn --cwd frontend run test:ci on a Linux runner against the current main.
Observe the run intermittently hangs after execute-workflow.service.spec.ts completes, with this trace before stalling:
/home/runner/work/texera/texera/frontend/setup-jsdom-svg-polyfill.js:119
throw err;
^
Logical plan error
Node.js v24.10.0
Failure is non-deterministic — depends on Vitest worker scheduling. Adding new specs (e.g. menu.component.spec.ts on test/menuComponent) makes it reproduce more reliably.
Activity
Ma77Ball commentedon May 9, 2026
/take
fix: don't re-throw in jsdom-svg-polyfill uncaughtException handler (#…
fix: don't re-throw in jsdom-svg-polyfill uncaughtException handler (a…