Skip to content
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

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

shanejbrown
Copy link
Contributor

@shanejbrown shanejbrown commented Oct 27, 2023

Description

Bugfix for intermittent multi-platform build failures

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@shanejbrown shanejbrown marked this pull request as ready for review October 27, 2023 17:13
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.
Copy link
Contributor

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?

Copy link
Contributor Author

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,))
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@shanejbrown shanejbrown merged commit 7a71f3d into adobe:main Oct 27, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants