Push weblog base images directly to the CI mirror #8597
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 356 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8597"
general
weight: 0.35
pawelchcki
Motivation
Weblog base images (
datadog/system-tests:<name>.base-<hash>) are pushed to Docker Hub bybuild_base_images, then copied toregistry.ddbuild.io/system-tests/mirrorand signed bymirror_images, which has to wait forbuild_base_images. This removes that extra step: the base image build publishes to both registries directly, and the mirroring no longer knows about base images.Changes
build_base_images.py --mergepushes the multi-arch tag to Docker Hub and to the mirror, only where it is missing, at the path BuildKit's docker.io mirror already resolves (buildkitd.toml). When one registry already has it, that image is copied as is, so both serve the same digest. The per-arch jobs skip when either registry has the tag.--mergerun checks that the mirror copy is signed (ddsign resolve) and signs it with ddsign if not, also when both registries already have the tag. So a run that failed after pushing (ddsign failure, or a partial push) is fixed by the next one. The job gets theimage-integrityid_token for that.update_mirror_images.pyand_image_mirror.pyhave no base-image code.- Base images are no longer in the mirror list:
dockerfile_image_list()skips theFROM system_tests_base_aliases, whichbuild.shsupplies as named build contexts, instead of resolving them.get-image-list.pystill pre-pulls them when the build runs without the mirror (GitHub Actions).- The weblog list comes from
WeblogMetaData, instead of globbing every.Dockerfile, which also matched the 41.base.Dockerfilefiles. That drops the 22 images only base Dockerfiles use (maven,python:-slim,public.ecr.aws/lambda/, ...): 46 images remain inmirror_images.yaml/mirror_images.lock.yaml. No mirrored image comes frompublic.ecr.awsanymore, so the regeneratedbuildkitd.tomldrops that registry.mirror_imagesno longer needsbuild_base_images. Child pipelines already wait onbuild_base_images.base-images.lock.jsonneeds a commit: the mirror files are untouched. The "Update mirror images" step ofupdate-lambda-extension.ymlis removed. Docs updated.Verified on CI: the GitLab
build_base_imagesandmirror_imagesjobs passed on this PR. This PR touches the base image tooling, so the job processes every base image.Still to check on the next pipeline: main moved 28 php base images to new tags (#8575) without adding them to the mirror lock, so they are probably not in the mirror yet. The first pipeline after the merge of main should copy them from Docker Hub and sign them, which exercises the registry.ddbuild.io push from the docker-in-docker runners.
Known limitation: running
build_base_images.pyfrom a laptop to publish now needs access to the mirror and ddsign.