Skip to content

runtests-watch runs nothing in modern NodeΒ #54113

Closed
@Peeja

Description

@Peeja

Bug Report

πŸ”Ž Search Terms

runtests-watch, uv_signal_start EINVAL, SIGKILL

πŸ•— Version & Regression Information

Haven't bothered to try this outside of main, as it's only a tooling issue.

⏯ Playground Link

N/A, purely dev tooling.

πŸ’» Code

$ hereby runtests-watch --tests=tests/cases/compiler/2dArrays.ts                                                                                                                     

πŸ™ Actual behavior

Errors immediately and runs nothing:

Using ~/git/TypeScript/Herebyfile.mjs to run runtests-watch
Starting generate-diagnostics
> /Users/peeja/.nvm/versions/node/v16.14.2/bin/node scripts/processDiagnosticMessages.mjs src/compiler/diagnosticMessages.json
Starting lib
Reading diagnostics from src/compiler/diagnosticMessages.json
Finished lib in 78ms
Finished generate-diagnostics in 126ms
Starting watch-tests
Warning: watch mode is incomplete and may not work as expected. Use at your own risk.
Finished watch-tests in 13ms
[watch] build finished, watching for changes...
Starting runtests-watch
Error in runtests-watch in 5ms
Error: uv_signal_start EINVAL
Completed runtests-watch with errors in 145ms

πŸ™‚ Expected behavior

Runs the tests:

Using ~/git/TypeScript/Herebyfile.mjs to run runtests-watch
Starting generate-diagnostics
> /Users/peeja/.nvm/versions/node/v16.14.2/bin/node scripts/processDiagnosticMessages.mjs src/compiler/diagnosticMessages.json
Starting lib
Reading diagnostics from src/compiler/diagnosticMessages.json
Finished lib in 79ms
Finished generate-diagnostics in 110ms
Starting watch-tests
Warning: watch mode is incomplete and may not work as expected. Use at your own risk.
[watch] build finished, watching for changes...
Finished watch-tests in 14ms
Starting runtests-watch
[watch] cleaning test directories...
[watch] running tests...
<...test output...>

Reason

Error: uv_signal_start EINVAL is throwing because we're trying to listen for a SIGKILL, which is nonsensical (as your handler will never have a chance to run) and expressly disallowed in newer Node versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions