Skip to content

fix(ci-inference): report bun.lock in lockfileFacts - #105

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
sarankumar1325:fix/lockfile-facts-bun-lock
Nov 11, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
sarankumar1325:fix/lockfile-facts-bun-lock

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Fixes #96

lockfileFacts in src/ci-inference/evidence.ts listed bun.lockb but not bun.lock, the text lockfile Bun has written by default since 1.2. In a Bun repository that only has bun.lock, no lockfile.present fact was produced, so pinnedDependencyBasis reported "no lockfile and no packageManager field" for a repository that does pin its dependencies.

This adds bun.lock to the list. I left the other hand-written lockfile lists alone, since folding them into the shared LOCKFILE names is #97.

Tests

New file tests/ci-inference/lockfile-facts.test.ts. This is the first direct test of lockfileFacts.

  • For each lockfile name (package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, bun.lock, bun.lockb), it creates a temporary directory with only that file and checks that the fact is reported. The bun.lock case fails without the fix.
  • It checks that each of those names matches the shared LOCKFILE pattern.
  • It checks that a directory with no lockfile reports nothing.

npx tsx --test "tests/ci-inference/**/*.test.ts" gives 75 passed. npm run typecheck is clean.

lockfileFacts listed bun.lockb but not bun.lock, the text lockfile Bun writes
by default since 1.2, so a Bun repository with only bun.lock produced no
lockfile.present fact and pinnedDependencyBasis reported no lockfile.

Fixes DiffCI#96

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

chatgpt-codex-connector Bot commented Nov 11, 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-11T05:27:35.508054Z 0d764d6 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 1c70153 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.

CI inference: lockfileFacts misses bun.lock

2 participants