-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
189 changed files
with
4,327 additions
and
2,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
centaur/src/main/resources/standardTestCases/cwl_input_typearray.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: cwl_input_typearray | ||
testFormat: workflowsuccess | ||
workflowType: CWL | ||
workflowTypeVersion: v1.0 | ||
workflowRoot: input_typearray | ||
|
||
files { | ||
workflow: cwl_input_typearray/input_typearray.cwl | ||
inputs: cwl_input_typearray/input_typearray.yml | ||
} | ||
|
||
metadata { | ||
"submittedFiles.workflowType": CWL | ||
"submittedFiles.workflowTypeVersion": v1.0 | ||
"outputs.input_typearray.response_f": "input.txt" | ||
"outputs.input_typearray.response_s": "nonexistent_path.txt" | ||
} |
Empty file.
42 changes: 42 additions & 0 deletions
42
centaur/src/main/resources/standardTestCases/cwl_input_typearray/input_typearray.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
cwlVersion: v1.0 | ||
$graph: | ||
- id: input_typearray | ||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
baseCommand: ['/bin/echo'] | ||
stdout: "response.txt" | ||
requirements: | ||
- class: DockerRequirement | ||
dockerPull: "ubuntu:latest" | ||
- class: InlineJavascriptRequirement | ||
arguments: | ||
- position: 3 | ||
valueFrom: "sentinel" | ||
inputs: | ||
value_f: | ||
type: | ||
- string | ||
- File | ||
inputBinding: | ||
position: 1 | ||
doc: "an input to test with a File value" | ||
value_s: | ||
type: | ||
- string | ||
- File | ||
inputBinding: | ||
position: 2 | ||
doc: "an input to test with a string value" | ||
outputs: | ||
response_f: | ||
type: string | ||
outputBinding: | ||
glob: response.txt | ||
loadContents: true | ||
outputEval: $(self[0].contents.split(" ")[0].split("/").slice(-1)[0]) | ||
response_s: | ||
type: string | ||
outputBinding: | ||
glob: response.txt | ||
loadContents: true | ||
outputEval: $(self[0].contents.split(" ")[1].split("/").slice(-1)[0]) |
4 changes: 4 additions & 0 deletions
4
centaur/src/main/resources/standardTestCases/cwl_input_typearray/input_typearray.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
value_f: | ||
class: File | ||
path: "centaur/src/main/resources/standardTestCases/cwl_input_typearray/input.txt" | ||
value_s: "centaur/src/main/resources/standardTestCases/cwl_input_typearray/nonexistent_path.txt" |
13 changes: 13 additions & 0 deletions
13
centaur/src/main/resources/standardTestCases/dedup_localizations_papi_v2.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: dedup_localizations_papi_v2 | ||
testFormat: workflowsuccess | ||
backends: [Papiv2] | ||
|
||
files { | ||
workflow: dedup_localizations_papi_v2/dedup_localizations_papi_v2.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: dedup_localizations_papi_v2 | ||
status: Succeeded | ||
"outputs.dedup_localizations_papi_v2.check_log.num_input_localizations": 1 | ||
} |
59 changes: 59 additions & 0 deletions
59
...n/resources/standardTestCases/dedup_localizations_papi_v2/dedup_localizations_papi_v2.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version 1.0 | ||
|
||
workflow dedup_localizations_papi_v2 { | ||
call producer | ||
call consumer { input: first = producer.data, second = producer.data } | ||
call check_log { input: out_file_path = consumer.out, log_file_name = "consumer.log" } | ||
} | ||
|
||
task producer { | ||
command { | ||
echo "Here is some data." > data.txt | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
|
||
output { | ||
File data = "data.txt" | ||
} | ||
} | ||
|
||
task consumer { | ||
input { | ||
File first | ||
File second | ||
} | ||
|
||
command { | ||
# noop | ||
} | ||
|
||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
|
||
output { | ||
File out = stdout() | ||
} | ||
} | ||
|
||
task check_log { | ||
input { | ||
String out_file_path | ||
String log_file_name | ||
} | ||
String file_log = sub(out_file_path, "/stdout$", "/" + log_file_name) | ||
command { | ||
set -euo pipefail | ||
gsutil cp ~{file_log} log.txt | ||
set +e | ||
grep 'Localizing input gs://cloud-cromwell-dev-self-cleaning/cromwell_execution/travis/dedup_localizations_papi_v2/' log.txt | grep -c "data.txt" | ||
} | ||
output { | ||
File out = stdout() | ||
Int num_input_localizations = read_int(stdout()) | ||
} | ||
runtime { docker: "google/cloud-sdk" } | ||
} |
4 changes: 2 additions & 2 deletions
4
centaur/src/main/resources/standardTestCases/drs_tests/wf_level_file_size.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
centaur/src/main/resources/standardTestCases/drs_usa_hca/drs_usa_hca.inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
# For all below 5 HCA uuids, Martha does not return a service account | ||
"drs_usa_hca.localize_drs_with_usa.file1": "dos://service.staging.explore.data.humancellatlas.org/033c9840-c5cd-438b-b0e4-8e4cd8fc8dc6?version=2019-07-04T104122.106166Z", | ||
"drs_usa_hca.localize_drs_with_usa.file2": "dos://service.staging.explore.data.humancellatlas.org/4defa7b0-46c2-4053-8e99-b827eed1bc96?version=2019-07-04T104122.100969Z", | ||
"drs_usa_hca.localize_drs_with_usa.file3": "dos://service.staging.explore.data.humancellatlas.org/de5dcfc1-5aea-41ba-a7ae-e72c416cb450?version=2019-07-04T104122.092788Z", | ||
"drs_usa_hca.localize_drs_with_usa.file4": "dos://service.staging.explore.data.humancellatlas.org/16dea2c5-e2bd-45bc-b2fd-fcac0daafc48?version=2019-07-04T104122.060634Z", | ||
"drs_usa_hca.localize_drs_with_usa.file5": "dos://service.dev.explore.data.humancellatlas.org/7c800467-9143-402f-b965-4e7cad75c1e6?version=2019-05-26T130511.722646Z" | ||
"drs_usa_hca.localize_drs_with_usa.file1": "drs://service.staging.explore.data.humancellatlas.org/033c9840-c5cd-438b-b0e4-8e4cd8fc8dc6?version=2019-07-04T104122.106166Z", | ||
"drs_usa_hca.localize_drs_with_usa.file2": "drs://service.staging.explore.data.humancellatlas.org/4defa7b0-46c2-4053-8e99-b827eed1bc96?version=2019-07-04T104122.100969Z", | ||
"drs_usa_hca.localize_drs_with_usa.file3": "drs://service.staging.explore.data.humancellatlas.org/de5dcfc1-5aea-41ba-a7ae-e72c416cb450?version=2019-07-04T104122.092788Z", | ||
"drs_usa_hca.localize_drs_with_usa.file4": "drs://service.staging.explore.data.humancellatlas.org/16dea2c5-e2bd-45bc-b2fd-fcac0daafc48?version=2019-07-04T104122.060634Z", | ||
"drs_usa_hca.localize_drs_with_usa.file5": "drs://service.dev.explore.data.humancellatlas.org/7c800467-9143-402f-b965-4e7cad75c1e6?version=2019-05-26T130511.722646Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
centaur/src/main/resources/standardTestCases/localization_sanity_papi_v2.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: localization_sanity_papi_v2 | ||
testFormat: workflowsuccess | ||
workflowType: WDL | ||
workflowTypeVersion: 1.0 | ||
backends: [Papiv2] | ||
|
||
files { | ||
workflow: localization_sanity_papi_v2/localization_sanity_papi_v2.wdl | ||
} | ||
|
||
metadata { | ||
status: Succeeded | ||
"outputs.localization_sanity.sanity_check.lines.0": "file a.txt: 1" | ||
"outputs.localization_sanity.sanity_check.lines.1": "file b.txt: 1" | ||
"outputs.localization_sanity.sanity_check.lines.2": "file c.txt: 1" | ||
} |
44 changes: 44 additions & 0 deletions
44
...n/resources/standardTestCases/localization_sanity_papi_v2/localization_sanity_papi_v2.wdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version 1.0 | ||
|
||
task make_files { | ||
command <<< | ||
names=(a b c) | ||
mkdir -p "${names[@]}" | ||
for name in "${names[@]}"; do | ||
touch "${name}/dummy.txt" # the first file is not bulk-transferred via `gsutil cp -I ...` which is what this test is about. | ||
touch "${name}/${name}.txt" | ||
done | ||
>>> | ||
output { | ||
# Intentionally not globbed as the current implementaton of globbing would defeat what this test | ||
# is trying to assert. | ||
Array[File] files = ["a/dummy.txt", "a/a.txt", "b/dummy.txt", "b/b.txt", "c/dummy.txt", "c/c.txt"] | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} | ||
|
||
task sanity_check { | ||
input { | ||
Array[File] files | ||
} | ||
command <<< | ||
names=(a b c) | ||
for name in "${names[@]}"; do | ||
file="${name}.txt" | ||
echo "file $file: $(find . -name $file | wc -l)" | ||
done | ||
>>> | ||
output { | ||
Array[String] lines = read_lines(stdout()) | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} | ||
|
||
workflow localization_sanity { | ||
call make_files | ||
call sanity_check { input: files = make_files.files } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
centaur/src/main/resources/standardTestCases/lots_of_inputs/lots_of_inputs.inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "lots_of_inputs.how_many_is_lots": 400 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
centaur/src/main/resources/standardTestCases/lots_of_inputs/lots_of_inputs_papiv2.inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "lots_of_inputs.how_many_is_lots": 10000 } |
19 changes: 19 additions & 0 deletions
19
centaur/src/main/resources/standardTestCases/lots_of_inputs_papiv2.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This test makes sure that: | ||
# - 10000 output files are all found and collected by the glob() method | ||
# - 10000 input files to a task doesn't make anything explode inappropriately | ||
name: lots_of_inputs_papiv2 | ||
testFormat: workflowsuccess | ||
tags: [ big_metadata ] | ||
backends: [ Papiv2 ] | ||
|
||
files { | ||
workflow: lots_of_inputs/lots_of_inputs.wdl | ||
inputs: lots_of_inputs/lots_of_inputs_papiv2.inputs | ||
} | ||
|
||
metadata { | ||
workflowName: lots_of_inputs | ||
status: Succeeded | ||
"outputs.lots_of_inputs.out_count": "10000" | ||
"outputs.lots_of_inputs.nothing_out": "no-op" | ||
} |
Oops, something went wrong.