Skip to content

Commit 2faaa15

Browse files
authored
Merge branch 'gh-pages' into no-side-effect-14
2 parents 3943345 + 1574f85 commit 2faaa15

File tree

7 files changed

+155
-32
lines changed

7 files changed

+155
-32
lines changed

_episodes/11-records.md

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ parameters together to describe these two conditions.
3232

3333
~~~
3434
$ cwl-runner record.cwl record-job1.yml
35-
Workflow error:
36-
Error validating input record, could not validate field `dependent_parameters` because
37-
missing required field `itemB`
35+
Workflow error, try again with --debug for more information:
36+
Invalid job input record:
37+
record-job1.yml:1:1: the `dependent_parameters` field is not valid because
38+
missing required field `itemB`
3839
~~~
3940
{: .output}
4041

@@ -49,10 +50,28 @@ In the first example, you can't provide `itemA` without also providing `itemB`.
4950

5051
~~~
5152
$ cwl-runner record.cwl record-job2.yml
52-
[job 140566927111376] /home/example$ echo -A one -B two -C three
53-
-A one -B two -C three
53+
record-job2.yml:6:3: invalid field `itemD`, expected one of: 'itemC'
54+
[job record.cwl] /home/example$ echo \
55+
-A \
56+
one \
57+
-B \
58+
two \
59+
-C \
60+
three > /home/example/output.txt
61+
[job record.cwl] completed success
62+
{
63+
"example_out": {
64+
"location": "file:///home/example/11-records/output.txt",
65+
"basename": "output.txt",
66+
"class": "File",
67+
"checksum": "sha1$329fe3b598fed0dfd40f511522eaf386edb2d077",
68+
"size": 23,
69+
"path": "/home/example/output.txt"
70+
}
71+
}
5472
Final process status is success
55-
{}
73+
$ cat output.txt
74+
-A one -B two -C three
5675
~~~
5776
{: .output}
5877

@@ -68,10 +87,27 @@ is added to the command line and `itemD` is ignored.
6887

6988
~~~
7089
$ cwl-runner record.cwl record-job3.yml
71-
[job 140606932172880] /home/example$ echo -A one -B two -D four
72-
-A one -B two -D four
90+
[job record.cwl] /home/example$ echo \
91+
-A \
92+
one \
93+
-B \
94+
two \
95+
-D \
96+
four > /home/example/output.txt
97+
[job record.cwl] completed success
98+
{
99+
"example_out": {
100+
"location": "file:///home/example/output.txt",
101+
"basename": "output.txt",
102+
"class": "File",
103+
"checksum": "sha1$77f572b28e441240a5e30eb14f1d300bcc13a3b4",
104+
"size": 22,
105+
"path": "/home/example/output.txt"
106+
}
107+
}
73108
Final process status is success
74-
{}
109+
$ cat output.txt
110+
-A one -B two -D four
75111
~~~
76112
{: .output}
77113

_episodes/12-env.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,23 @@ command line:
3535

3636
~~~
3737
$ cwl-runner env.cwl echo-job.yml
38-
[job 140710387785808] /home/example$ env
39-
PATH=/bin:/usr/bin:/usr/local/bin
38+
[job env.cwl] /home/example$ env > /home/example/output.txt
39+
[job env.cwl] completed success
40+
{
41+
"example_out": {
42+
"location": "file:///home/example/output.txt",
43+
"basename": "output.txt",
44+
"class": "File",
45+
"checksum": "sha1$1ca16a840b14807b2fd3323022c476b06a150e2f",
46+
"size": 94,
47+
"path": "/home/example/output.txt"
48+
}
49+
}
50+
Final process status is success
51+
$ cat output.txt
4052
HELLO=Hello world!
53+
PATH=/bin:/usr/bin:/usr/local/bin
54+
HOME=/home/example
4155
TMPDIR=/tmp/tmp63Obpk
42-
Final process status is success
43-
{}
4456
~~~
4557
{: .output}

_episodes/13-expressions.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,36 @@ We can then run `expression.cwl`:
4949

5050
~~~
5151
$ cwl-runner expression.cwl empty.yml
52-
[job 140000594593168] /home/example$ echo -A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
53-
-A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
52+
[job expression.cwl] /home/example$ echo \
53+
-A \
54+
2 \
55+
-B \
56+
baz \
57+
-C \
58+
10 \
59+
9 \
60+
8 \
61+
7 \
62+
6 \
63+
5 \
64+
4 \
65+
3 \
66+
2 \
67+
1 > /home/example/output.txt
68+
[job expression.cwl] completed success
69+
{
70+
"example_out": {
71+
"location": "file:///home/example/output.txt",
72+
"basename": "output.txt",
73+
"class": "File",
74+
"checksum": "sha1$a739a6ff72d660d32111265e508ed2fc91f01a7c",
75+
"size": 36,
76+
"path": "/home/example/output.txt"
77+
}
78+
}
5479
Final process status is success
55-
{}
80+
$ cat output.txt
81+
-A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
5682
~~~
5783
{: .output}
5884

_includes/cwl/11-records/record.cwl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@ inputs:
3232
type: string
3333
inputBinding:
3434
prefix: -D
35-
outputs: []
35+
outputs:
36+
example_out:
37+
type: stdout
38+
stdout: output.txt
3639
baseCommand: echo

_includes/cwl/12-env/env.cwl

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ requirements:
99
HELLO: $(inputs.message)
1010
inputs:
1111
message: string
12-
outputs: []
12+
outputs:
13+
example_out:
14+
type: stdout
15+
stdout: output.txt

_includes/cwl/13-expressions/expression.cwl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ requirements:
88
- class: InlineJavascriptRequirement
99

1010
inputs: []
11-
outputs: []
11+
outputs:
12+
example_out:
13+
type: stdout
14+
stdout: output.txt
1215
arguments:
1316
- prefix: -A
1417
valueFrom: $(1+1)

_includes/cwl/conformance-test.yml

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,54 @@
102102
size: 0
103103

104104
# Section 11 depends on side-effects
105-
# Rest two examples in Section 11 depend on side-effects
106105
- doc: Test for section 11 (1st example)
107106
job: 11-records/record-job1.yml
108107
tool: 11-records/record.cwl
109108
should_fail: true
110109

111-
# Section 12 depends on side-effects
112-
# Section 13 depends on side-effects
110+
- doc: Test for section 11 (2nd example)
111+
job: 11-records/record-job2.yml
112+
tool: 11-records/record.cwl
113+
output:
114+
example_out:
115+
class: File
116+
checksum: sha1$329fe3b598fed0dfd40f511522eaf386edb2d077
117+
basename: output.txt
118+
location: Any
119+
size: 23
120+
121+
- doc: Test for section 11 (3rd example)
122+
job: 11-records/record-job3.yml
123+
tool: 11-records/record.cwl
124+
output:
125+
example_out:
126+
class: File
127+
checksum: sha1$77f572b28e441240a5e30eb14f1d300bcc13a3b4
128+
basename: output.txt
129+
location: Any
130+
size: 22
131+
132+
# Section 12
133+
- doc: Test for section 12
134+
job: 12-env/echo-job.yml
135+
tool: 12-env/env.cwl
136+
output:
137+
example_out:
138+
class: File
139+
basename: output.txt
140+
location: Any
141+
142+
# Section 13
143+
- doc: Test for section 13
144+
job: 13-expressions/empty.yml
145+
tool: 13-expressions/expression.cwl
146+
output:
147+
example_out:
148+
class: File
149+
checksum: sha1$a739a6ff72d660d32111265e508ed2fc91f01a7c
150+
basename: output.txt
151+
location: Any
152+
size: 36
113153

114154
# Section 14
115155
- doc: Test for section 14
@@ -167,16 +207,16 @@
167207
location: Any
168208

169209
# Section 19
170-
# See: Issue #48
171-
# - doc: Test for section 19
172-
# job: 19-custom-types/custom-types.yml
173-
# tool: 19-custom-types/costom-types.cwl
174-
# output:
175-
# i5Annotations:
176-
# class: File
177-
# basename: test_proteins.i5_annotations
178-
# location: Any
179-
# size: Any # To be fixed
210+
# Note: The checksum is always changed for every executions
211+
- doc: Test for section 19
212+
job: 19-custom-types/custom-types.yml
213+
tool: 19-custom-types/custom-types.cwl
214+
output:
215+
result:
216+
class: File
217+
basename: rich_sparse_otu_table.hdf5
218+
location: Any
219+
size: 46992
180220

181221
# Section 20
182222
# See: Issue #48

0 commit comments

Comments
 (0)