-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix for intermittent multi-platform build failures #87
Conversation
file (str): The path/name of the Dockerfile (ie. <path>/Dockerfile). | ||
tags (List[str]): The tags to apply to the image. | ||
docker_registry (str): The docker registry to push the image to. | ||
mp_image_name (str): A list of built images. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is a single string a list of images?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
self._intermediate_built_images[mp_image_name].append(ImageInfo(repo=name, | ||
tags=tags, | ||
platform=platform, | ||
digest=image_id,)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, I think reading heavily indented lines is difficult and makes it harder to improve change things later on (i.e. adding another parameter, etc). I usually prefer this style:
self._intermediate_built_images[mp_image_name].append(ImageInfo(
repo=name,
tags=tags,
platform=platform,
digest=image_id,
))
This is 100% my personal preference though, so I thought I'd bring it up as an alternative just in case you might like it better too? No worries on changing it if you prefer it this way though, seriously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do like it better this way. I updated this with a new commit.
Description
Bugfix for intermittent multi-platform build failures
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: