Skip to content

Follow-up: deferred review findings from PR #929 #940

Description

@philcunliffe

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    neutral:fixDelegate this issue to neutral for an autonomous fix attempt (reproduce -> fix -> PR)neutral:stuckneutral attempted this but cannot complete it autonomously — needs a human

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions