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

Support Rails 7.2 on CI #2382

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Support Rails 7.2 on CI #2382

merged 2 commits into from
Aug 19, 2024

Conversation

st0012
Copy link
Collaborator

@st0012 st0012 commented Aug 17, 2024

#skip-changelog

On my machine, running sentry-rails's full test suite with rake test against Rails 7.1 takes less than 8 seconds. But it now takes ~33 seconds against Rails 7.2 even after I solved the slowdown issue caused by the eager load namespace accumulation issue. That said, I think we can start running tests against Rails 7.2 and optimize the test setup further in another PR.

Copy link

codecov bot commented Aug 17, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.69%. Comparing base (22f2a3a) to head (3a4836f).
Report is 1 commits behind head on master.

Files Patch % Lines
sentry-rails/spec/sentry/generator_spec.rb 75.00% 1 Missing ⚠️
sentry-rails/spec/sentry/rails/client_spec.rb 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2382      +/-   ##
==========================================
- Coverage   98.70%   98.69%   -0.01%     
==========================================
  Files         210      210              
  Lines       13904    13912       +8     
==========================================
+ Hits        13724    13731       +7     
- Misses        180      181       +1     
Components Coverage Δ
sentry-ruby 99.08% <ø> (+<0.01%) ⬆️
sentry-rails 97.34% <84.61%> (-0.09%) ⬇️
sentry-sidekiq 97.01% <ø> (ø)
sentry-resque 96.79% <ø> (ø)
sentry-delayed_job 98.92% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)
Files Coverage Δ
sentry-rails/spec/dummy/test_rails_app/app.rb 92.75% <100.00%> (+0.10%) ⬆️
sentry-rails/spec/sentry/generator_spec.rb 97.36% <75.00%> (-2.64%) ⬇️
sentry-rails/spec/sentry/rails/client_spec.rb 97.05% <85.71%> (-2.95%) ⬇️

... and 1 file with indirect coverage changes

@@ -43,6 +43,9 @@ jobs:
- { ruby_version: "2.7", rails_version: 5.2.0 }
- { ruby_version: "2.7", rails_version: 6.0.0 }
- { ruby_version: "2.7", rails_version: 6.1.0 }
- { ruby_version: "3.1", rails_version: 7.2.0 }
- { ruby_version: "3.2", rails_version: 7.2.0 }
- { ruby_version: "3.3", rails_version: 7.2.0 }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I know it's ultimately a business decision, but IMO we should drop support or at least stop running CI against Ruby 2.4, 2.5 and Rails 5.0 and 5.1.
Otherwise, with the release of Rails 8.0 in the near future, we'll be running so many jobs on CI for each PR.

Copy link
Member

Choose a reason for hiding this comment

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

I will prepare a major soon and remove, just need some time since I'm busy with another larger project

@st0012 st0012 merged commit 6181b7b into master Aug 19, 2024
129 of 130 checks passed
@st0012 st0012 deleted the sentry-rails-7.2 branch August 19, 2024 20:12
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