← Back to Pull requests

[Backport 7.86.x] [ABLD-582] Fetch the Windows container JRE with Bazel #61268

Closed
unknown closed this pull request without merging on Nov 25, 2026 10:48 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 16:27 UTC
Author

Backport 4e60c958f723d5b1084fd72836ceb61917b460de from #60184.

___

What does this PR do?


Fetch the Temurin JRE of the Windows JMX container images with Bazel in the container build jobs, instead of downloading it in install.ps1 from the S3 copy that the manual fetch_openjdk job uploads.

Drop fetch_openjdk, S3_DD_AGENT_OMNIBUS_JAVA_URI, and the GENERAL_ARTIFACTS_CACHE_BUCKET_URL build argument of the Windows image.

Let Renovate track the JRE through a custom datasource that reads each release's version and SHA-256 from Adoptium's API.

Motivation


The JMX variants of docker_build_agent7_windows kept breaking on main:
  • DNS failures inside Windows build containers hit their JRE download during #incident-56371, which #52407 answered with retries,

  • #incident-61750 then #incident-61982 broke them again at clone time.
  • Downloading the JRE from inside docker build, 6 times per pipeline and without cache, keeps them more exposed than other jobs.

    That download also relies on an alternate source kept in sync by hand.

    #11384 started caching the downloads of the Windows container build in S3, and #31222 added the manual fetch_openjdk job to upload each new JRE zip there, a step every bump must remember, as #57909 did for 11.0.32.1+1.

    => fetching Temurin with Bazel pins it once, mirrors it through ADMS like any other Bazel dependency, and caches it on the Windows runners, => let Renovate handle next upgrades.

    Describe how you validated your changes


    bazel run @temurin_jre_windows_x64//:install -- --destdir=Dockerfiles/agent/java lays out the JRE on Linux and on Windows, where java.exe -version reports Temurin-11.0.32.1+1.

    The custom manager's regex matches the version and SHA-256 in deps/repos.MODULE.bazel, and its JSONata transform turns Adoptium's API response into releases whose digests match the pinned ones.

    Additional Notes


    The Windows runners provide Bazel since ddoghq/ci-platform-machine-images#967.

    Dockerfiles/agent/java/.gitignore keeps that folder in git for the unconditional COPY of Windows' legacy Docker builder, and .dockerignore keeps the placeholder out of the images.

    [ABLD-582]: https://datadoghq.atlassian.net/browse/ABLD-582

    Diff: 278 lines (+208 / -70) across 3 files Reviewer: aiuto Review duration: 1101m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 278 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.337
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #61268"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%