Skip to content

Test JDK 28 EA as a non-default JVM - #13557

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
bbujon/ci-28ea
Nov 24, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 3 commits into
masterfrom
bbujon/ci-28ea

Conversation

@PerfectSlayer

@PerfectSlayer PerfectSlayer commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What Does This Do

Run EA JDK 28 as a non-default JVM, following what #11841 did for JDK 27, and work around the test failures it surfaces:

  • .gitlab-ci.yml: add 28 to the shared test JVM matrix and to the test_inst_latest(_arm64) matrices.
  • TestJvmConstraintsPlugin.kt: pass -Djdk.reflect.allowNonSerializableConstruction=true to test JVMs 28+. JDK 28 rejects ReflectionFactory.newConstructorForSerialization for non-serializable classes, which Objenesis relies on, so every Mockito or Spock mock failed (~99% of the JDK 28 failures, including the context propagation tests that use mocks).
  • MavenSmokeTest.java: skip on JDK 28, as done for previous EA JDKs (the Maven build fails).
  • jsp-2.3/build.gradle: cap the test suite at JDK 27. The JDT compiler bundled with Tomcat 7.0.37 Jasper cannot read Java 28 class files, so generated JSP sources fail to compile (java.lang.Long cannot be resolved). latestDepTest (Tomcat 9) keeps covering JDK 28.

Every temporary change carries a TODO(JDK-28-EA) comment: git grep JDK-28-EA lists every entry to clean up when tip moves to 28. The Objenesis flag may outlive the GA: the JDK only re-enables the method temporarily, so it goes away with an Objenesis release that no longer needs it.

Motivation

Prepare JDK 28 support ahead of its GA (2027-03-09). JDK 28 EA already contains the final Structured Concurrency API (JEP 543 - no longer preview)

Additional Notes

As with JDK 27 EA, protected-branch pipelines (master, merge queue) run every JVM of the matrix, so JDK 28 jobs block the merge queue.

🤖 Generated with Claude Code

@PerfectSlayer PerfectSlayer added type: feature Enhancements and improvements comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels Nov 19, 2026
@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 61.03% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e933da5 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.93 s 14.80 s [-0.1%; +1.9%] (no difference)
startup:insecure-bank:tracing:Agent 13.86 s 13.75 s [+0.1%; +1.5%] (maybe worse)
startup:petclinic:appsec:Agent 16.64 s 17.05 s [-6.7%; +1.9%] (no difference)
startup:petclinic:iast:Agent 16.95 s 17.14 s [-2.1%; -0.2%] (maybe better)
startup:petclinic:profiling:Agent 16.09 s 16.86 s [-9.9%; +0.8%] (unstable)
startup:petclinic:sca:Agent 17.17 s 17.09 s [-0.3%; +1.3%] (no difference)
startup:petclinic:tracing:Agent 16.18 s 16.35 s [-1.9%; -0.2%] (maybe better)

Commit: e933da58 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@PerfectSlayer
PerfectSlayer marked this pull request as ready for review November 20, 2026 11:16
@PerfectSlayer
PerfectSlayer requested review from a team as code owners November 20, 2026 11:16
@PerfectSlayer
PerfectSlayer requested review from dougqh, mhlidd and randomanderson and removed request for a team November 20, 2026 11:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T08:39:04.392116Z ce09a4d Draft marked ready
🔒 Security Review ✅ Completed 2026-11-24T08:39:43.644082Z ce09a4d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 05139f7940

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitlab-ci.yml Resolved

@datadog-datadog-us1-prod datadog-datadog-us1-prod Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: FAIL

JDK 28 becomes a blocking merge-queue test target even without NON_DEFAULT_JVMS opt-in. The protected-branch rules bypass the default JVM lists, so excluding 28 from those lists does not isolate EA failures.

Open Bits AI session

🤖 Bits Code Review · Commit 05139f7

Comment thread .gitlab-ci.yml Resolved
Comment thread .gitlab/upload_ciapp.sh Resolved

@dougqh dougqh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good overall, and the TODO(JDK-28-EA) tags make cleanup easy. One concern before this goes into the merge queue (inline). It's the same point the two bots raised.

Comment thread .gitlab-ci.yml Resolved
@PerfectSlayer
PerfectSlayer changed the base branch from master to bbujon/ci-28ea-tip November 23, 2026 08:28
@PerfectSlayer
PerfectSlayer marked this pull request as draft November 23, 2026 08:29
Base automatically changed from bbujon/ci-28ea-tip to master November 23, 2026 14:11
@PerfectSlayer
PerfectSlayer force-pushed the bbujon/ci-28ea branch 2 times, most recently from c28d71c to ce09a4d Compare November 24, 2026 07:46
@PerfectSlayer
PerfectSlayer removed this pull request from stack #13637 November 24, 2026 08:28
@PerfectSlayer
PerfectSlayer changed the base branch from master to bbujon/ci-tip-latest-version November 24, 2026 08:31
@PerfectSlayer
PerfectSlayer marked this pull request as ready for review November 24, 2026 08:36
@PerfectSlayer
PerfectSlayer requested a review from a team as a code owner November 24, 2026 08:36
Base automatically changed from bbujon/ci-tip-latest-version to master November 24, 2026 09:17
PerfectSlayer and others added 3 commits November 24, 2026 09:17
Add EA JDK 28 to the main, arm64 and latest-dep test matrices as a
non-default JVM. Temporary changes are tagged with JDK-28-EA TODOs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DEFAULT_JVMS]

JDK 28 rejects ReflectionFactory.newConstructorForSerialization for
non-serializable classes, which Objenesis (Mockito, Spock mocks) relies
on. Re-enable it for test JVMs 28+ with
-Djdk.reflect.allowNonSerializableConstruction=true, and skip the Maven
smoke tests on JDK 28 as was done for previous EA JDKs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The JDT compiler bundled with Tomcat 7.0.37 Jasper cannot read Java 28
class files, so the generated JSP sources fail to compile. latestDepTest
(Tomcat 9) keeps covering JDK 28.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@datadog-datadog-us1-prod datadog-datadog-us1-prod Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

JDK 28 jobs intentionally block protected-branch pipelines; the author confirms the CI image is mirrored and the compatibility fixes followed non-default JVM runs. The completed static review found no reportable defects.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit e933da5

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit b08216d into master Nov 24, 2026
868 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the bbujon/ci-28ea branch November 24, 2026 13:54
@github-actions github-actions Bot added this to the 1.70.0 milestone Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants