Skip to content

refactor(git-diff): use the shared lockfile names in the lockfile-free narrowing - #120

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
sarankumar1325:refactor/git-diff-shared-lockfiles
Nov 11, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
sarankumar1325:refactor/git-diff-shared-lockfiles

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Part of #97 (this PR covers src/git/git-diff.ts; the issue says one PR per file is fine)

The lockfile-free dependency narrowing in git-diff.ts used its own PACKAGE_LOCKFILES list to decide whether a lockfile governs a changed package.json. It now uses LOCKFILE_NAMES from src/repo/lockfiles.ts, and the local list is removed. The names are the same, so behaviour is unchanged. CONFIG_PATTERNS is left alone, as the issue asks.

file-references.ts and impact.ts are covered in their own PRs.

Tests

  • tests/repo/lockfile-free-dependencies.test.ts: new case. For every name in LOCKFILE_NAMES, a lockfile at the root or beside the changed manifest (packages/a/) keeps the full suite for a dependency bump. Mutation check: leaving bun.lockb out of the names fails the case.
  • npm test: 919 pass, 0 fail. npm run typecheck and npm run audit:boundary are clean.

AI assistance was used to prepare this change; I reviewed and tested it.

The lockfile-free dependency narrowing kept its own list of lockfile
names to decide whether a lockfile governs a changed manifest. Use
LOCKFILE_NAMES from src/repo/lockfiles.ts instead, so it can't drift from
the other lockfile signals. CONFIG_PATTERNS is unchanged.

Part of DiffCI#97

Signed-off-by: sarankumar1325 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-11T09:52:00.184790Z
We couldn’t complete this review. Comment @codex review to try again.
1d0c3ab PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@adityankale190895
adityankale190895 merged commit 4fa17e1 into DiffCI:main Nov 11, 2026
11 checks passed
adityankale190895 added a commit that referenced this pull request Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
adityankale190895 added a commit that referenced this pull request Nov 11, 2026
Engine pin moves from a50b0ef to 8b8c5f5, picking up the Core engine
changes since 0.3.38: path-literal edges and narrowed computed-load
selections, relative imports of build output followed to source, Jest
confined to its sub-package, tsd/tstyche scoped to their own tests, Go
replace targets under root-module scope, every lockfile hashed and
reported (bun.lock included), and a babel.config-only change running
every test (#105-#110, #118-#120).

Descriptions across npm, the MCP registry, plugins and the Action now
read "verification for AI coding agents".
Records the Muse marketplace digest for the 0.3.39 package tree, computed
by the pinned Muse 1.4.11-R6667.1 build from an LF archive (the same
method reproduces 0.3.38's recorded digest).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: adityankale190895 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants