Skip to content

Conversation

@max-trunk
Copy link
Contributor

@max-trunk max-trunk commented Jan 6, 2026

Smoketests started failing when a new version of rb_sys was released yesterday https://github.com/oxidize-rb/rb-sys/releases/tag/v0.9.124, which utilizes Ruby 4

The cross-gem action we use for building the rspec gem looks for a Gemfile.lock file at the root of the repo to parse the version of rb_sys to use. It does not respect the inputted working-directory when looking for the Gemfile.lock (link). Since our Gemfile.lock is in the rspec_trunk_flaky_tests directory, cross-gem doesn't find it and defaults to latest rb_sys. That led to using Ruby 4 for the build and, since we're not yet compatible with Ruby 4, the build would fail.

The fix I settled on was just copying the Gemfile.lock to the repo root so cross-gem can find it and use the version of rb_sys we expect. When I initially did that, we were on rb_sys 0.9.103, which does not support Ruby 3.4, which is what we've been using to build :). So I also took this opportunity to upgrade our rb_sys version to 0.9.123. Keep in mind that this is the same version we've been using lately, since cross-gem would default to latest, so shouldn't be any surprises there

Example passing run with these changes: https://github.com/trunk-io/analytics-cli/actions/runs/20760863485

@trunk-io
Copy link

trunk-io bot commented Jan 6, 2026

😎 Merged successfully - details.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.09%. Comparing base (3641e33) to head (c09fcab).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #970      +/-   ##
==========================================
+ Coverage   80.81%   81.09%   +0.27%     
==========================================
  Files          66       66              
  Lines       14100    14100              
==========================================
+ Hits        11395    11434      +39     
+ Misses       2705     2666      -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.

@max-trunk max-trunk marked this pull request as ready for review January 6, 2026 20:41
@max-trunk max-trunk requested a review from jc3m January 6, 2026 20:43
Copy link
Collaborator

@cmillar-trunk cmillar-trunk left a comment

Choose a reason for hiding this comment

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

lgtm, minor ask

file: rspec-trunk-flaky-tests/rspec_trunk_flaky_tests.gemspec

# this is necessary because the cross-gem action doesn't support reading the Gemfile.lock from the subdirectory
# leading to a mismatch in the rb_sys version
Copy link
Collaborator

Choose a reason for hiding this comment

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

Excellent comment explaining the arcana here, thank you.


gem 'rake'
gem 'rake-compiler', '1.2.0'
gem 'rake-compiler'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we pin this to a more recent version instead of leaving it unbound?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep!

@trunk-staging-io
Copy link

trunk-staging-io bot commented Jan 6, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@trunk-io trunk-io bot merged commit e041f5c into main Jan 6, 2026
25 checks passed
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