Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce latest rubygems on CI #2439

Merged
merged 1 commit into from
Oct 20, 2024
Merged

Conversation

solnic
Copy link
Collaborator

@solnic solnic commented Oct 19, 2024

This makes sure that we use latest rubygems on CI. Without this we're seeing random failures caused by bugs in old Rubygems when bundling may crash with ArgumentError.

I discovered this through #2436 failing like that: https://github.com/getsentry/sentry-ruby/actions/runs/11411361838/job/31767045829?pr=2436#step:4:123

#skip-changelog

Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.17%. Comparing base (ee37a4a) to head (cb4492d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2439      +/-   ##
==========================================
+ Coverage   98.09%   98.17%   +0.08%     
==========================================
  Files         126      126              
  Lines        4723     4723              
==========================================
+ Hits         4633     4637       +4     
+ Misses         90       86       -4     
Components Coverage Δ
sentry-ruby 98.51% <ø> (ø)
sentry-rails 97.19% <ø> (ø)
sentry-sidekiq 97.47% <ø> (+2.02%) ⬆️
sentry-resque 92.85% <ø> (ø)
sentry-delayed_job 95.65% <ø> (ø)
sentry-opentelemetry 99.31% <ø> (ø)

see 4 files with indirect coverage changes

@solnic solnic force-pushed the solnic/enfore-latest-rubygems-on-ci branch from a9a0df5 to 3d7b004 Compare October 19, 2024 21:07
@solnic solnic force-pushed the solnic/enfore-latest-rubygems-on-ci branch from d38090e to cb4492d Compare October 19, 2024 21:38
@@ -36,7 +36,7 @@ jobs:
- { ruby_version: 2.6, sidekiq_version: 5.0 }
- { ruby_version: 2.6, sidekiq_version: 6.0 }
- { ruby_version: jruby, sidekiq_version: 5.0 }
- { ruby_version: jruby, sidekiq_version: 6.0 }
- { ruby_version: jruby, sidekiq_version: 6.5 }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

With latest rubygems under jruby, bundling sidekiq using 6.0 as the version spec would install sidekiq 6.0.x - and that version actually crashes with Sidekiq[]= not being defined error.

@solnic solnic marked this pull request as ready for review October 19, 2024 21:40
@solnic solnic merged commit b4bbed2 into master Oct 20, 2024
141 of 142 checks passed
@solnic solnic deleted the solnic/enfore-latest-rubygems-on-ci branch October 20, 2024 20:56
solnic added a commit that referenced this pull request Oct 20, 2024
solnic added a commit that referenced this pull request Oct 20, 2024
sl0thentr0py pushed a commit that referenced this pull request Oct 22, 2024
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