-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
parsing CWL v1.0 & v1.1 #103
Comments
The first workflow exception message and stack trace is >600 lines long, below is an abbreviated version:
|
The second workflow exception message and stack trace:
|
Hello @svonworl ; |
@mr-c, are you planning to add support for 1.1 and 1.0? How much work would it be if we wanted to contribute that support ourselves (I haven't really looked at the codebase)? |
@coverbeck I did a quick stab at CWL v1.1 in #105 (including a bit of documentation) Would you like to take over the branch and continue with adding CWL v1.0 as well? |
@mr-c , at this point we're still trying to figure out how/if we want to integrate cwljava with Dockstore. We couldn't commit to any work, at least not yet. 414 files in the PR! :) Presumably most of those are generated? Otherwise it seems like a massive undertaking. :) |
It is almost entirely automated, yes 😅 See https://github.com/common-workflow-language/cwljava/pull/105/files |
Support for CWL v1.1 was added in #105 ; I can do the same for CWL v1.0, if someone requests it |
Recently, we integrated cwljava v1.0 into Dockstore, and during testing, we found some workflows that cause the parser to throw. In our webservice, we use our own preprocessor to combine the various component CWL files into one big CWL represented by Maps/Lists, and parse it with cwljava here:
https://github.com/dockstore/dockstore/blob/67f4547e771864cafacdc1c92fa7bd47261e32da/dockstore-webservice/src/main/java/io/dockstore/webservice/languages/CWLHandler.java#L364
The following workflows cause
loadDocument
to throw aValidationException
:https://github.com/ICGC-TCGA-PanCancer/OxoG-Dockstore-Tools/tree/master
primary descriptor: /oxog_varbam_annotate_wf.cwl
https://github.com/h3abionet/h3agatk/tree/1.0.1
primary descriptor: /workflows/GATK/GATK-complete-WES-Workflow-h3abionet.cwl
The first workflow contains a
SchemaDefRequirement
and the parser appears to have trouble parsing the type references (TumourType.yaml#TumourType
etc). When I change the type references toint
, the workflow successfully parses.Judging from exception message, the second workflow seems to be failing for a different reason, but I haven't pinpointed what, exactly. It is possible that it's not valid, but a cursory inspection didn't turn up any problems.
The exception messages are pretty big, so I put them and some stack trace info in the comments.
Please let me know if you need any more info. Thanks!
The text was updated successfully, but these errors were encountered: