Skip to content

Lockfile signal misses bun.lock and npm-shrinkwrap.json #47

Closed

Description

@adityankale190895

Context: on a replay of one production app's history, DiffCI fell back to the full suite on 58% of commits, mostly because config, package.json, workflow or lockfile changes forced it to. Narrowing those safely is the main open problem.

computeAnalysis in src/git/git-diff.ts (around line 402) detects lockfiles with
/^(?:package-lock\.json|yarn\.lock|pnpm-lock\.yaml|bun\.lockb)$/. Bun's text lockfile bun.lock and npm-shrinkwrap.json are not matched, although src/planner/check-narrowing.ts and src/repo/analyzer.ts already treat both as lockfiles.

Done when: the regex matches bun.lock and npm-shrinkwrap.json, ideally by sharing one LOCKFILE constant instead of the four copies in src/, and tests/git/git-diff.analysis.test.ts has a case for each.


New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions