Skip to content

fix(planner): use the shared lockfile pattern in the path baseline - #147

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

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

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Part of #97 (the src/planner/path-baseline.ts:146 copy from the follow-up list).

What changes

  • The config/dependency rule in runPathBaseline now uses LOCKFILE from src/repo/lockfiles.ts instead of its own package-lock.json check plus regex.
  • tests/planner/path-baseline.test.ts gets one case per name in LOCKFILE_NAMES: a change to only that file selects every test, sets fallbackRequired and matches config/dependency -> full fallback.

Behaviour change

A change to only npm-shrinkwrap.json now falls back to the full suite, like the other lockfiles. Before, it fell through to the later rules.

bun.lock was already covered: the old bun\.lockb? alternative matches it. So npm-shrinkwrap.json was the only missing name here, not bun.lock as the follow-up list said.

Validation

  • On main, the new npm-shrinkwrap.json case fails and the other five pass. With the change, all pass.
  • npm run typecheck, npm test (1072 pass, 0 fail) and npm run audit:boundary pass.

src/research/baseline/path-baseline.ts is the last copy on the list. I'll send it as a separate PR once one of these is in, so each PR stays one file.

runPathBaseline spelled out its own lockfile regex, which missed
npm-shrinkwrap.json, so a change to only that file did not fall back
to the full suite. Match against LOCKFILE from src/repo/lockfiles.ts
instead, and test every name in LOCKFILE_NAMES.

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-16T07:57:57.854816Z 31be98f 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 eb10aed into DiffCI:main Nov 16, 2026
13 checks passed
@adityankale190895

Copy link
Copy Markdown
Member

Hi @sarankumar1325, thank you for #145, #146 and #147, all merged today. That makes 13 merged PRs. #147 also fixed a real gap: a change to only npm-shrinkwrap.json didn't trigger the full fallback in the path baseline, and you were right that bun.lock was already covered. I'm happy with the new fact order in #146, so no need to keep the old one. Your planned PR for src/research/baseline/path-baseline.ts sounds good.

You're close to closing #97, which is most of the lockfile-signals area. The invitation from #121 still stands. You can be the area maintainer for lockfile and config-file signals: named on that area in the README and docs, consulted on its design, asked to review PRs that touch it, and co-author of the write-up when the next round of narrowing ships.

If you'd prefer something lighter, I'd also like to list you as a regular contributor. That gives you first pick of new issues before they're labelled good first issue, input on design issues before work starts, and a written reference or LinkedIn recommendation for your DiffCI work if it's useful. See contributor tiers.

Either is fine, and so is neither. Just let me know which you'd like.

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