Follow-up from the neutral triage of PR #933 (head 8f4712d2397c27b39a2acfc1e1bdc23ce7fcbf62, branch fix/issue-923). Every finding from the two review rounds on that PR was verified fixed in the head commit except the one below, which is non-blocking and deferred here so the PR can merge.
1. test/core/llp-ref-hygiene.test.js dies on a mid-rename working tree (severity: low, test robustness)
Noted in review round 2 on PR #933 under "Verified, no action". trackedFiles() (test/core/llp-ref-hygiene.test.js:303) feeds git ls-files -z output straight into fs.readFileSync at test/core/llp-ref-hygiene.test.js:336 with no fs.existsSync filter. A path that is tracked but absent from the working tree (mid-rebase, mid-rename) makes the whole test file throw ENOENT at module load instead of reporting a hygiene result.
The sibling gate landed by PR #933 already carries the pattern to copy: trustInstallerNamers() in test/core/proxy-trust-claims.test.js filters git ls-files output with fs.existsSync(path.join(REPO_ROOT, file)) before reading, with a comment explaining why ("A tracked path can be absent from the working tree mid-rebase. That is not a caller, and this gate must not die on it.").
Fix: apply the same existsSync filter to trackedFiles() in test/core/llp-ref-hygiene.test.js.
Not a production defect: the gap only bites a developer running npm test on a transiently inconsistent working tree, and the failure is loud, not silent.
Backlink: PR #933 (triage record 8f4712d2397c27b39a2acfc1e1bdc23ce7fcbf62).
Follow-up from the neutral triage of PR #933 (head
8f4712d2397c27b39a2acfc1e1bdc23ce7fcbf62, branchfix/issue-923). Every finding from the two review rounds on that PR was verified fixed in the head commit except the one below, which is non-blocking and deferred here so the PR can merge.1.
test/core/llp-ref-hygiene.test.jsdies on a mid-rename working tree (severity: low, test robustness)Noted in review round 2 on PR #933 under "Verified, no action".
trackedFiles()(test/core/llp-ref-hygiene.test.js:303) feedsgit ls-files -zoutput straight intofs.readFileSyncattest/core/llp-ref-hygiene.test.js:336with nofs.existsSyncfilter. A path that is tracked but absent from the working tree (mid-rebase, mid-rename) makes the whole test file throw ENOENT at module load instead of reporting a hygiene result.The sibling gate landed by PR #933 already carries the pattern to copy:
trustInstallerNamers()intest/core/proxy-trust-claims.test.jsfiltersgit ls-filesoutput withfs.existsSync(path.join(REPO_ROOT, file))before reading, with a comment explaining why ("A tracked path can be absent from the working tree mid-rebase. That is not a caller, and this gate must not die on it.").Fix: apply the same
existsSyncfilter totrackedFiles()intest/core/llp-ref-hygiene.test.js.Not a production defect: the gap only bites a developer running
npm teston a transiently inconsistent working tree, and the failure is loud, not silent.Backlink: PR #933 (triage record
8f4712d2397c27b39a2acfc1e1bdc23ce7fcbf62).