Skip to content

Fix ruby gem release by disabling bundler frozen mode#1067

Merged
trunk-io[bot] merged 3 commits intomainfrom
dylan/fix-ruby-gem-release-frozen-mode
Apr 13, 2026
Merged

Fix ruby gem release by disabling bundler frozen mode#1067
trunk-io[bot] merged 3 commits intomainfrom
dylan/fix-ruby-gem-release-frozen-mode

Conversation

@dfrankland
Copy link
Copy Markdown
Member

@dfrankland dfrankland commented Apr 13, 2026

Summary

  • Creates a reusable validate_ruby_platform_gem action that builds and validates the pure ruby fallback gem
  • Fixes the release_ruby_gem.yml workflow by disabling bundler frozen mode before building
  • Renames the job from "Build gem for ruby" to "Validate ruby platform gem"
  • Adds validation to ruby.yml to catch issues on PRs (not just at release time)

Error fixed

The gemspecs for path gems changed, but the lockfile can't be updated because frozen mode is set (Bundler::ProductionError)

Changes

  • New: .github/actions/validate_ruby_platform_gem/action.yml
  • Modified: .github/workflows/release_ruby_gem.yml (uses new action)
  • Modified: .github/workflows/ruby.yml (adds validation step)

Test plan

  • Merge and verify ruby.yml runs validation on this PR
  • Re-run the release workflow with 0.12.9-beta.0

🤖 Generated with Claude Code

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 13, 2026

😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details.

@trunk-staging-io
Copy link
Copy Markdown

trunk-staging-io bot commented Apr 13, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

The gemspec version is updated after bundle install runs, which causes
bundler to fail in frozen/deployment mode when running `rake ruby_gem`.
Disable frozen mode before building the pure ruby gem.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dfrankland dfrankland force-pushed the dylan/fix-ruby-gem-release-frozen-mode branch from ef78fa5 to 590fa41 Compare April 13, 2026 17:10
- Create validate_ruby_platform_gem action that builds and validates
  the pure ruby fallback gem
- Use the action in release_ruby_gem.yml (replacing inline steps)
- Add validation to ruby.yml to catch issues on PRs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dfrankland dfrankland requested a review from TylerJang27 April 13, 2026 17:22
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.96%. Comparing base (88082a3) to head (a93981e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1067      +/-   ##
==========================================
+ Coverage   81.70%   81.96%   +0.26%     
==========================================
  Files          69       69              
  Lines       14878    14878              
==========================================
+ Hits        12156    12195      +39     
+ Misses       2722     2683      -39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 13, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Handle x86_64 and aarch64 builds differently:
- x86_64: Run stub_gen inside manylinux container (CentOS-based, old glibc)
  to avoid glibc mismatch with ubuntu-latest
- aarch64: Run stub_gen on host since the cross-compile container is
  Ubuntu-based with compatible glibc

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dfrankland dfrankland force-pushed the dylan/fix-ruby-gem-release-frozen-mode branch from bb69920 to a93981e Compare April 13, 2026 18:23
dfrankland added a commit that referenced this pull request Apr 13, 2026
Update from manylinux2014 (glibc 2.17) to manylinux_2_28 (glibc 2.28).
This fixes glibc mismatch issues when building on ubuntu-latest which
has a newer glibc than the old manylinux2014 container.

Note: This drops support for older systems that require manylinux2014
(e.g., AWS Glue). If Glue support is needed, see PR #1067 for an
alternative fix that preserves manylinux2014 compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
dfrankland added a commit that referenced this pull request Apr 13, 2026
Update from manylinux2014 (glibc 2.17) to manylinux_2_28 (glibc 2.28).
This fixes glibc mismatch issues when building on ubuntu-latest which
has a newer glibc than the old manylinux2014 container.

Note: This drops support for older systems that require manylinux2014
(e.g., AWS Glue). If Glue support is needed, see PR #1067 for an
alternative fix that preserves manylinux2014 compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@trunk-io trunk-io bot merged commit e1df96d into main Apr 13, 2026
25 checks passed
dfrankland added a commit that referenced this pull request Apr 13, 2026
Update from manylinux2014 (glibc 2.17) to manylinux_2_28 (glibc 2.28).
This fixes glibc mismatch issues when building on ubuntu-latest which
has a newer glibc than the old manylinux2014 container.

Note: This drops support for older systems that require manylinux2014
(e.g., AWS Glue). If Glue support is needed, see PR #1067 for an
alternative fix that preserves manylinux2014 compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
trunk-io bot pushed a commit that referenced this pull request Apr 13, 2026
Update from manylinux2014 (glibc 2.17) to manylinux_2_28 (glibc 2.28).
This fixes glibc mismatch issues when building on ubuntu-latest which
has a newer glibc than the old manylinux2014 container.

Note: This drops support for older systems that require manylinux2014
(e.g., AWS Glue). If Glue support is needed, see PR #1067 for an
alternative fix that preserves manylinux2014 compatibility.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants