Repository navigation
feat: detect Yarn Classic lockfile dependency changes - #63
Conversation
Signed-off-by: Emmanuel Mawulolo Tagbor <[email protected]>
|
Thanks @KingEmma7, this is a really careful first PR. You claimed the issue, scoped it to Classic v1 and did what you said you would. I especially like that it runs the full suite by default (Berry, workspaces, mixed package managers, CI (including Windows) is waiting on maintainer approval for first-time contributors; I'll approve it so it runs here. A few things before a deeper review:
Great work, and welcome to DiffCI! |
Resolve the git-diff.ts import conflict with the Yarn Classic lockfile work (DiffCI#63), and switch its nested-lockfile check to the shared LOCKFILE pattern so no inline copy of the regex remains in git-diff.ts. Signed-off-by: adityankale190895 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged — thanks again @KingEmma7, and welcome aboard as a DiffCI contributor! I merged this ahead of the review points above, so please treat them as follow-ups rather than blockers:
If you're up for more, #49 (pnpm lockfile) is the natural next step after this work. It's the same pattern for a different lockfile format. |
Bundles Core 0b82acb. verify no longer refuses a verdict when the run only writes new files (such as __pycache__ from a repository's own tests): those are listed as written during verification, while edits to existing files or a moved HEAD still block and are now named. Replaying 28 previously blocked DentalPresence commits on Cloudflare gave 0 blocked. Also includes Yarn Classic lockfile attribution (#63) and bun.lock / npm-shrinkwrap.json detection (#64). Records the Muse marketplace digest for the 0.3.19 package tree (pinned Muse 1.4.11-R6667.1, LF archive; the same method reproduces 0.3.18's). Also lists packages/diffci-cli/tests/client/verify-snapshot.test.ts in release-files.json: 0b82acb added it without an entry, so Core CI's boundary audit was failing on main. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityankale190895 <[email protected]>
Root
yarn.lockedits currently force a full run. This adds conservative selection for a supported Yarn Classic v1 registry format. Since Classic omits peer relationships and hoisting information, any semantic change treats every old/new root dependency as potentially affected, then selects its importers. Raw lockfile readers are also covered, including for formatting-only changes.Exact manifest requests and lockfile edges must resolve. Berry, workspaces, mixed package managers, unsupported or malformed input, undeclared imports, untraceable tooling and unresolved readers retain full fallback. No dependencies were added. Selection remains advisory; required CI stays authoritative.
Synthetic regression fixtures cover direct and transitive changes, grouped/scoped selectors, manifest disagreement, unsupported inputs and raw readers. A host-only bump selects both the host and its failing peer consumer, while skipping an unrelated test. The regression fails on the upstream integration and passes with this patch.
Validation on macOS with Node 24.9.0:
npm ci,npm run typecheck,npm test(590 tests),npm run buildandnpm run audit:boundarypassed. The built CLI's selected tests reproduce the peer-consumer failure. Hosted CI and Windows have not run; fixtures construct installed packages locally without running Yarn.Implementation and review were assisted by Codex. All fixtures are synthetic.
Refs #50.