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
|
return 1
|
||||||
say(f"image {APP_IMAGE} built ({image[:19]}…), compose project {PROJECT}")
|
say(f"image {APP_IMAGE} built ({image[:19]}…), compose project {PROJECT}")
|
||||||
if args.resume:
|
if args.resume:
|
||||||
if meta.get("app_image", {}).get("id") != image:
|
# ID индекса образа в хранилище containerd меняется при каждой
|
||||||
warning = (
|
# сборке и на том же коде (аттестации); код один — проверено по
|
||||||
f"resume: app image {image[:19]} differs from the label's "
|
# commit и чистому дереву выше
|
||||||
f"{str(meta.get('app_image', {}).get('id'))[:19]}"
|
meta["resumes"][-1]["app_image_id"] = image
|
||||||
)
|
|
||||||
meta["host_warnings"].append(warning)
|
|
||||||
say(f"WARNING: {warning}")
|
|
||||||
else:
|
else:
|
||||||
meta.update(static_passport(profile))
|
meta.update(static_passport(profile))
|
||||||
results = Results(label_dir, meta)
|
results = Results(label_dir, meta)
|
||||||
|
|||||||
Reference in New Issue
Block a user