Skip to content

Release lockfile normalization misclassifies coverage lockfiles #53

Closed

Description

@pboling

Summary

The release preparation path classifies generated files ending in .lock as Bundler lockfiles without verifying that they are actual Gemfile lockfiles. On the StructuredMerge core release, coverage produced packages/ruby/coverage/.resultset.json.lock; the normalizer then treated it as a Bundler lockfile and attempted to stage coverage/.resultset.json.lock relative to the repository root, although that path exists under packages/ruby/coverage/.

This caused release preparation to fail while staging/resetting release lockfiles.

Expected behavior

Only known Bundler lockfiles (or files identified through Bundler/Gemfile metadata) should be normalized/staged as Bundler lockfiles. Generated coverage lock files such as .resultset.json.lock should not be classified as Bundler lockfiles or staged by the Bundler lockfile normalizer.

Reproduction

  1. Run the Ruby release preparation/build checks that generate coverage/.resultset.json.lock under a nested package directory.
  2. Run the Kettle Dev Bundler lockfile normalization/update step.
  3. Observe that the coverage lock is classified as a Bundler lockfile and resolved against the repository root.

Context

The package has a tracked, templated packages/ruby/.gitignore containing /coverage/, and Git confirms that packages/ruby/coverage/.resultset.json.lock is ignored. The failure is in Kettle Dev's lockfile classification/staging path, independently of whether the coverage artifact is ignored.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions