-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AN-142] Adding cost centaur test #7685
Open
lucymcnatt
wants to merge
45
commits into
develop
Choose a base branch
from
AN-142-cost-test
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e992402
[AN-142] Adding cost centaur test
lucymcnatt a476d05
formatting ...
lucymcnatt 1a9db97
remove test files
lucymcnatt 4c52851
extra line breaks
lucymcnatt e314da6
cleanup
lucymcnatt 60bc2ba
edit name
lucymcnatt 3edb81c
disable call-caching
lucymcnatt 5e6f36d
documentation updates
lucymcnatt 1714d0a
add no cost test
lucymcnatt e44409f
update name
lucymcnatt cbd73b1
Update CentaurTestCase.scala
lucymcnatt 5dd597e
fmt
lucymcnatt 215ff98
update doc
lucymcnatt 83028d7
fix comment
lucymcnatt 0cbcbab
update cache test
lucymcnatt 2a83163
fixes
lucymcnatt 9aabb3d
Merge branch 'develop' into AN-142-cost-test
aednichols 79e256b
try changing application.conf
lucymcnatt 0c63680
small fixes
lucymcnatt 0205711
remove old mysql test
lucymcnatt a459a7a
switch to cost range
lucymcnatt a9263f0
oops
lucymcnatt b181c03
fmt
lucymcnatt 5ef83f3
update docs
lucymcnatt dcd3dd3
config fmt
lucymcnatt 2b9e7f7
tweaks
lucymcnatt af74cad
missing paren
lucymcnatt 9106c96
adding application default to google auths for batch + papi
lucymcnatt d6fa136
Merge branch 'develop' into AN-142-cost-test
lucymcnatt 642fead
add google auth to papi provider conf
lucymcnatt b6954b0
actually add AD
lucymcnatt ce5249a
add google auth in different config
lucymcnatt 67ccddd
add requester pays SA
lucymcnatt ca07382
Merge branch 'develop' into AN-142-cost-test
lucymcnatt a06a102
add application creds to papi test file
lucymcnatt 378f32e
add back 8.0
lucymcnatt 8421765
wrong branch
lucymcnatt 43f10b7
different cost for papi vs. batch
lucymcnatt 1e2d004
cleanup
lucymcnatt 3044ab0
fix test names
lucymcnatt 9d686f9
try papi v2?
lucymcnatt 0d98adc
try only mode
lucymcnatt 0cfdad0
try defining horicromtal tests separately
lucymcnatt e2bd976
fmt
lucymcnatt bcea4db
Merge branch 'develop' into AN-142-cost-test
lucymcnatt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 14 additions & 0 deletions
14
centaur/src/it/scala/centaur/HoricromtalTestCaseSpec.scala
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 @@ | ||
package centaur | ||
|
||
import centaur.test.standard.CentaurTestCase | ||
import org.scalatest.DoNotDiscover | ||
|
||
@DoNotDiscover | ||
class HoricromtalTestCaseSpec(cromwellBackends: List[String]) extends AbstractCentaurTestCaseSpec(cromwellBackends) { | ||
|
||
def this() = this(CentaurTestSuite.cromwellBackends) | ||
|
||
def testType: String = "Horicromtal" | ||
|
||
def isMatchingHoricromtalTest(testCase: CentaurTestCase): Boolean = CentaurTestSuite.isHoricromtalTest(testCase) | ||
} |
56 changes: 56 additions & 0 deletions
56
centaur/src/main/resources/standardTestCases/cacheBetweenWF/cacheBetweenWFNoCost.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,56 @@ | ||
task one { | ||
Int vertAxis | ||
command { | ||
echo ${vertAxis/2} | ||
} | ||
output { | ||
Float semiVertAxis = read_int(stdout()) | ||
} | ||
runtime { | ||
docker: "gcr.io/gcp-runtimes/ubuntu_16_0_4@sha256:53a002b59dfcd43b4d15e97c1acbeae035ddd1b31a106659a312e9fe65f00afa" | ||
} | ||
} | ||
|
||
task two { | ||
Int horAxis | ||
command { | ||
echo ${horAxis/2} | ||
} | ||
output { | ||
Float semiHorAxis = read_int(stdout()) | ||
} | ||
runtime { | ||
docker: "gcr.io/gcp-runtimes/ubuntu_16_0_4@sha256:53a002b59dfcd43b4d15e97c1acbeae035ddd1b31a106659a312e9fe65f00afa" | ||
} | ||
} | ||
|
||
task area{ | ||
Float semiVertAxis | ||
Float semiHorAxis | ||
Float pi = 3.14159 | ||
|
||
command { | ||
echo ${semiHorAxis*semiVertAxis*pi} | ||
} | ||
output { | ||
Float ellipseArea = read_float(stdout()) | ||
} | ||
runtime { | ||
docker: "ubuntu@sha256:71cd81252a3563a03ad8daee81047b62ab5d892ebbfbf71cf53415f29c130950" | ||
} | ||
} | ||
|
||
workflow cacheBetweenWFNoCost { | ||
call one { | ||
input: vertAxis = 5 | ||
} | ||
call two { | ||
input: horAxis = 6 | ||
} | ||
call area { | ||
input: semiVertAxis = one.semiVertAxis, semiHorAxis = two.semiHorAxis | ||
} | ||
output { | ||
area.ellipseArea | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
centaur/src/main/resources/standardTestCases/cacheBetweenWfNoCost.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: cacheBetweenWFNoCost | ||
testFormat: runtwiceexpectingcallcachingnocost | ||
backends: [Papi, GCPBATCH] | ||
|
||
files { | ||
workflow: cacheBetweenWF/cacheBetweenWFNoCost.wdl | ||
options: common_options/cache_read_off_write_on.options | ||
second-options: common_options/cache_read_on_write_on.options | ||
} | ||
|
||
metadata { | ||
workflowName: cacheBetweenWFNoCost | ||
status: Succeeded | ||
"calls.cacheBetweenWFNoCost.one.callCaching.result": "Cache Hit: <<CACHE_HIT_UUID>>:cacheBetweenWFNoCost.one:-1" | ||
"calls.cacheBetweenWFNoCost.two.callCaching.result": "Cache Hit: <<CACHE_HIT_UUID>>:cacheBetweenWFNoCost.two:-1" | ||
"outputs.cacheBetweenWFNoCost.area.ellipseArea": 18.849539999999998 | ||
} |
3 changes: 3 additions & 0 deletions
3
...aur/src/main/resources/standardTestCases/recursive_imports/recursive_imports_cost.options
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,3 @@ | ||
{ | ||
"read_from_cache":false | ||
} |
23 changes: 23 additions & 0 deletions
23
centaur/src/main/resources/standardTestCases/recursive_imports_cost_batch.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,23 @@ | ||
name: recursive_imports_cost_batch | ||
testFormat: workflowsuccessandverifycost | ||
backends: [GCPBATCH] | ||
|
||
files { | ||
workflow: recursive_imports/recursive_imports.wdl | ||
imports: [ | ||
forkjoin/forkjoin.wdl, | ||
sub_workflow_hello_world/sub_workflow_hello_world.wdl, | ||
sub_workflow_hello_world/sub_workflow_hello_world_import.wdl, | ||
sub_workflow_interactions/sub_workflow_interactions_import.wdl, | ||
sub_workflow_interactions/sub_workflow_interactions.wdl | ||
] | ||
# Adds option to disable call-caching | ||
options: recursive_imports/recursive_imports_cost.options | ||
} | ||
|
||
metadata { | ||
workflowName: recursive_imports | ||
status: Succeeded | ||
} | ||
|
||
cost: [0.0015, 0.0019] |
26 changes: 26 additions & 0 deletions
26
centaur/src/main/resources/standardTestCases/recursive_imports_cost_papi.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,26 @@ | ||
name: recursive_imports_cost_papi | ||
testFormat: workflowsuccessandverifycost | ||
backends: { | ||
mode: "only", | ||
list: [PapiV2] | ||
} | ||
|
||
files { | ||
workflow: recursive_imports/recursive_imports.wdl | ||
imports: [ | ||
forkjoin/forkjoin.wdl, | ||
sub_workflow_hello_world/sub_workflow_hello_world.wdl, | ||
sub_workflow_hello_world/sub_workflow_hello_world_import.wdl, | ||
sub_workflow_interactions/sub_workflow_interactions_import.wdl, | ||
sub_workflow_interactions/sub_workflow_interactions.wdl | ||
] | ||
# Adds option to disable call-caching | ||
options: recursive_imports/recursive_imports_cost.options | ||
} | ||
|
||
metadata { | ||
workflowName: recursive_imports | ||
status: Succeeded | ||
} | ||
|
||
cost: [0.0035,0.0045] |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe overkill, but I also added a test to verify that the cost is 0 when a workflow is call-cached
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!