-
Notifications
You must be signed in to change notification settings - Fork 375
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
Use updated JRubies in CircleCI #2418
Conversation
Bah, a commit went missing during rebase, |
@marcotc looks like we might have legit failures on JRuby 9.3.9.0, I threw a retry at it and the same expectations failed. |
The spec that failed is a weird one because different Rubies have different behaviors: dd-trace-rb/spec/datadog/core/error_spec.rb Lines 133 to 164 in 29c245e
I guess JRuby has now adopted pre 2.6/TruffleRuby behavior? |
2ce9cde
to
0eca071
Compare
Changed base to depend on #2422 |
In the JRuby 9.3.7.0 release notes there's a reference to jruby/jruby#7267.
Other releases (9.3.6.0, 9.3.9.0) don't seem to have reference to anything possibly related. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM. Rubocop has a line-too-long complaint. Sigh, I hate this Rubocop rule -- you add one more character to a PR that worked and Rubocop breaks everything :(
spec/datadog/core/error_spec.rb
Outdated
@@ -130,7 +130,7 @@ def call | |||
end | |||
end | |||
|
|||
it 'reports errors only once', if: (RUBY_VERSION < '2.6.0' || PlatformHelpers.truffleruby?) do | |||
it 'reports errors only once', if: (RUBY_VERSION < '2.6.0' || PlatformHelpers.truffleruby? || PlatformHelpers.jruby? && RUBY_ENGINE_VERSION >= '9.3.7.0') do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding some parenthesis so people don't have to wonder about precedence ;)
it 'reports errors only once', if: (RUBY_VERSION < '2.6.0' || PlatformHelpers.truffleruby? || PlatformHelpers.jruby? && RUBY_ENGINE_VERSION >= '9.3.7.0') do | |
it 'reports errors only once', if: (RUBY_VERSION < '2.6.0' || PlatformHelpers.truffleruby? || (PlatformHelpers.jruby? && RUBY_ENGINE_VERSION >= '9.3.7.0')) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add too much parentheses and Rubocop will complain :D
I would otherwise agree in general but I'm pretty sure most everyone knows the precedence between ||
and &&
so it's quire readable.
ce45b43
to
32594dd
Compare
It seems like behaviour changed starting with JRuby 9.3.7.0.
32594dd
to
978fee2
Compare
What does this PR do?
Use JRubies built from #2412
How to test the change?
CI shoudl be green