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
Sporadic context canceled in stderr when running TypeScript API in subprocess tests #64242
My project is a CLI app that uses TypeScript's programmatic APIs. I test it by spawning a subprocess and asserting the resulting stdout and stderr.
Tests fail sporadically in CI with unexpected context canceled\n appearing in stderr instead of an empty string. The failures always happen on Ubuntu runners in GitHub Actions, occasionally on macOS, but never on Windows.
changed the title [-]Sporadic `"context canceled"` in `stderr` when running TypeScript API in subprocess tests[/-][+]Sporadic `context canceled` in `stderr` when running TypeScript API in subprocess tests[/+]on Sep 11, 2026
Activity
[-]Sporadic `"context canceled"` in `stderr` when running TypeScript API in subprocess tests[/-][+]Sporadic `context canceled` in `stderr` when running TypeScript API in subprocess tests[/+]mrazauskas commentedon Sep 15, 2026
By the way, this also surfaced in CI runs of typescript-eslint/typescript-eslint#12803. Search for "context canceled" in the log: https://github.com/typescript-eslint/typescript-eslint/actions/runs/34773021004/job/103766143011?pr=12803