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

Simplify and test container image names #668

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

PGijsbers
Copy link
Collaborator

Originally there was a lot of duplication between the general image name generation and the one that was "re-implemented" in the singularity runner. This refactoring simplifies that and re-uses the common implementation of container in the singularity class. Moreover, this simplification does away with the ugly kwargs that were added just to support custom implementations in the inheriting classes (as_docker was only ever used in calls to _container_image_name as opposed to image_name).

@codecov-commenter
Copy link

codecov-commenter commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 98.33333% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (master@a730f6f). Learn more about missing BASE report.

Files with missing lines Patch % Lines
amlb/runners/container.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master     #668   +/-   ##
=========================================
  Coverage          ?   70.85%           
=========================================
  Files             ?       55           
  Lines             ?     6855           
  Branches          ?        0           
=========================================
  Hits              ?     4857           
  Misses            ?     1998           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@eddiebergman eddiebergman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PGijsbers PGijsbers merged commit 98bf554 into master Dec 12, 2024
9 of 38 checks passed
@PGijsbers PGijsbers deleted the enh/container-image branch December 12, 2024 13:53
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.

3 participants