Repository navigation
Conversation
Collaborator
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
initDenoCache wipes and recopies the user copy of the deno_std seed when any seed path is missing from it. The seed is built by `deno cache` on package/scripts/deno_std/deno_std.ts, and Deno writes that file's transpile output under cache/gen/file/<absolute path of the build checkout>/. Every checkout, worktree and build machine therefore has a seed entry no other one has, while they all share one user copy. Each `quarto run` from a different Quarto than the one that copied last wiped the cache, which also loses downloaded npm packages. On Windows the wipe fails with os error 32 when another Deno process has files in that cache open, for example a long-running `quarto run` server from an installed Quarto. That made the check-runtime-boundary PR-mode unit test fail locally, since it spawns `quarto run --dev`. gen/ holds only derived output that Deno regenerates on demand, so it is skipped like the SQLite sidecars. Resets still happen when the lock or import maps change. The runtime-migration README PR 37 inventory row now also names kGenOutput, deleted with directoryListingsMatch and tests/unit/core/deno-std-cache.test.ts.
cderv
force-pushed
the
fix/check-runtime-boundary-pr-mode-unit-test-fails-on-windows-os-error-32-resetting-user-deno-std-cache
branch
from
November 17, 2026 11:02
6842680 to
054787e
Compare
cderv
deleted the
fix/check-runtime-boundary-pr-mode-unit-test-fails-on-windows-os-error-32-resetting-user-deno-std-cache
branch
November 17, 2026 11:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When two Quarto checkouts or installs share a machine, each
quarto runof a.tsscript from one of them wipes and recopies the shared user copy of the bundled deno_std cache (%LOCALAPPDATA%/quarto/deno_stdon Windows) if another one copied it last. The wipe also loses the npm packages scripts downloaded there. On Windows, when another Deno process has files of that cache open (for example aquarto runserver started from an installed Quarto), the wipe fails andquarto runerrors:This made
tests/unit/tools/check-runtime-boundary.test.tsfail locally, as its PR-mode test spawnsquarto run --dev.Root cause
Before each run,
initDenoCacheinsrc/core/run/deno.tsrecopies the user copy when a file of the bundled seed is missing from it. The seed is built bydeno cacheonpackage/scripts/deno_std/deno_std.ts, and Deno writes the transpiled output of that local file under a path that includes the absolute path of the checkout that built it:cache/gen/file/<checkout path>/package/scripts/deno_std/deno_std.ts.js. A dev worktree and the Windows release (built underD:/a/quarto-cli/quarto-cli) each have their own entry, while sharing one user copy. So the copy only satisfies the Quarto that wrote it last, and the other one resets it every time.It does not show on CI, where the seed and the user copy come from the same checkout.
Fix
directoryListingsMatchnow skips thecache/gen/subtree, the same way #15227 skips SQLite-shm/-walfiles.gen/only holds derived output that Deno regenerates on demand. A reset still happens whendeno_std.lockor the import maps change.The PR 37 inventory row of the runtime migration README now also names
kGenOutput, deleted withdirectoryListingsMatchand its test file.Test plan
tests/unit/core/deno-std-cache.test.ts: missinggen/entries don't trigger a reset (fails without the fix), agenfolder elsewhere in the cache still counts.check-runtime-boundary.test.tsfailed with os error 32 before the fix and passes after.Checklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.