Repository navigation
Move src/project and src/format file operations to deno_ral - #15426
Merged
Merged
Conversation
The plan was written against b86f98d and still assumed PRs 08 and 22 had landed before the project/format codemod; the 2026-11-17 landing order puts the filesystem codemods first. A dry run on current main finds 159 replacements (project-shared.ts gained a read in #15101), so the expected src drop is 163, and seven cited lines moved. Two steps would have put unrelated changes in a mechanical PR. Three of the 51 codemod files are already unformatted on main, so the whole-file deno fmt step would reformat code the codemod never touched, and `git add src/project src/format` stages directories. Both are amended in README rows; the plan keeps its text. The dry-run report moves out of /tmp so later tasks can read it, the deno check commands gain --allow-import, and the final git clean runs as a dry run first.
The conflict procedure rebased on origin/main, which is the fork here and can lag the PR base; it now fetches and uses upstream/main. Plans 13 and 14 carry the same step, so the fix for them is recorded as a README open decision for their step 0, per the directory's AGENTS.md. Conflict recovery now skips deno fmt on the three files that are already unformatted on main, matching the Task 2 Step 2 exception. The Verification render pointed at tests/docs/websites/search, which has no website config at its root and produces no sitemap or feed. It now uses tests/docs/listings-feed-image (site-url plus listing feeds); a dev render wrote sitemap.xml and the three index.xml feeds. Also: stale project-context.ts line numbers in Files, the Task 3 record showing a Bash env assignment in front of a .ps1 runner, and HANDOFF still naming PR 12 as next rather than in progress.
The coordinator reran the acceptance criteria, the manual renders that had not run yet (listing feeds/sitemap, MECA bundle) and the README whole-branch greps against a fresh upstream/main; all match the executor's record. The review checklist is ticked, and HANDOFF now points at opening the PR.
The plan said frameInputWalkError and the unreadable-directory test read the error through isPermissionDenied. frameInputWalkError reads only the symbol-keyed field, which tagInputWalkError sets after the predicate check, and the test still asserts Deno.errors.PermissionDenied on the raw rejection and ErrorEx on the framed result.
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. |
cderv
added a commit
that referenced
this pull request
Nov 25, 2026
Record the merged project and format filesystem codemod and the new ratchet baseline (src 507), point the handoff to PR 13, and retire the three PR 12 rows from the open decisions table. The conflict-procedure row for PRs 13 and 14 stays, since neither has started.
cderv
added a commit
that referenced
this pull request
Nov 25, 2026
Coherence check of the plans against main at 75452bd. - Step 0 gains a fourth code-block check: no listing meant for src or package/src restores a Deno call the layer already covers - Add a row for PR 04 (readSitemap listing) and one carrying what PRs 10-12 found for PRs 13 and 14, including the owed changelog entry - PR 01 shrinks to its regression test and no longer gates PR 26: the sorted bslib order landed with #15426 - Retire rows for merged PRs (10, 00a), fold the kRalDenoReplacements row, move the PR 02c rule to conventions - Rule 7 and Roles point to AGENTS.md instead of requiring a skill - Worktrees are created from upstream/main - HANDOFF: the 00b remainder is the critical path and has not started Related to #15133
This was referenced Nov 25, 2026
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.
Part of the runtime migration (#15133). Follows #15418 and #15423, which did the same for
src/core,src/quarto-core,src/configandsrc/command. This runs the codemod onsrc/projectandsrc/format: a call likeDeno.readTextFileSync(path)becomesreadTextFileSync(path)imported fromdeno_ral/fs.ts. The layer still calls Deno underneath.Most of the diff is the codemod output (159 calls in 51 files), in its own commit (ee770fe). The rest is hand edits (62b1ceb) in
project-context.tsandproject-index.ts: threeinstanceof Deno.errors.Xchecks now use theisPermissionDenied()/isNotFound()predicates fromdeno_ral/errors.ts, and theInputWalkErrortype no longer extendsDeno.errors.PermissionDenied. The predicates also look through one level ofcause, so those checks now accept a wrapped error as well.One behavior changes: the layer's
readDirSyncreturns entries sorted by name, where Deno returns them in filesystem order. In this directory it affects two places: the order in which the bslib component SCSS files are concatenated into the theme, and the order of the items listed in the manuscript MECA bundle.The runtime boundary baseline for
srcdrops from 670 to 507Deno.*calls (-163, the 159 codemod calls plus the 4 error references).The branch also carries the PR 12 plan and its hand-off notes under
dev-docs/runtime-migration/, which were refreshed against current main before the codemod ran.Pending checks
test-smokes-parallel.ymlon Ubuntu and WindowsTest plan
src/projectandsrc/formatafter the commit: 0 files would be rewrittendeno check quarto.tspassessrcat 507, every other scope unchangedtests/docs/listings-feed-image: no warnings,sitemap.xmland the threeindex.xmlfeeds writtentests/docs/manuscript/base: no warnings,index-meca.zipwrittenChecklist
I have (if applicable):
AI-assisted PR
Note: autonomous AI agents submitting PRs without human oversight are not permitted — see the Code of Conduct.