Skip to content

Packed workflow missing cwlVersion- Not runnable #482

Closed

Description

@FarahZKhan

Expected Behavior

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.

Workflow Code

https://github.com/common-workflow-language/workflows/tree/master/workflows/hello

Your Environment

  • cwltool version: 1.0.20170719004811

Activity

  1. kapilkd13 commented on Jul 20, 2017

    @kapilkd13
    Contributor

    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

  2. mr-c commented on Jul 20, 2017

    @mr-c
    Member

    We should be explicitly adding cwlVersion: v1.0 if it is missing, yes

  3. manu-chroma commented on Jul 22, 2017

    @manu-chroma
    Member

    @FarahZKhan As mentioned in your traceback, we were falling to draft-2 when no version was found.
    #491 should fix it.

  4. mr-c commented on Jul 22, 2017

    @mr-c
    Member

    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.

  5. self-assigned this
    on Jul 22, 2017
  6. FarahZKhan commented on Jul 23, 2017

    @FarahZKhan
    MemberAuthor

    Thanks for working on this @manu-chroma I will test and let you know.
    Cheers,

  7. manu-chroma commented on Jul 25, 2017

    @manu-chroma
    Member

    When creating pack dict 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

  8. mr-c commented on Jul 25, 2017

    @mr-c
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions