Skip to content

Run fixed-launcher test suites on the CI job JVM - #13442

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
bbujon/test-jvm-constraints-launchers
Nov 24, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
bbujon/test-jvm-constraints-launchers

Conversation

@PerfectSlayer

@PerfectSlayer PerfectSlayer commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Does This Do

The test suites of 10 instrumentation modules now run on the JVM of each CI job they are eligible for, instead of a fixed Java 11, 17 or 21. Where a suite had no minimum Java version, it gets one.

Motivation

A fixed javaLauncher ignores -PtestJvm. For example, the armeria Jetty 11 suites ran on Java 11 in the 8, 11, 17, 21, 25 and tip jobs: tested six times on Java 11, never on a newer JVM. With -PtestJvm=21, 26 test tasks of these modules still ran on Java 11 or 17. The suites in test_inst also never ran on the vendor JVMs (Semeru, Zulu).

Test JVM constraints give the same guarantee: the suite is skipped on JVMs that are too old and runs on the job's JVM otherwise. Forked companion tasks inherit the constraints since #13218.

Additional Notes

  • 4 suites had a fixed launcher but no minimum Java version, so they ran inside the Java 8 jobs too. They now get one: armeria jetty11LatestDepTest (11), kafka iastLatestDepTest3 (17), jakarta-rs latestDepJava11Test (11) and the 22 MultipartHelperTest cases of jetty-appsec-11.0 (11).
    • This removes about 240 duplicate executions per master pipeline. Every other suite runs as many times as before.
  • The latest-dep suites that ran on a fixed Java 11 now run on 17, 21, 25 and tip, like every other latest-dep suite: test_inst_latest skips Java 11 to save CI time.
  • jdbc forced Java 11 only without -PtestJvm, so this only changes local runs.
  • Two getJavaLauncherFor calls remain: the Play routes generator and rmic. Neither is a test task.
  • Local runs of the 25 affected test tasks on JVM 17, 25 and tip (27): 1,127 tests each, no failures.
  • The first commit carries [ci: NON_DEFAULT_JVMS]: in pipeline 152930264, the suites in test_inst passed on ibm8, oracle8, semeru8, semeru11, semeru17, zulu8 and zulu11. test_inst_latest has no vendor JVMs, so the latest-dep suites got no vendor coverage.

Contributor Checklist

Jira ticket: APMLP-2203

🤖 Generated with Claude Code

@PerfectSlayer PerfectSlayer added type: bug fix Bug fix comp: testing Testing tag: no release notes Changes to exclude from release notes tag: ai generated Largely based on code generated by an AI or LLM labels Nov 13, 2026
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 68.82% (+7.87%)

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

@dd-octo-sts

dd-octo-sts Bot commented Nov 13, 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.01 s 14.01 s [-0.7%; +0.6%] (no difference)
startup:insecure-bank:tracing:Agent 12.95 s 13.03 s [-1.4%; +0.3%] (no difference)
startup:petclinic:appsec:Agent 17.77 s 17.50 s [+0.6%; +2.5%] (maybe worse)
startup:petclinic:iast:Agent 17.50 s 16.85 s [-0.5%; +8.3%] (no difference)
startup:petclinic:profiling:Agent 17.49 s 17.33 s [-0.2%; +2.1%] (no difference)
startup:petclinic:sca:Agent 17.78 s 17.67 s [-0.3%; +1.5%] (no difference)
startup:petclinic:tracing:Agent 16.79 s 16.89 s [-1.6%; +0.5%] (no difference)

Commit: 92d13b8e · 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 13, 2026 11:07
@PerfectSlayer
PerfectSlayer requested review from a team as code owners November 13, 2026 11:07
@PerfectSlayer
PerfectSlayer requested review from AlexeyKuznetsov-DD and removed request for a team November 13, 2026 11:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T11:09:51.574223Z a3916ae Draft marked ready
🔒 Security Review ✅ Completed 2026-11-13T11:11:08.281213Z a3916ae 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.

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot 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.

Bits Code Review: PASS

More details

Minimum-Java constraints preserve suite eligibility, including forked companions, while allowing eligible CI jobs to use their selected JVM. Execution across the JVM matrix was not validated.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit a3916ae

@pr-commenter

pr-commenter Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Kafka / consumer-benchmark

Parameters

Baseline Candidate
baseline_or_candidate baseline candidate
git_branch master bbujon/test-jvm-constraints-launchers
git_commit_date 1795443074 1795449017
git_commit_sha 7ffa9ae 92d13b8
See matching parameters
Baseline Candidate
ci_job_date 1795450120 1795450120
ci_job_id 2290120729 2290120729
ci_pipeline_id 155773899 155773899
cpu_model Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
jdkVersion 11.0.31 11.0.31
jmhVersion 1.36 1.36
jvm /usr/lib/jvm/java-11-openjdk-amd64/bin/java /usr/lib/jvm/java-11-openjdk-amd64/bin/java
jvmArgs -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=15002 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=15002 -Dhttp.nonProxyHosts=localhost *.localhost
kernel_version Linux runner-zfyrx7zua-project-304-concurrent-0-cetjp13w 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Linux runner-zfyrx7zua-project-304-concurrent-0-cetjp13w 6.8.0-1031-aws #33~22.04.1-Ubuntu SMP Thu Jun 26 14:22:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
vmName OpenJDK 64-Bit Server VM OpenJDK 64-Bit Server VM
vmVersion 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu 11.0.31+11-post-1ubuntu1-22.04.2-Ubuntu

Summary

Found 1 performance improvements and 0 performance regressions! Performance is the same for 2 metrics, 0 unstable metrics.

scenario Δ mean throughput
scenario:only-tracing-dsm-enabled-benchmarks/KafkaConsumerBenchmark.benchConsume better
[+1952.736op/s; +10133.731op/s] or [+1.063%; +5.519%]
See unchanged results
scenario Δ mean throughput
scenario:not-instrumented/KafkaConsumerBenchmark.benchConsume same
scenario:only-tracing-dsm-disabled-benchmarks/KafkaConsumerBenchmark.benchConsume same

@AlexeyKuznetsov-DD AlexeyKuznetsov-DD 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.

LGTM, Codex found couple non-blocking issues, please take a look

Some instrumentation suites forced their test launcher to Java 11, 17 or
21. A fixed launcher ignores -PtestJvm, so each CI job ran these suites on
the same JDK and they never ran on newer or vendor JVMs.

Replace the fixed launchers with minimum Java version constraints, adding
one where a suite had none, so the suites run on the JVM of every job
they are eligible for.

[ci: NON_DEFAULT_JVMS]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerfectSlayer
PerfectSlayer force-pushed the bbujon/test-jvm-constraints-launchers branch from f4f38d7 to 92d13b8 Compare November 23, 2026 15:52

@datadog-datadog-prod-us1-2 datadog-datadog-prod-us1-2 Bot 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.

Bits Code Review: PASS

More details

The affected suites retain minimum-JVM guards and forked-task constraints while selecting the CI job’s JVM. Removing Java 11 coverage from latest-dependency suites is intentional, as confirmed in the PR discussion.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 92d13b8

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 3675477 into master Nov 24, 2026
840 of 841 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the bbujon/test-jvm-constraints-launchers branch November 24, 2026 08:16
@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: testing Testing tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants