-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sniffing for and workaround for keeping output of croo workflows (#5096)
* Stack up scatters and conditionals to find tasks and fix #5094 * Use conformance tests with correct failure expectation * Add --allCallOutputs to add call outputs to workflow output * Default to including all task outputs for croo workflows * Document new option and missing option * Improve option doc wording --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Lon Blauvelt <lblauvel@ucsc.edu>
- Loading branch information
1 parent
561f5ba
commit a698f45
Showing
6 changed files
with
189 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version 1.0 | ||
|
||
workflow wf { | ||
meta { | ||
# Advertise as needing the Cromwell Output Organizer | ||
croo_out_def: 'https://storage.googleapis.com/encode-pipeline-output-definition/atac.croo.v5.json' | ||
} | ||
|
||
input { | ||
} | ||
|
||
call do_math { | ||
input: | ||
number = 3 | ||
} | ||
|
||
Int should_never_output = do_math.cube - 1 | ||
|
||
output { | ||
Int only_result = do_math.square | ||
} | ||
} | ||
|
||
task do_math { | ||
input { | ||
Int number | ||
} | ||
|
||
# Not allowed to not have a command | ||
command <<< | ||
>>> | ||
|
||
output { | ||
Int square = number * number | ||
Int cube = number * number * number | ||
} | ||
} | ||
|
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,33 @@ | ||
version 1.0 | ||
|
||
workflow wf { | ||
input { | ||
} | ||
|
||
call do_math { | ||
input: | ||
number = 3 | ||
} | ||
|
||
Int should_never_output = do_math.cube - 1 | ||
|
||
output { | ||
Int only_result = do_math.square | ||
} | ||
} | ||
|
||
task do_math { | ||
input { | ||
Int number | ||
} | ||
|
||
# Not allowed to not have a command | ||
command <<< | ||
>>> | ||
|
||
output { | ||
Int square = number * number | ||
Int cube = number * number * number | ||
} | ||
} | ||
|
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