From 3e6da220b8b2b670fdd7ec1dcdf07ee0d69b19fe Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Thu, 22 Oct 2026 08:06:29 +0200 Subject: [PATCH] chore: name the remedy for an unheld pin --- tests/test_shipped_content.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_shipped_content.py b/tests/test_shipped_content.py index 75597b30..f7beb370 100644 --- a/tests/test_shipped_content.py +++ b/tests/test_shipped_content.py @@ -133,10 +133,15 @@ class ShippedFilesSatisfyTheirDeclaration(unittest.TestCase): if not satisfied: first = candidates[0][1] algo = sorted(first)[0] + # A core's copy at the path means the builder found no + # file with the pinned bytes and filled the slot for the + # core (generate_pack's core phase): the pin is to acquire. + filled = (" (a core's copy: the pinned file is not held, acquire it)" + if shipped.get("cores") and not shipped.get("systems") else "") violations.append( f"{platform}: {shipped['dest']} ships {repo_path} " f"with {algo} {digests[algo][0]}, declared " - f"{sorted(first[algo])[0]}" + f"{sorted(first[algo])[0]}{filled}" ) self.assertEqual( violations, [],