From df507a374f5a33b94677843694dee583612620fb Mon Sep 17 00:00:00 2001 From: nusantara-self <15647296+nusantara-self@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:23:55 +0800 Subject: [PATCH] logging changes --- build.py | 7 ++++--- dockerhub.py | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index bad1ef8..26b600e 100755 --- a/build.py +++ b/build.py @@ -79,9 +79,10 @@ def build_workers(args, list_summary): if '.' in tag: registry.push_image(args.namespace, flavor['repo'], tag.split('.', 1)[0]) if not registry.correctly_pushed(args.namespace, flavor['repo'], tag): - raise Exception( - "Neurons {}/{}:{} is not correctly pushed on {}" - .format(args.namespace, flavor['repo'], tag, registry.name())) + # raise Exception( + # "Neurons {}/{}:{} is not correctly pushed on {}" + # .format(args.namespace, flavor['repo'], tag, registry.name())) + print(f"WARN: Neurons {args.namespace}/{flavor['repo']}:{tag} digest check failed on {registry.name()}. This however, does not mean a push failed. Data returned by this function or call may not be up-to-date in some instances.") list_summary[1].append('{} ({})'.format(flavor['name'], registry.name())) except Exception as e: print("build workers failed: {}".format(e)) diff --git a/dockerhub.py b/dockerhub.py index c37ad0c..8ae8a85 100644 --- a/dockerhub.py +++ b/dockerhub.py @@ -84,9 +84,8 @@ def get_remote_image_id(self, namespace, image, tag): try: print(f"DEBUG: remote image last pushed: {metadata['images'][0]['last_pushed']}") print(f"DEBUG: remote image status: {metadata['images'][0]['status']}") - print(f"DEBUG: repository tag status: {metadata['status']}") - print(f"DEBUG: repository tag last updated: {metadata['last_updated']}") print(f"DEBUG: repository tag last pushed: {metadata['tag_last_pushed']}") + print(f"DEBUG: repository tag last updated: {metadata['last_updated']}") except KeyError as e: print(f"KeyError encountered while accessing metadata: {e}") except IndexError as e: