Skip to content

Resolve tip from the builder image LATEST_VERSION - #13642

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
bbujon/ci-tip-latest-version
Nov 24, 2026
Merged

gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
masterfrom
bbujon/ci-tip-latest-version

Conversation

@PerfectSlayer

@PerfectSlayer PerfectSlayer commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

What Does This Do

Resolve the tip test JVM from the builder image's LATEST_VERSION environment variable, following @bric3's review of #13632:

  • TestJvmSpec.kt: tip resolves to LATEST_VERSION when it is set (and fails if it is not a Java major version), otherwise to the highest JDK found through toolchains or JAVA_X_HOME variables, as before. This replaces the hard-coded JDK 28 exclusion and its TODO(JDK-28-EA) entries.
  • .gitlab/upload_ciapp.sh: same resolution for the CI Visibility upload, with the highest JAVA_X_HOME as fallback.

Motivation

The ci-* builder images export LATEST_VERSION (currently 27, the latest GA) next to the JAVA_X_HOME of early-access JDKs (JAVA_28_HOME). Relying on it means a new EA JDK in the image, or its promotion to GA, needs no dd-trace-java change.

Additional Notes

Outside CI, a LATEST_VERSION variable set for another purpose would change what tip means.

🤖 Generated with Claude Code

@PerfectSlayer PerfectSlayer added tag: no release notes Changes to exclude from release notes type: refactoring comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM labels Nov 23, 2026
@PerfectSlayer
PerfectSlayer force-pushed the bbujon/ci-tip-latest-version branch from 3c973e4 to d850680 Compare November 23, 2026 13:00
@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 61.02% (-0.03%)

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

@PerfectSlayer
PerfectSlayer marked this pull request as ready for review November 23, 2026 13:04
@PerfectSlayer
PerfectSlayer requested review from a team as code owners November 23, 2026 13:04
@PerfectSlayer
PerfectSlayer requested review from ValentinZakharov, bric3 and erikayasuda and removed request for a team November 23, 2026 13:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T13:07:13.753078Z d850680 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T13:09:34.835310Z d850680 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-prod-us1-3 datadog-prod-us1-3 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

The static review identified no actionable defect in the LATEST_VERSION override or its discovery fallback. No human PR discussion provided additional constraints.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit d850680

@PerfectSlayer
PerfectSlayer force-pushed the bbujon/ci-tip-latest-version branch from d850680 to cf554c7 Compare November 23, 2026 13:12

@datadog-prod-us1-3 datadog-prod-us1-3 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

Both selection paths honor the builder-image override before discovering installed JDKs, so adding an early-access JDK no longer changes tip when LATEST_VERSION is set. No actionable defects were reported by the completed static reviewer.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit cf554c7

@dd-octo-sts

dd-octo-sts Bot commented Nov 23, 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.13 s 14.01 s [-0.3%; +1.9%] (no difference)
startup:insecure-bank:tracing:Agent 12.96 s 13.02 s [-1.2%; +0.2%] (no difference)
startup:petclinic:appsec:Agent 17.81 s 17.56 s [+0.4%; +2.4%] (maybe worse)
startup:petclinic:iast:Agent 17.46 s 17.02 s [-1.7%; +6.9%] (no difference)
startup:petclinic:profiling:Agent 17.48 s 17.23 s [+0.2%; +2.6%] (maybe worse)
startup:petclinic:sca:Agent 17.79 s 17.73 s [-0.5%; +1.2%] (no difference)
startup:petclinic:tracing:Agent 16.73 s 16.31 s [-1.7%; +6.9%] (no difference)

Commit: 0f052e34 · 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.

Base automatically changed from bbujon/ci-28ea-tip to master November 23, 2026 14:11

@datadog-prod-us1-3 datadog-prod-us1-3 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

No concrete failure was identified in the LATEST_VERSION override or fallback paths. Actual builder-image behavior remains unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit cf554c7

@PerfectSlayer
PerfectSlayer force-pushed the bbujon/ci-tip-latest-version branch from cf554c7 to 7adcbbd Compare November 23, 2026 16:10

@datadog-prod-us1-3 datadog-prod-us1-3 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

No reportable defect was identified in tip resolution or CI upload selection. Validation was limited to static analysis; builder-image execution remains unverified.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 7adcbbd

The CI builder images export LATEST_VERSION, the latest GA Java major
version, next to the JAVA_X_HOME of any early-access JDK. Resolve "tip"
from it in Gradle and in the CI Visibility upload script, falling back to
the highest installed JDK when it is absent, so a new EA JDK in the image
no longer needs a dd-trace-java change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PerfectSlayer
PerfectSlayer force-pushed the bbujon/ci-tip-latest-version branch from 7adcbbd to 0f052e3 Compare November 24, 2026 07:44

@datadog-prod-us1-3 datadog-prod-us1-3 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

No actionable defect emerged from source inspection of LATEST_VERSION handling and JDK-discovery fallbacks. Neither the Gradle path nor the CI upload script was executed.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 0f052e3

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 2248496 into master Nov 24, 2026
686 of 687 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the bbujon/ci-tip-latest-version branch November 24, 2026 09:17
@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 tag: no release notes Changes to exclude from release notes type: refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants