-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Replace ":" in singularity image name with "_" #342
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #342 +/- ##
=======================================
Coverage 33.30% 33.30%
=======================================
Files 29 29
Lines 34864 34864
Branches 9396 9396
=======================================
Hits 11613 11613
Misses 20615 20615
Partials 2636 2636 ☔ View full report in Codecov by Sentry. |
Hello @sameeul and thanks for this PR. I checked
Wouldn't it be better if we taught Likewise, modify That way both tools would work with each other, and better match how |
@mr-c :
Yes, that should also work. I was not sure which fix was better but now that you pointed out
So, negate this current commit and change |
👍🏻
Yes, exactly! |
4a131d3
to
1d2103b
Compare
Related PR: common-workflow-language/cwltool#2085 |
Currently if a
CommandLineTool
'sDockerRequirement
lacks a tag and we useSingularity
as the container engine, there is a mismatch between the name of the saved singularity container and the normalized namecwltool
looks for. Here is an example. Assume the following section in aCommandLineTool
:Now
extract_docker_requirements
modifies thedockerPull
value tosomeuser/somecontainer:latest
.Then if Singularity is used as the container engine,
SingularityImagePuller
saves the image assomeuser_somecontainer_latest.sif
. This is due to the code hereHowever, in
cwltool
, whenSingularity
looks for the image, it looks forsomeuser_somecontainer.sif
. This is due to the_normalize_sif_id
function hereDue to this naming mismatch,
cwltool
fails to find the image and errors out.Since the
docker pull
documentation says that if no tag is specified it always pulls thelatest
andsingularity pull
also behaves the same way (I could not find any explicit documentation though), I propose to remove this on the fly modification.I am also open to other suggestions.