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:
+4
-7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user