-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
79c2bff
commit 6e669cf
Showing
16 changed files
with
202 additions
and
9 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
17 changes: 17 additions & 0 deletions
17
...ur/src/main/resources/standardTestCases/biscayne_new_runtime_attributes_lifesciences.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: biscayne_new_runtime_attributes_lifesciences | ||
testFormat: workflowsuccess | ||
tags: ["wdl_biscayne"] | ||
|
||
# Will run on a Cromwell that supports any one of these backends | ||
backendsMode: any | ||
backends: [Papi, Papiv2, GCPBatch] | ||
|
||
files { | ||
workflow: wdl_biscayne/biscayne_new_runtime_attributes/biscayne_new_runtime_attributes.wdl | ||
} | ||
|
||
metadata { | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.docker": "rockylinux:9", | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.cpu": 4 | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.memory": "6 GB" | ||
} |
16 changes: 16 additions & 0 deletions
16
centaur/src/main/resources/standardTestCases/biscayne_new_runtime_attributes_local.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: biscayne_new_runtime_attributes_local | ||
testFormat: workflowsuccess | ||
tags: ["wdl_biscayne"] | ||
|
||
# This test should only run in the Local suite, on its default `Local` backend. Unfortunately the `Local` backend | ||
# leaks into other suites, so require an irrelevant `LocalNoDocker` backend that is only found in Local suite. | ||
backends: [Local, LocalNoDocker] | ||
|
||
files { | ||
workflow: wdl_biscayne/biscayne_new_runtime_attributes/biscayne_new_runtime_attributes.wdl | ||
} | ||
|
||
# CPU, memory attributes not applicable for Local backend | ||
metadata { | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.docker": "ubuntu:latest", | ||
} |
14 changes: 14 additions & 0 deletions
14
centaur/src/main/resources/standardTestCases/biscayne_new_runtime_attributes_tes.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,14 @@ | ||
name: biscayne_new_runtime_attributes_tes | ||
testFormat: workflowsuccess | ||
tags: ["wdl_biscayne"] | ||
backends: [TES] | ||
|
||
files { | ||
workflow: wdl_biscayne/biscayne_new_runtime_attributes/biscayne_new_runtime_attributes.wdl | ||
} | ||
|
||
metadata { | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.docker": "debian:latest", | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.cpu": 4 | ||
"calls.runtime_attributes_wf.runtime_attributes_task.runtimeAttributes.memory": "4 GB" | ||
} |
48 changes: 48 additions & 0 deletions
48
...estCases/wdl_biscayne/biscayne_new_runtime_attributes/biscayne_new_runtime_attributes.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,48 @@ | ||
version development-1.1 | ||
|
||
workflow runtime_attributes_wf { | ||
call runtime_attributes_task | ||
output { | ||
String out = runtime_attributes_task.out | ||
} | ||
} | ||
task runtime_attributes_task { | ||
|
||
command <<< | ||
echo "Zardoz" | ||
>>> | ||
|
||
meta { | ||
volatile: true | ||
} | ||
|
||
runtime { | ||
# Meaningless keys are ignored | ||
banana: object { | ||
cpuPlatform: "Banana Lake" | ||
} | ||
|
||
gcp: object { | ||
# Platform-specific keys take precedence | ||
docker: "rockylinux:9", | ||
memory: "6 GB" | ||
} | ||
|
||
azure: object { | ||
memory: "4 GB", | ||
docker: "debian:latest" | ||
} | ||
|
||
# Generic keys are ignored in favor of platform ones | ||
docker: "ubuntu:latest" | ||
memory: "8 GB" | ||
|
||
# We still read generic keys that are not overridden | ||
cpu: 4 | ||
} | ||
|
||
output { | ||
String out = read_string(stdout()) | ||
} | ||
} |
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
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