Skip to content

Update jruby to 10.0.6.0#19264

Open
donoghuc wants to merge 2 commits into
elastic:mainfrom
donoghuc:jruby-10.0.6.0
Open

Update jruby to 10.0.6.0#19264
donoghuc wants to merge 2 commits into
elastic:mainfrom
donoghuc:jruby-10.0.6.0

Conversation

@donoghuc

@donoghuc donoghuc commented Jul 1, 2026

Copy link
Copy Markdown
Member

Release notes

Update jruby to 10.0.6.0

What does this PR do?

Take up the latest 10.0 jruby release. Reference: https://github.com/jruby/jruby/releases/tag/10.0.6.0

Closes https://github.com/elastic/ingest-dev/issues/8650

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • run exhaustive tests : Run the exhaustive tests Buildkite pipeline.

@donoghuc

donoghuc commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

run exhaustive tests

@mergify

mergify Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Java unit compilation is failing after the JRuby 10.0.6.0 bump because RubyBasicObjectSerializerTest now triggers a JRuby deprecation warning, and the Java test compile runs with -Werror.

Remediation

  • Replace new RubyArray<>(RUBY, 2) in logstash-core/src/test/java/org/logstash/log/RubyBasicObjectSerializerTest.java with the non-deprecated JRuby factory, for example RubyArray.newArray(context, 2) using the existing ThreadContext context.
  • Validate with ./gradlew :logstash-core:javaTests --tests org.logstash.log.RubyBasicObjectSerializerTest and the FIPS Java test target if available.
Investigation details

Root Cause

The PR only changes versions.yml to move JRuby from 10.0.5.0 to 10.0.6.0. In JRuby 10.0.6.0, RubyArray(Ruby,int) is deprecated, and Logstash's Java compile treats warnings as errors.

The failing source is:

// logstash-core/src/test/java/org/logstash/log/RubyBasicObjectSerializerTest.java:78-80
final ThreadContext context = RUBY.getCurrentContext();
final RubyArray<RubySymbol> rubyArray = new RubyArray<>(RUBY, 2);
rubyArray.push(context, RubySymbol.newSymbol(RUBY, "one"));

JRuby 10.0.6.0 provides RubyArray.newArray(ThreadContext, int) for this allocation path, and the existing test already has the needed ThreadContext.

Evidence

/logstash/logstash-core/src/test/java/org/logstash/log/RubyBasicObjectSerializerTest.java:79: warning: [deprecation] RubyArray(Ruby,int) in RubyArray has been deprecated
        final RubyArray rubyArray = new RubyArray<>(RUBY, 2);
                                                ^
error: warnings found and -Werror specified
> Task :logstash-core:compileTestJava FAILED

The FIPS Java unit job shows the same compiler failure at the same source line, so this is a deterministic compile break rather than a flaky test.

Verification

Not run locally; this is a read-only CI detective workflow. The diagnosis is based on the decoded Buildkite job logs and the PR diff.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • buildkitecloud.s3.amazonaws.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "buildkitecloud.s3.amazonaws.com"

See Network Configuration for more information.


What is this? | From workflow: PR Buildkite Detective

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@donoghuc

donoghuc commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

run exhaustive tests

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant