Repository navigation
fix(planner): use the shared lockfile pattern in the path baseline - #147
Conversation
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]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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 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 Either is fine, and so is neither. Just let me know which you'd like. |
Part of #97 (the
src/planner/path-baseline.ts:146copy from the follow-up list).What changes
runPathBaselinenow usesLOCKFILEfromsrc/repo/lockfiles.tsinstead of its ownpackage-lock.jsoncheck plus regex.tests/planner/path-baseline.test.tsgets one case per name inLOCKFILE_NAMES: a change to only that file selects every test, setsfallbackRequiredand matchesconfig/dependency -> full fallback.Behaviour change
A change to only
npm-shrinkwrap.jsonnow falls back to the full suite, like the other lockfiles. Before, it fell through to the later rules.bun.lockwas already covered: the oldbun\.lockb?alternative matches it. Sonpm-shrinkwrap.jsonwas the only missing name here, notbun.lockas the follow-up list said.Validation
npm-shrinkwrap.jsoncase fails and the other five pass. With the change, all pass.npm run typecheck,npm test(1072 pass, 0 fail) andnpm run audit:boundarypass.src/research/baseline/path-baseline.tsis 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.