Skip to content

Commit

Permalink
logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nusantara-self committed Feb 7, 2024
1 parent 2eec9bb commit df507a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 1 addition & 2 deletions dockerhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df507a3

Please sign in to comment.