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

Add JRuby 9.2 to CI #995

Merged
merged 3 commits into from
Apr 15, 2020
Merged

Add JRuby 9.2 to CI #995

merged 3 commits into from
Apr 15, 2020

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Apr 7, 2020

This PR adds basic support for running the tracer tests against JRuby.

Currently, we only run tracer core tests: integrations are not tested.

@marcotc marcotc added core Involves Datadog core libraries dev/testing Involves testing processes (e.g. RSpec) feature Involves a product feature labels Apr 7, 2020
@marcotc marcotc self-assigned this Apr 7, 2020
@marcotc marcotc marked this pull request as ready for review April 8, 2020 18:47
@marcotc marcotc requested a review from a team April 8, 2020 18:47
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

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

Looks good, one small consideration regarding dependencies but this is not a blocker.

Feel free to merge. Thanks @marcotc !

@@ -51,8 +51,11 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_development_dependency 'webmock', '~> 2.0'
spec.add_development_dependency 'builder'
spec.add_development_dependency 'ruby-prof'
spec.add_development_dependency 'sqlite3', '~> 1.3.6'
if RUBY_PLATFORM != 'java'
Copy link
Contributor

Choose a reason for hiding this comment

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

Not something we have to address here, but we should consider moving these "development dependencies" entirely out of the gemspec to the Gemfile, as they drive our test suite mostly. (A change that would be analogous to what we did for pry-nav.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds like a nice way to clean up the gemspec file 👍

@@ -55,6 +55,8 @@ def flush
def gc_metrics
Hash[
GC.stat.map do |k, v|
next if v.is_a?(Hash) # TODO: JRuby supports additional nested metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

Will be interesting to expand on this later.

@@ -0,0 +1,15 @@
module PlatformHelpers
Copy link
Contributor

Choose a reason for hiding this comment

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

I dig this.

@marcotc marcotc added this to the 0.35.0 milestone Apr 15, 2020
@marcotc marcotc merged commit 6147b52 into master Apr 15, 2020
@marcotc marcotc added this to Merged & awaiting release in Active work via automation Apr 15, 2020
@marcotc marcotc deleted the ci/jruby branch April 15, 2020 21:07
@marcotc marcotc moved this from Merged & awaiting release to Released in Active work May 4, 2020
@marcotc marcotc mentioned this pull request Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries dev/testing Involves testing processes (e.g. RSpec) feature Involves a product feature
Projects
Active work
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

2 participants