Skip to content

Commit 041bc49

Browse files
author
Peter Amstutz
committed
Squashed 'cwltool/schemas/' changes from 40086a12..f96bca69
f96bca69 Merge pull request #633 from wtsi-hgi/parameter-like-reference-parsing e1308521 Merge pull request #624 from common-workflow-language/new-test/trailing-newline 46b40226 Merge pull request #660 from common-workflow-language/v1.1.0-fix-wf-bindings 9f979e91 break out Changlogs into seperate sections and cross-link them. e7b87b5e descriptions for {in,out}putBinding c30b27a1 diverse CLT changelog updates 566a735c Changelog: the `doc` field may be an array of strings. ea9faa89 Fix userguide. Fix schema table of contents ordering (a bit). 0bc210a9 sync some fixes 28218d9f Fix doc for CommandInputParameter.inputBinding c373b9fc Be more specific that loadContents in inputBinding (and inputBinding on WorkflowInputParameter) will go away in v2.0 1646a398 Merge pull request #659 from common-workflow-language/cern e1e3cc1a Add Tibor Simko; CERN dfdb1467 Merge pull request #656 from common-workflow-language/mr-c-patch-1 9cb8f9c8 Revert accidental change 57e2a0ec Remove reference to parameter-reference.cwl 3128b673 Move parameter-reference test to inline-js 602e077f Add prefix to parameter-reference 36644bc7 Add output to parameter-reference.cwl conformance test 98f62660 change parameter-reference type from string to boolean ad3c1640 Conformance test for parameter-reference-like javascript 4e2a75fb Add test for trailing whitespace in file entries of InitialWorkDir git-subtree-dir: cwltool/schemas git-subtree-split: f96bca6911b6688ff614c02dbefe819bed260a13
1 parent acb4309 commit 041bc49

13 files changed

+101
-19
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ Conduct](https://github.com/common-workflow-language/common-workflow-language/bl
191191
* [EMBL Australia Bioinformatics Resource](https://www.embl-abr.org.au/)
192192
* [IBM Spectrum Computing](https://www.ibm.com/spectrum-computing)
193193
* [DNAnexus](https://www.dnanexus.com/)
194+
* [CERN](https://home.cern/)
194195

195196
## Individual Contributors
196197

@@ -244,6 +245,7 @@ Conduct](https://github.com/common-workflow-language/common-workflow-language/bl
244245
* Tom Morris, Curoverse; https://orcid.org/0000-0003-0435-7851
245246
* Anton Nekrutenko, The Pennsylvania State University / Galaxy Project; https://orcid.org/0000-0002-5987-8032
246247
* Brian O'Connor, University of California Santa Cruz; https://orcid.org/0000-0002-7681-6415
248+
* Tibor Simko, CERN, https://orcid.org/0000-0001-7202-5803
247249
* Nihar Sheth, DNAnexus; https://orcid.org/0000-0003-4128-4364
248250
* Stian Soiland-Reyes, University of Manchester; https://orcid.org/0000-0001-9842-9718
249251
* James Taylor, Johns Hopkins University / Galaxy Project; https://orcid.org/0000-0001-5079-840X

v1.0/conformance_test_v1.0.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,17 @@
533533
Test InitialWorkDirRequirement with expression in filename.
534534
tags: [ initial_work_dir ]
535535

536+
- job: v1.0/string-job.json
537+
output:
538+
out:
539+
class: File
540+
checksum: sha1$6a47aa22b2a9d13a66a24b3ee5eaed95ce4753cf
541+
location: example.conf
542+
size: 16
543+
544+
tool: v1.0/iwdr-entry.cwl
545+
doc: Test if trailing newline is present in file entry in InitialWorkDir
546+
536547
- job: v1.0/wc-job.json
537548
output:
538549
output: 16
@@ -1216,7 +1227,7 @@
12161227
tags: [ required ]
12171228

12181229
- output:
1219-
args: [-A,'2',-B,baz,-C,'10','9','8','7','6','5','4','3','2','1']
1230+
args: [-A,'2',-B,baz,-C,'10','9','8','7','6','5','4','3','2','1',-D]
12201231
job: v1.0/empty.json
12211232
tool: v1.0/inline-js.cwl
12221233
doc: Test InlineJavascriptRequirement with multiple expressions in the same tool

v1.0/contrib.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
Authors:
22

3-
* Peter Amstutz <peter.amstutz@curoverse.com>, Arvados Project, Curoverse
4-
* Michael R. Crusoe <[email protected]>, Common Workflow Language
3+
* Peter Amstutz <pamstutz@veritasgenetics.com>, Arvados Project, Veritas Genetics
4+
* Michael R. Crusoe <[email protected]>, Common Workflow Language
55
project
66
* Nebojša Tijanić <[email protected]>, Seven Bridges Genomics
77

88
Contributors:
99

1010
* Brad Chapman <[email protected]>, Harvard Chan School of Public Health
1111
* John Chilton <[email protected]>, Galaxy Project, Pennsylvania State University
12-
* Michael Heuer <[email protected],>,UC Berkeley AMPLab
12+
* Michael Heuer <[email protected]>, UC Berkeley AMPLab
1313
* Andrey Kartashov <[email protected]>, Cincinnati Children's Hospital
1414
* Dan Leehr <[email protected]>, Duke University
1515
* Hervé Ménager <[email protected]>, Institut Pasteur
1616
* Maya Nedeljkovich <[email protected]>, Seven Bridges Genomics
1717
* Matt Scales <[email protected]>, Institute of Cancer Research, London
18-
* Stian Soiland-Reyes [[email protected]](mailto:[email protected]), University of Manchester
18+
* Stian Soiland-Reyes <[email protected]>, University of Manchester
1919
* Luka Stojanovic <[email protected]>, Seven Bridges Genomics

v1.0/v1.0/echo-tool.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class: CommandLineTool
44
cwlVersion: v1.0
55
inputs:
6-
text:
6+
in:
77
type: Any
88
inputBinding: {}
99
outputs:

v1.0/v1.0/inline-js.cwl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ arguments:
3838
}
3939
return r;
4040
}
41+
# Test errors similar to https://github.com/common-workflow-language/cwltool/issues/648 are fixed
42+
- prefix: -D
43+
valueFrom: $(true)
44+
- prefix: -E
45+
valueFrom: $(false)

v1.0/v1.0/iwdr-entry.cwl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env cwl-runner
2+
3+
class: CommandLineTool
4+
cwlVersion: v1.0
5+
baseCommand: ["cat", "example.conf"]
6+
7+
requirements:
8+
InitialWorkDirRequirement:
9+
listing:
10+
- entryname: example.conf
11+
entry: |
12+
CONFIGVAR=$(inputs.message)
13+
14+
inputs:
15+
message: string
16+
outputs:
17+
out:
18+
type: File
19+
outputBinding:
20+
glob: example.conf

v1.0/v1.0/string-job.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"message": "hello"
3+
}

v1.1.0-dev1/CommandLineTool.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,19 @@ $graph:
4848
underspecified behavior may have slightly different behavior in
4949
v1.1.0-dev1.
5050
51+
## Changelog
52+
5153
* Default values for some fields are now expressed in the schema.
52-
* When defining record types, fields of type `File` may now include `secondaryFiles` and `format`.
53-
* InputSchema now permits a `doc` field
54+
* When defining record types with `CommandInputRecordSchema`, fields of
55+
type `File` may now include `format`, `loadContents`,
56+
`secondaryFiles` and `streamable`.
57+
* `CommandInputRecordSchema`, `CommandInputEnumSchema`, and
58+
`CommandInputArraySchema` now have an optional `doc` field.
59+
* `inputBinding` has been added as an optional field for
60+
`CommandInputRecordSchema` (was previously in CWL `draft-3` but
61+
disappeared in `v1.0`)
62+
* Any `doc` field may be an array of strings in addition to the
63+
previously allowed single string.
5464
* Addition of `stdin` type shortcut for `CommandInputParameter`.
5565
* Clarify that the designated output directory should be empty
5666
except for files or directories specified using
@@ -59,6 +69,8 @@ $graph:
5969
* Expressions are now allowed to evaluate to `null` or `Dirent` in
6070
[InitialWorkDirRequirement.listing](#InitialWorkDirRequirement).
6171
72+
See also the [CWL Workflow Description, v1.1.0-dev1 changelog](Workflow.html#Changelog).
73+
6274
## Purpose
6375
6476
Standalone programs are a flexible and interoperable form of code reuse.
@@ -111,6 +123,7 @@ $graph:
111123
- type: record
112124
name: CommandLineBinding
113125
extends: InputBinding
126+
docParent: "#CommandInputParameter"
114127
doc: |
115128
116129
When listed under `inputBinding` in the input schema, the term
@@ -245,6 +258,7 @@ $graph:
245258
inputBinding:
246259
type: CommandLineBinding?
247260
jsonldPredicate: "cwl:inputBinding"
261+
doc: Describes how to turn this object into command line arguments.
248262

249263
- name: CommandInputRecordField
250264
type: record
@@ -306,6 +320,9 @@ $graph:
306320
- name: outputBinding
307321
type: CommandOutputBinding?
308322
jsonldPredicate: "cwl:outputBinding"
323+
doc: |
324+
Describes how to generate this output object based on the files
325+
produced by a CommandLineTool
309326
310327
311328
- name: CommandOutputRecordSchema
@@ -370,6 +387,9 @@ $graph:
370387
Specify valid types of data that may be assigned to this parameter.
371388
- name: inputBinding
372389
type: CommandLineBinding?
390+
doc: |
391+
Describes how to turns the input parameters of a process into
392+
command line arguments.
373393
jsonldPredicate: "cwl:inputBinding"
374394

375395
- type: record
@@ -404,6 +424,8 @@ $graph:
404424
- name: outputBinding
405425
type: CommandOutputBinding?
406426
jsonldPredicate: "cwl:outputBinding"
427+
doc: Describes how to generate this output object based on the files
428+
produced by a CommandLineTool
407429

408430
- name: stdin
409431
type: enum

v1.1.0-dev1/Process.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ $graph:
580580
jsonldPredicate: "cwl:loadContents"
581581
doc: |
582582
Use of `loadContents` in `InputBinding` is deprecated.
583-
Preserved for v1.0 backwards compatability. May be removed in
584-
a future spec. Use `InputParameter.loadContents` instead.
583+
Preserved for v1.0 backwards compatability. Will be removed in
584+
CWL v2.0. Use `InputParameter.loadContents` instead.
585585
586586
Only valid when `type: File` or is an array of `items: File`.
587587

v1.1.0-dev1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
The CWL specifications are divided up into several documents.
44

5-
The [User Guide](UserGuide.html) provides a gentle introduction to writing CWL
6-
command line tools and workflows.
5+
The [User Guide](http://www.commonwl.org/user_guide/) provides a gentle
6+
introduction to writing CWL command line tools and workflows.
77

88
The [Command Line Tool Description Specification](CommandLineTool.html)
99
specifies the document schema and execution semantics for wrapping and

v1.1.0-dev1/Workflow.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,28 @@ $graph:
4646
underspecified behavior may have slightly different behavior in
4747
v1.1.0-dev1.
4848
49+
## Changelog
50+
4951
* Default values for some fields are now expressed in the schema
50-
* When defining record types, fields of type `File` may now include `secondaryFiles` and `format`.
51-
* InputSchema now permits a `doc` field
52+
* When defining record types, fields of type `File` may now include
53+
`format`, `secondaryFiles`, and `streamable`.
54+
* The Input schemas (Record, Array, Enum), now permits a `doc` field
55+
* Any `doc` field may be an array of strings in addition to the
56+
previously allowed single string.
5257
* The `run` field now introduces a subscope so that embedded
5358
definitions do not have identifier conflicts with the
5459
outer workflow.
60+
* `Workflow.inputs` and `ExpressionTool.inputs` now refer to the type
61+
`WorkflowInputParameter` instead of `InputParameter`; the only syntax
62+
difference from v1.0 is that `inputBinding` is now deprecated (as
63+
there is no command line to bind input values to) and `inputBinding`
64+
in a `Workflow` context will be removed in v2.0. Use the new
65+
`WorkflowInputParameter.loadContents` instead.
66+
* The presence of `OutputRecordField.outputBinding` in v1.0 was due to
67+
a technical error and as it makes no semantic sense it was removed.
68+
69+
70+
See also the [CWL Command Line Tool Description, v1.1.0-dev1 changelog](CommandLineTool.html#Changelog).
5571
5672
## Purpose
5773
@@ -95,6 +111,7 @@ $graph:
95111
- name: WorkflowInputParameter
96112
type: record
97113
extends: InputParameter
114+
docParent: "#Workflow"
98115
fields:
99116
- name: type
100117
type:
@@ -120,7 +137,9 @@ $graph:
120137
Specify valid types of data that may be assigned to this parameter.
121138
- name: inputBinding
122139
type: InputBinding?
123-
doc: Deprecated. Preserved for v1.0 backwards compatability. Use `InputParameter.loadContents` instead.
140+
doc: |
141+
Deprecated. Preserved for v1.0 backwards compatability. Will be removed in
142+
CWL v2.0. Use `WorkflowInputParameter.loadContents` instead.
124143
jsonldPredicate: "cwl:inputBinding"
125144

126145

v1.1.0-dev1/concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**YAML**: http://yaml.org
88

9-
**Avro**: https://avro.apache.org/docs/current/spec.html
9+
**Avro**: https://avro.apache.org/docs/1.8.1/spec.html
1010

1111
**Uniform Resource Identifier (URI) Generic Syntax**: https://tools.ietf.org/html/rfc3986)
1212

@@ -388,5 +388,5 @@ To discover CWL documents look in the following locations:
388388

389389
`$XDG_DATA_HOME/commonwl/` (usually `$HOME/.local/share/commonwl`)
390390

391-
`$XDF_DATA_HOME` is from the [XDG Base Directory
391+
`$XDG_DATA_HOME` is from the [XDG Base Directory
392392
Specification](http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html)

v1.1.0-dev1/contrib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Authors:
22

33
* Peter Amstutz <[email protected]>, Arvados Project, Veritas Genetics
4-
* Michael R. Crusoe <[email protected]>, Common Workflow Language
4+
* Michael R. Crusoe <[email protected]>, Common Workflow Language
55
project
66
* Nebojša Tijanić <[email protected]>, Seven Bridges Genomics
77

@@ -15,5 +15,5 @@ Contributors:
1515
* Hervé Ménager <[email protected]>, Institut Pasteur
1616
* Maya Nedeljkovich <[email protected]>, Seven Bridges Genomics
1717
* Matt Scales <[email protected]>, Institute of Cancer Research, London
18-
* Stian Soiland-Reyes <[[email protected]](mailto:[email protected])>, University of Manchester
18+
* Stian Soiland-Reyes <[email protected]>, University of Manchester
1919
* Luka Stojanovic <[email protected]>, Seven Bridges Genomics

0 commit comments

Comments
 (0)