Skip to content

Make ruby_memcheck optional - #4198

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:optional-memcheck
Aug 5, 2026
Merged

Make ruby_memcheck optional#4198
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:optional-memcheck

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator

It consistently fails CI when nokogiri tries to install from source. But those steps don't actually need it and the nokogiri version with this fix is still quite a long while out.

Also bumps bundler to remove a workaround.

It consistently fails CI when nokogiri tries to install from source.
But those steps don't actually need it and the nokogiri version with
this fix is still quite a long while out.
env:
BUNDLER_VERSION: '0' # https://github.com/ruby/ruby/pull/16909
BUNDLE_WITH: 'memcheck'
BUNDLER_VERSION: '0'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Seems that newer bundler need this regardless when running with ruby-head, so I just removed the comment.

@kddnewton

Copy link
Copy Markdown
Collaborator

So if I understand correctly this makes the memcheck task attempt to install with the memcheck group, and the regular gemfile no longer tries to install memcheck right? So the memcheck task itself is still required?

@Earlopain

Copy link
Copy Markdown
Collaborator Author

It's still required, yes. optional: true tells bundler to not install it by default and then the CI step enables it back with BUNDLE_WITH=memcheck so it actually does something. If it were not installed in CI it fails with the dummy task on LoadError.

@kddnewton
kddnewton merged commit b8c5a88 into ruby:main Aug 5, 2026
101 checks passed
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.

2 participants