Repository navigation
fix(app-tools-extensions): trace deploy output with @vercel/nft 1.x - #166
Conversation
ndepe pins @vercel/nft to exactly 0.29.2, so deploy tracing could only pick up nft fixes through downstream overrides or patches. Pass ndepe's traceFiles hook an app-tools tracer that calls @vercel/nft ^1.11.0. nft statically evaluates os.homedir(), os.tmpdir() and literal system paths, so code like fs.readFileSync(path.join(os.homedir(), name)) turned into a glob of the whole home directory; with base '/' the trace ran out of memory. The tracer's ignore predicate skips paths under /dev, /etc, /proc, /run, /sys and /var/run, and globs of the whole root, home or temp directory. Files inside home and temp are still traced. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Changed Files
|
|
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad128900cd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Move the nft 1.x deploy tracer and its tests into the fork-owned @modern-js/app-tools-extensions/deploy-output/trace-files entry, and keep app-tools to passing it through ndepe's native traceFiles option. Record the three preset lines as inline patches in the fork ledger. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Rsdoctor Bundle Diff Analysis📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 bundle-diffPath:
Generated by Rsdoctor GitHub Action |
…t 1.x UltraModern 3.9.0-ultramodern.20 traces deploy output through its own traceDeployFiles on @vercel/nft 1.11 (ultramodernjs/ultramodern.js#166), which ignores build-host system roots and whole home/temp globs. The patched 0.29.2 copy and the root devDependency that pinned it are no longer on the trace path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
web-infra-dev/nde#9 (ndepe: nft ^1.11.0)
Why the change
Deploy output was traced with ndepe's pinned
@vercel/nft0.29.2, so nft fixes only arrived through downstream patches, and dynamic home/tmp/system paths could make the trace glob the whole build host and run out of memory.Special things to note
FORK-DIVERGENCE.md(budgets raised with--record-growth); drop them once ndepe uses nft ^1.11.Change outline
A new fork-owned tracer, plugged into ndepe's existing
traceFileshook:How a deploy trace runs now:
deploy preset (node | netlify | vercel) └─ ndepe.handleDependencies({ ..., - /* internal nft 0.29.2 */ + traceFiles: traceDeployFiles }) + └─ nft 1.x nodeFileTrace(files, { base: '/', ignore })The
ignorepredicate keeps nft from expanding build-host paths:Without
ignore, the new test crashes out of memory onfs.readFileSync(path.join(os.homedir(), name)).Tests: app-tools-extensions
tests/deploy-output, app-toolstests/deploy, and bffnode-deploy-conditional-entriespass.tsgo --noEmitis clean and the divergence gate passes.🤖 Generated with Claude Code