Skip to content

Let the Deno run spawn a child, so the watch test runs - #28

Open
tamnd wants to merge 1 commit into
mainfrom
fix/deno-run
Open

Let the Deno run spawn a child, so the watch test runs#28
tamnd wants to merge 1 commit into
mainfrom
fix/deno-run

Conversation

@tamnd

@tamnd tamnd commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Closes #27.

test:deno asked for read, write, env and ffi, and the progress test
spawns a node process to watch the file it writes. That is run access,
so under Deno the test threw NotCapable: Requires run access to "node", run again with the --allow-run flag at
test/progress.test.mjs:226 instead of asserting anything. It had
never run on that runtime.

This adds --allow-run. Locally on deno 2.9.5, the same version CI
installs:

ok | 355 passed | 0 failed | 8 ignored (1m52s)

against the CI baseline of 354 passed, 1 failed. The watch test takes
123 ms, so the child really did spawn and really did exit rather than
being skipped some other way. No other test in the suite needs the
permission, and node runs the same file unchanged.

The progress test spawns a node process and watches the file it
writes, which under Deno is run access and the command did not ask
for it. So the test threw NotCapable rather than failing on an
assertion, and it had never run under Deno at all: the one job that
covers the watch path on that runtime was covering nothing.

With --allow-run the suite is 355 passed, 0 failed, 8 ignored on
deno 2.9.5, the same version CI installs, and the watch test takes
123 ms, so the child really did spawn and really did exit. Nothing
else in the suite needs it, and node keeps running the same test the
same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The deno job has been red since the watch test learned to spawn

1 participant