test: narrow pinned base match for type checking
prd-number-check / require-numbered-prds (pull_request) Successful in 13s
tracker-policy-pr / check-pr (pull_request) Successful in 11s
lint / lint (push) Successful in 1m4s
test / unit (pull_request) Has started running
test / integration-docker (pull_request) Waiting to run
test / coverage (pull_request) Blocked by required conditions
test / image-input-builds (pull_request) Has started running

This commit is contained in:
2026-07-26 09:39:58 +00:00
parent 432a2573eb
commit 4597548f07
+2 -1
View File
@@ -22,7 +22,8 @@ class TestBuiltinAgentImages(unittest.TestCase):
r"(node:22\.\d+\.\d+-trixie-slim@sha256:[0-9a-f]{64})\s*$",
dockerfile.read_text(),
)
self.assertIsNotNone(match)
if match is None:
self.fail(f"{dockerfile} does not use a digest-pinned Node base")
bases.append(match.group(1))
self.assertEqual(1, len(set(bases)))