Skip to content

Replace #9506 with a targeted :ruby_repo skip#9509

Merged
hsbt merged 1 commit intomasterfrom
fix-bundler-checksum-ruby-core-test-master
Apr 30, 2026
Merged

Replace #9506 with a targeted :ruby_repo skip#9509
hsbt merged 1 commit intomasterfrom
fix-bundler-checksum-ruby-core-test-master

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented Apr 30, 2026

What is your fix for the problem, implemented in this PR?

The blanket skip in checksums_section from #9506 caused ruby-core test failures whose lockfile expectations legitimately include the bundler checksum (paths that go through bundle install where bundler is activated as a gem).

Revert that change and instead tag only the affected setup_spec example with :ruby_repo, since its ruby "require 'bundler/setup'" invocation is the one case where bundler is loaded from $LOAD_PATH and Source::Metadata's synthetic bundler spec has no cache_file on disk.

Make sure the following tasks are checked

The blanket skip in checksums_section from #9506 caused 82 ruby-core test
failures whose lockfile expectations legitimately include the bundler
checksum (paths that go through `bundle install` where bundler is
activated as a gem). Revert that change and instead tag only the
affected setup_spec example with :ruby_repo, since its
`ruby "require 'bundler/setup'"` invocation is the one case where
bundler is loaded from $LOAD_PATH and Source::Metadata's synthetic
bundler spec has no cache_file on disk.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 30, 2026 03:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Bundler’s spec helpers/tests so ruby-core runs don’t broadly skip bundler checksum expectations, and instead only skip the single example that hits the “bundler loaded from $LOAD_PATH as a default gem” edge case.

Changes:

  • Remove the Spec::Path.ruby_core? condition from checksums_section so bundler checksums are included consistently again.
  • Tag the specific setup_spec example that fails on ruby-core with :ruby_repo and document why it’s excluded there.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
spec/support/checksums.rb Reverts the blanket ruby-core skip so checksum expectations match lockfile generation in more ruby-core scenarios.
spec/runtime/setup_spec.rb Applies a targeted :ruby_repo exclusion to the single failing example and adds rationale inline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsbt hsbt merged commit 66c7546 into master Apr 30, 2026
101 checks passed
@hsbt hsbt deleted the fix-bundler-checksum-ruby-core-test-master branch April 30, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants