You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Packed workflow missing cwlVersion- Not runnable #482
After running cwltool --pack hello-params.cwl params.yaml, the resulting file should be executable.
Actual Behavior
It did not work and generated error below:
Resolved 'pack-version.cwl' to 'file:///Users/farahkhan/Desktop/provenance-cwl/cwltool/example-workflows/workflows/workflows/hello/pack-version.cwl'
No cwlVersion found, treating this file as draft-2.
If we add the object "cwlVersion": "v1.0", manually, the problem is solved.
Hi @FarahZKhan I can verify the behaviour you noticed.
This is Interesting, If I remember correctly usually when cwltool can't find a cwlversion mentioned it treat it as version 1. This looks like a recent change. Maybe a policy change to impose a explicit cwlversion mention. Your thoughts @mr-c
To say this another way: cwlVersion is required to be present in all CWL descriptions. The output of cwltool --pack needs to propagate that cwlVersion main description to the packed output description.
Activity
kapilkd13 commentedon Jul 20, 2017
Hi @FarahZKhan I can verify the behaviour you noticed.
This is Interesting, If I remember correctly usually when cwltool can't find a cwlversion mentioned it treat it as version 1. This looks like a recent change. Maybe a policy change to impose a explicit
cwlversionmention. Your thoughts @mr-cmr-c commentedon Jul 20, 2017
We should be explicitly adding
cwlVersion: v1.0if it is missing, yesmanu-chroma commentedon Jul 22, 2017
@FarahZKhan As mentioned in your traceback, we were falling to
draft-2when no version was found.#491 should fix it.
mr-c commentedon Jul 22, 2017
To say this another way:
cwlVersionis required to be present in all CWL descriptions. The output ofcwltool --packneeds to propagate thatcwlVersionmain description to the packed output description.FarahZKhan commentedon Jul 23, 2017
Thanks for working on this @manu-chroma I will test and let you know.
Cheers,
manu-chroma commentedon Jul 25, 2017
When creating
packdict why are we not putting"cwlVersion": metadata["cwlVersion"]inside"$graph": []Reference line: https://github.com/common-workflow-language/cwltool/blob/master/cwltool/pack.py#L129
mr-c commentedon Jul 25, 2017
@manu-chroma looks like that gets deleted at https://github.com/common-workflow-language/cwltool/blob/master/cwltool/pack.py#L148 -- so the L129 parts about
cwlVersionneed to happen after L148