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

Test sentry-resque without Rails, fix constantize issue #2248

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

dentarg
Copy link
Contributor

@dentarg dentarg commented Feb 17, 2024

Fixes #2243

You probably don't want the tests to use the same Redis you use for any
app development.

Maybe you want to use Docker with custom port:

    docker run --rm -it -p 16379:6379 redis:6
@dentarg dentarg mentioned this pull request Feb 17, 2024
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

Merging #2248 (6405c71) into master (1d80548) will decrease coverage by 31.02%.
The diff coverage is 66.66%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2248       +/-   ##
===========================================
- Coverage   97.46%   66.44%   -31.02%     
===========================================
  Files         102      101        -1     
  Lines        3825     3797       -28     
===========================================
- Hits         3728     2523     -1205     
- Misses         97     1274     +1177     
Components Coverage Δ
sentry-ruby 55.63% <ø> (-42.51%) ⬇️
sentry-rails 95.05% <ø> (ø)
sentry-sidekiq 94.70% <ø> (ø)
sentry-resque 90.76% <66.66%> (-2.89%) ⬇️
sentry-delayed_job 95.60% <ø> (ø)
sentry-opentelemetry 100.00% <ø> (ø)
Files Coverage Δ
sentry-resque/lib/sentry/resque.rb 95.00% <66.66%> (-5.00%) ⬇️

... and 54 files with indirect coverage changes

@dentarg dentarg force-pushed the sentry-resque/fix-constantize-issue branch from a059a93 to 81159ad Compare February 17, 2024 14:10
I think ruby/psych#655 was resolved long ago
Comment on lines -11 to -12
# For https://github.com/ruby/psych/issues/655
gem "psych", "5.1.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes tests pass on Ruby 2.4 (fail log before this change)

@st0012 st0012 self-requested a review February 18, 2024 23:31
Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix 👍
Would you mind updating the changelog too?

@dentarg
Copy link
Contributor Author

dentarg commented Feb 18, 2024

What do you want it to say?

@st0012
Copy link
Collaborator

st0012 commented Feb 19, 2024

Something like:

- Fix undefined method `constantize' issue in sentry-resque ([#2248](https://github.com/getsentry/sentry-ruby/pull/2248))

@dentarg
Copy link
Contributor Author

dentarg commented Feb 19, 2024

Added to the changelog ✔️

Copy link
Collaborator

@st0012 st0012 left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@st0012 st0012 merged commit 7702905 into getsentry:master Feb 20, 2024
94 of 122 checks passed
@dentarg dentarg deleted the sentry-resque/fix-constantize-issue branch February 20, 2024 07:40
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.

None yet

2 participants