Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
AssigneesNone

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.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 10 MOREPR_LINKED+ 1 MORESESSION_SUMMARIZED

Shipped

11/17/2026, 8:23:25 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #479311/16/2026, 7:42:26 PM

Sign in to post a ripple.