-
Notifications
You must be signed in to change notification settings - Fork 134
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
GitHub Action to Compare Dependencies #29728
base: master
Are you sure you want to change the base?
Conversation
Docker Image Ready - DevDocker automatic build at CircleCI has deployed your docker image: devdemisto/py3-native:8.6.0.103670
Docker Metadata
|
Docker Image Ready - DevDocker automatic build at CircleCI has deployed your docker image: devdemisto/py3-native:8.6.0.103685
Docker Metadata
|
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.
Good job!
Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
Docker Image Ready - DevDocker automatic build at CircleCI has deployed your docker image: devdemisto/py3-native:8.6.0.103850
Docker Metadata
|
Docker Image Ready - DevDocker automatic build at CircleCI has deployed your docker image: devdemisto/py3-native:8.6.0.103856
Docker Metadata
|
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.
looks good, we should add a similiar check that python3-tools and python3-tools-ubi support each other
Docker Image Ready - DevDocker automatic build at CircleCI has deployed your docker image: devdemisto/py3-native:8.7.0.108164
Docker Metadata
|
Co-authored-by: dorschw <81086590+dorschw@users.noreply.github.com>
…ckerfiles into sk_github_sync_native
def __str__(self) -> str: | ||
return ( | ||
f"{self.dependency} is {self.in_image or 'missing'} in {self.image}, " | ||
f"but {self.in_reference or 'missing'} in the {self.reference_image} image. " |
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.
f"but {self.in_reference or 'missing'} in the {self.reference_image} image. " | |
f"but {self.in_reference or 'missing'} in {self.reference_image}. " |
if path.suffix == PIPFILE: | ||
return lower_dict_keys(_parse_pipfile(path)) | ||
|
||
return lower_dict_keys(_parse_pyproject(path)) |
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.
best to have an
elif : ...
else: raise RuntimeError
for safety
"""Compares the dependency constraints between different images and reports discrepancies. | ||
|
||
This function compares the dependencies of the following images: | ||
- `py3-tools` | ||
- `py3-tools-ubi` | ||
- `native` | ||
|
||
against the dependencies of the images listed in `images_contained_in_native`. | ||
|
||
Additionally, it compares the dependencies of `py3-tools` against `py3-tools-ubi`. |
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.
split the docs between the two methods, this one shouldn't document the others
for dependency in sorted( | ||
constraint_keys.difference(native_constraint_keys) | ||
) | ||
discrepancies.extend(compare_with_native(image, native_constraints)) |
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.
this should be in compare_with_native
return int(bool(discrepancies)) | ||
|
||
|
||
def compare_with_native(image: str, native_constraints: dict) -> list[Discrepancy]: |
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.
rename to find_native_discrepancies
return discrepancies | ||
|
||
|
||
def compare_py3_tools_with_ubi( |
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.
def compare_py3_tools_with_ubi( | |
def find_ubi_discrepancies( |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you'd like to keep it open, please leave a comment with the status of the PR. Thank you for your contribution! |
This pull request has been automatically closed because there has been no activity for 21 days. Please feel free to reopen it (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you'd like to keep it open, please leave a comment with the status of the PR. Thank you for your contribution! |
Related Issues
Related: link to the issue
Description
Added a GitHub action to check if there is a difference between dependencies of the native Docker image and all the other images that are supported by the native image.