fix: drop the resume image warning, the containerd image id changes on every build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 03:44:41 +03:00
co-authored by Claude Opus 5.5
parent 02fd3d8a36
commit 5de4da997c
+4 -7
View File
@@ -5229,13 +5229,10 @@ def main(argv: list[str]) -> int:
return 1
say(f"image {APP_IMAGE} built ({image[:19]}…), compose project {PROJECT}")
if args.resume:
if meta.get("app_image", {}).get("id") != image:
warning = (
f"resume: app image {image[:19]} differs from the label's "
f"{str(meta.get('app_image', {}).get('id'))[:19]}"
)
meta["host_warnings"].append(warning)
say(f"WARNING: {warning}")
# ID индекса образа в хранилище containerd меняется при каждой
# сборке и на том же коде (аттестации); код один — проверено по
# commit и чистому дереву выше
meta["resumes"][-1]["app_image_id"] = image
else:
meta.update(static_passport(profile))
results = Results(label_dir, meta)