Repository navigation
refactor(ci-inference): use the shared lockfile names in lockfileFacts - #146
Merged
adityankale190895 merged 1 commit intoNov 16, 2026
Conversation
lockfileFacts in evidence.ts spelled out the lockfile names in its own list. Read LOCKFILE_NAMES from src/repo/lockfiles.ts instead, so the list cannot drift from the other lockfile signals. A new test writes every name in LOCKFILE_NAMES and expects a fact for each. 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #97 (the
src/ci-inference/evidence.ts:65copy from the follow-up list).What changes
lockfileFactsinsrc/ci-inference/evidence.tsnow loops overLOCKFILE_NAMESfromsrc/repo/lockfiles.tsinstead of its own hand-written list.tests/ci-inference/lockfile-facts.test.tsgets a test that writes every name inLOCKFILE_NAMESinto a temp directory and expects one fact per name, in list order. If a name is added to the shared list, this test covers it without a second edit.One visible difference
The old list was in a different order (
pnpm-lock.yaml,yarn.lock,package-lock.json, …). The facts now come out inLOCKFILE_NAMESorder. This only matters when a repository commits more than one lockfile:pinnedDependencyBasistakes the first fact, so itsdetailtext could name a different lockfile.pinnedistrueeither way. If you'd rather keep the old order, I can sort by a priority list instead.Validation
npm run typecheck,npm test(1067 pass, 0 fail) andnpm run audit:boundarypass.