[Backport 7.86.x] [ABLD-582] Fetch the Windows container JRE with Bazel #61268
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
aiuto
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.ps1from the S3 copy that the manualfetch_openjdkjob uploads.Drop
fetch_openjdk,S3_DD_AGENT_OMNIBUS_JAVA_URI, and theGENERAL_ARTIFACTS_CACHE_BUCKET_URLbuild 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_windowskept breaking onmain: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_openjdkjob to upload each new JRE zip there, a step every bump must remember, as #57909 did for11.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/javalays out the JRE on Linux and on Windows, wherejava.exe -versionreportsTemurin-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/.gitignorekeeps that folder in git for the unconditionalCOPYof Windows' legacy Docker builder, and.dockerignorekeeps the placeholder out of the images.[ABLD-582]: https://datadoghq.atlassian.net/browse/ABLD-582