From d4d640da3aaa5c0232c5bff2107a3863cfdaf2ec Mon Sep 17 00:00:00 2001 From: Derek Date: Mon, 16 Nov 2026 14:36:52 +1100 Subject: [PATCH] fix(tests): pin the busybox probe image by tag and digest test_container_hygiene.py started busybox:stable without a digest. The probe image could change between runs. Renovate had nothing to track. Match the other test images in conftest.py with a renovate comment and separate tag and digest constants. Build the image reference from both constants. The digest is the multi-arch index that docker.io returned for library/busybox:stable on the anonymous registry API. The preset's regex matches the tag and digest pair. --- tests/integration/test_container_hygiene.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_container_hygiene.py b/tests/integration/test_container_hygiene.py index f9309bc3..039c60c7 100644 --- a/tests/integration/test_container_hygiene.py +++ b/tests/integration/test_container_hygiene.py @@ -32,6 +32,12 @@ ) from tests.support.dockerhub import dockerhub_image +# The probe image, tag and digest apart so one Renovate regex covers them. +# renovate: datasource=docker depName=busybox +_BUSYBOX_TAG = "stable" +_BUSYBOX_DIGEST = "sha256:73aaf090f3d85aa34ee199857f03fa3a95c8ede2ffd4cc2cdb5b94e566b11662" +_BUSYBOX_IMAGE = f"busybox:{_BUSYBOX_TAG}@{_BUSYBOX_DIGEST}" + def test_per_test_container_name_includes_the_test(): """A throwaway carries the owning test between the suite and the service.""" @@ -198,7 +204,7 @@ def running() -> bool: *_container_labels("busybox"), "--volume", "/probe", - dockerhub_image("busybox:stable"), + dockerhub_image(_BUSYBOX_IMAGE), "sleep", "120", ],