Skip to content

Conversation

@k0kubun
Copy link
Member

@k0kubun k0kubun commented Jul 31, 2025

This PR updates BUNDLED WITH in Gemfile.lock to 2.8.0.dev as a workaround for Shopify/ruby#622. It also bumps the gem versions not locked in Gemfile to ease this work. I pinned hexapdf and ruby-lsp versions since upgrading them break the benchmark though.

When you run the current yjit-bench with Ruby master, Bundler currently re-execs itself and drops JIT options. I don't know how yjit-metrics works around it, but I have no way to locally run YJIT or ZJIT with benchmarks that have Gemfile.lock. Because the repro condition is limited to Gemfile.lock having non-2.8.0.dev version in BUNDLED WITH for Ruby master, this PR uses 2.8.0.dev as BUNDLED WITH to fix the problem. I confirmed that Ruby 3.4.5 works with this Gemfile.lock.

@k0kubun k0kubun force-pushed the bundler-workaround branch from 93a14bc to 638f87f Compare July 31, 2025 23:48
@k0kubun k0kubun marked this pull request as ready for review August 1, 2025 00:16
@k0kubun k0kubun requested a review from a team August 1, 2025 00:16
Copy link
Member

@XrXr XrXr left a comment

Choose a reason for hiding this comment

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

Makes sense. This is how I worked around the re-exec issues I saw. Thanks for investigating the filing a rubygems issue 🙏🏼

@tekknolagi
Copy link
Contributor

Small nit: is there a way to upgrade bundler without upgrading packages? That might change benchmark results in weird and subtle ways

@k0kubun
Copy link
Member Author

k0kubun commented Aug 1, 2025

is there a way to upgrade bundler without upgrading packages? That might change benchmark results in weird and subtle ways

Yes, but we occasionally update libraries anyway. You can't freeze libraries forever and keep them running. That's part of yjit-bench maintenance.

@k0kubun k0kubun merged commit 5eca368 into main Aug 1, 2025
4 checks passed
@k0kubun k0kubun deleted the bundler-workaround branch August 1, 2025 16:22
@k0kubun
Copy link
Member Author

k0kubun commented Aug 1, 2025

Filed Shopify/yjit-metrics#417 to explain the potential impact on benchmarks.

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.

3 participants