Skip to content

Commit

Permalink
Merge pull request #2858 from broadinstitute/cjl_centaur_additions
Browse files Browse the repository at this point in the history
Reinstate a whole bunch of centaur tests. Let the shoes drop...!
  • Loading branch information
cjllanwarne committed Nov 15, 2017
2 parents daf5827 + 488f589 commit 12a6717
Show file tree
Hide file tree
Showing 74 changed files with 61 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ import common.validation.ErrorOr.ErrorOr
import wom.values._
import wom.expression.IoFunctionSet
import wom.graph.TaskCallNode
import wom.types.WomAnyType
import wom.values.WomGlobFile

trait GlobFunctions extends IoFunctionSet {

def callContext: CallContext

def findGlobOutputs(call: TaskCallNode, jobDescriptor: BackendJobDescriptor): ErrorOr[List[WomGlobFile]] =
call.callable.outputs.flatTraverse[ErrorOr, WomGlobFile] {
_.expression.evaluateFiles(jobDescriptor.localInputs, this, WomAnyType) map {
call.callable.outputs.flatTraverse[ErrorOr, WomGlobFile] { outputDefinition =>
outputDefinition.expression.evaluateFiles(jobDescriptor.localInputs, this, outputDefinition.womType) map {
_.toList collect { case glob: WomGlobFile => glob }
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: arrays
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2615
name: aliased_subworkflows
testFormat: workflowsuccess
tags: [import, subworkflow, alias]
Expand Down
3 changes: 2 additions & 1 deletion centaur/src/main/resources/standardTestCases/array_io.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # depends on 2864

name: array_io
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
ignore: true
# This test exercises a shortcoming in parsing array literals in WDL which never worked in any version of Cromwell, but
# probably should.

name: array_literal_locations
testFormat: workflowsuccess

Expand All @@ -14,6 +10,6 @@ metadata {
workflowName: array_literal_locations
status: Succeeded
"outputs.array_literal_locations.array_literal_locations_i.out": "0:1:2"
"outputs.array_literal_locations.array_literal_locations_ii.0.out": "0"
"outputs.array_literal_locations.array_literal_locations_ii.1.out": "1"
"outputs.array_literal_locations.array_literal_locations_ii.out.0": "0"
"outputs.array_literal_locations.array_literal_locations_ii.out.1": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ task array_literal_locations_i {
echo ${sep=":" array} > out
}
runtime { docker: "ubuntu:latest" }
output { File out = "out" }
output { String out = read_string("out") }
}

task array_literal_locations_ii {
Expand All @@ -17,7 +17,7 @@ task array_literal_locations_ii {
docker: "ubuntu:latest"
continueOnReturnCode: [ 0, 1, 2 ]
}
output { File out = "out" }
output { String out = read_string("out") }
}

workflow array_literal_locations {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: arrays_scatters_ifs
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: backendWithNoDocker
backends: [LocalNoDocker]
testFormat: runtwiceexpectingcallcaching
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: cacheBetweenWF
testFormat: runtwiceexpectingcallcaching

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: cacheWithinWF
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: call_cache_capoeira_jes
testFormat: workflowsuccess
backends: [Jes, Local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: call_cache_capoeira_local
testFormat: workflowsuccess
backends: [Local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: call_cache_capoeira_tes
testFormat: workflowsuccess
backends: [TES]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Ignored because of #1934
ignore: true
name: circular_dependencies
testFormat: workflowfailure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: complex_types_files
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: composedenginefunctions
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on #2615

name: lots_of_nesting
testFormat: workflowsuccess
tags: [ conditionals ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2615
name: subworkflows_in_ifs
testFormat: workflowsuccess
tags: [ conditionals ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: confirm_preemptible
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: cont_while_possible_scatter
testFormat: workflowfailure
backends: [Local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: custom_mount_point
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: declarations_as_nodes
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on 2861
name: defined_function
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: docker_hash_dockerhub_private
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: docker_hash_gcr
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: docker_hash_gcr_private
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: dont_cache_to_failed_jobs
testFormat: runfailingtwiceexpectingnocallcaching

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
# Tests that a runtime option to save call logs is copying said logs appropriately.

name: final_call_logs_dir_jes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
# Tests that a runtime option to save call logs is copying said logs appropriately.

name: final_call_logs_dir_tes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on 2864
name: fofn_caching
testFormat: runtwiceexpectingcallcaching
backends: [Jes-Caching-No-Copy]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: gcs_underscore_bucket
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # depends on 2901
name: globbingindex
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2861
name: if_then_else_expressions
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
# Tests that on a shared filesystem Cromwell is correctly localizing input files coming from the same as
# well as different directories. Tests both docker and non-docker

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: input_mirror
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2898
name: inter_scatter_dependencies
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on 2904
name: invalid_runtime_attributes
testFormat: workflowfailure

Expand All @@ -8,6 +8,7 @@ files {
}

metadata {
"failures.0.message": "Runtime validation failed"
"failures.0.causedBy.0.message": "Task invalid_runtime_attributes has an invalid runtime attribute continueOnReturnCode = \"oops\""
"workflowName": "invalid_runtime_attributes_wf"
"failures.0.message": "Workflow failed"
"failures.0.causedBy.0.causedBy.0.message": "Expecting continueOnReturnCode runtime attribute to be either a Boolean, a String 'true' or 'false', or an Array[Int]"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: invalidate_bad_caches_jes
testFormat: workflowsuccess
backends: [Jes]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: invalidate_bad_caches_jes_no_copy
testFormat: workflowsuccess
backends: [Jes-Caching-No-Copy]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on #2905

name: invalidate_bad_caches_local
testFormat: workflowsuccess
backends: [Local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: jes_labels
testFormat: workflowsuccess
tags: [ labels ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: local_gcs
testFormat: workflowsuccess
backends: [Jes, Local]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: missing_input_failure
testFormat: workflowfailure
backends: [Jes]
Expand All @@ -11,8 +10,6 @@ files {
metadata {
workflowName: missing_input_failure
status: Failed
"failures.0.message": "Couldn't resolve all inputs for missing_input_failure.hello at index None."
"failures.0.causedBy.0.message": "Input evaluation for Call missing_input_failure.hello failed."
"failures.0.causedBy.0.causedBy.0.message": "addressee"
"failures.0.causedBy.0.causedBy.0.causedBy.0.message": "nonexistingbucket/path/doesnt/exist"
"failures.0.message": "Workflow failed"
"failures.0.causedBy.0.message": "gs://nonexistingbucket/path/doesnt/exist"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: missing_optional_output
testFormat: workflowfailure

Expand All @@ -7,7 +6,7 @@ files {
}

metadata {
workflowName: missing_optional_output
status: Failed
"failures.0.message": "out_except_undeclared is not declared as an output of the task x.\nMake sure to declare it as an output to be able to use it in the workflow."
"failures.0.message": "Workflow input processing failed"
"failures.0.causedBy.0.message": "No input x.out_except_undeclared found evaluating inputs for expression x.out_except_undeclared"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
# Test to confirm the output of the monitoring script will be written to a monitoring.log file

name: monitoring_log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on #2865

#Currently failing since the workflow fails without completing task 'shouldSucceed'
#and no information about tasks that weren't started.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ignore: true

name: optional_declarations
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Reinstate with #2860
# Tests interactions with an optional parameter. Supplying no value at all, using a default value and supplying a value

name: optional_parameter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: passingfiles
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2615
name: public_http_import
testFormat: workflowsuccess
tags: [import, subworkflow, alias]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on #2615
name: recursive_imports
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: referencingpreviousinputsandoutputs
testFormat: workflowsuccess

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on 2862

name: refresh_token
testFormat: workflowsuccess
backends: [Jes-Refresh]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore: true
name: refresh_token_failure
testFormat: workflowfailure
backends: [Jes-Refresh]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Depends on 2862
name: refresh_token_no_auth_bucket
testFormat: workflowfailure
backends: [Jes-Refresh]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore: true
ignore: true # Ignored because it requires subworkflows
name: refresh_token_sub_workflow
testFormat: workflowsuccess
backends: [Jes-Refresh]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on #2866

name: restart_jes_with_recover
testFormat: CromwellRestartWithRecover
callMark: cromwell_restart.cromwell_killer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on 2866

name: restart_local_with_recover
testFormat: CromwellRestartWithRecover
callMark: cromwell_restart.cromwell_killer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ignore: true
ignore: true # Depends on 2866

name: restart_tes_without_recover
testFormat: CromwellRestartWithoutRecover
callMark: cromwell_restart.cromwell_killer
Expand Down

0 comments on commit 12a6717

Please sign in to comment.