Relationships
↔ sibling #4793#4816 Tests no longer depend on Deno's npm resolver, whose TaskQueue can lose a wakeup
Opened by stack72 · 11/16/2026· Shipped 11/17/2026
Root cause of swamp-club#4793. deno_unsync's sync::TaskQueue poll() checks is_ready before registering its waker; if raise_next runs on another thread between the two, the wakeup is lost and the future holds the permit forever. In Deno 2.9.8 the npm-resolution update_queue (libs/npm_installer/resolution.rs) is process-wide and taken by every npm-importing Worker load, so one lost wakeup hangs every later such load in the test process.
Resolved here without depending on an upstream fix: the test task runs with --node-modules-dir=manual against node_modules installed by deno task test-deps, so test Workers read npm packages from disk and never take that lock. Reporting the bug to denoland was decided against: we cannot rely on an upstream fix being taken.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.