Skip to content

fix(research): use the shared LOCKFILE in the generic path baseline - #148

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/research-path-baseline-lockfiles
Nov 16, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
sarankumar1325:fix/research-path-baseline-lockfiles

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Part of #97. This is the last of the three copies listed in your comment on #97 (the evidence.ts and planner/path-baseline.ts copies were #146 and #147).

Change

src/research/baseline/path-baseline.ts globalFallbackPattern listed the JavaScript lockfiles by hand and left out npm-shrinkwrap.json, so a change to that file alone didn't trigger the generic baseline's full fallback. It now checks LOCKFILE.test(p) from src/repo/lockfiles.ts. The non-lockfile manifests (package.json, go.mod, go.sum, Cargo.lock, pyproject.toml and so on) stay in their list, unchanged. LOCKFILE is anchored, like the old includes check, so only a root-level lockfile counts.

Tests

There's a new tests/research/baseline/path-baseline.test.ts, added to release-files.json:

  • One case per name in LOCKFILE_NAMES: a change to only that file selects every task, with fallbackRequired and the global/dependency/config/workflow -> full fallback rule. With the source change reverted, the npm-shrinkwrap.json case fails.
  • package.json, go.sum, Cargo.lock and pyproject.toml still fall back.
  • A nested src/fixtures/package-lock.json isn't treated as a root dependency change.

npm test gives 1082 passed. npm run typecheck and npm run audit:boundary pass.

A side note, not changed here: src/repo/impact.ts:55 CONFIG_FILE_NAMES also lists lockfiles (without npm-shrinkwrap.json), next to tsconfig names. It wasn't in your list, and it feeds config-change behaviour, so I left it for you to decide.

Signed off for the DCO. Written with an AI coding assistant; I reviewed the diff and ran the checks.

The research path baseline spelled out the lockfile names and missed
npm-shrinkwrap.json, so a change to it alone did not trigger the full
fallback. Use LOCKFILE from src/repo/lockfiles.ts, the last hand-written
copy in src/.

Part of DiffCI#97

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

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T09:07:32.605509Z 8b069be 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 116de36 into DiffCI:main Nov 16, 2026
13 checks passed
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