-
Notifications
You must be signed in to change notification settings - Fork 359
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-146] Emit VM cost for GCP Batch #7582
Conversation
.../batch/src/main/scala/cromwell/backend/google/batch/actors/BatchPollResultMonitorActor.scala
Show resolved
Hide resolved
putting it back in draft while I supply the vmInfo |
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.
This is awesome, nice job diving into a new area and not making a mess 😄
The unit tests look great, was this also manually tested end-to-end? That is, can we run a Batch workflow and get a correct-looking response from the /cost
API endpoint?
|
||
val allocationPolicy = AllocationPolicy | ||
.newBuilder() | ||
.setLocation(LocationPolicy.newBuilder().addAllowedLocations("regions/us-central1")) |
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 think it would be useful to have some tests checking how we handle unexpected location values - I'm nervous any time we're depending on Google not to change the way they generate a string.
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.
yeahhh makes sense, I can add another
...ch/src/test/scala/cromwell/backend/google/batch/actors/BatchPollResultMonitorActorSpec.scala
Show resolved
Hide resolved
@@ -627,7 +628,8 @@ object Dependencies { | |||
"org.scalatest" %% "scalatest" % scalatestV, | |||
// Use mockito Java DSL directly instead of the numerous and often hard to keep updated Scala DSLs. | |||
// See also scaladoc in common.mock.MockSugar and that trait's various usages. | |||
"org.mockito" % "mockito-core" % mockitoV | |||
"org.mockito" % "mockito-core" % mockitoV, | |||
"org.mockito" % "mockito-inline" % mockitoInlineV |
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.
necessary in order to mock a final method in the gcp BatchServiceClient
.../batch/src/main/scala/cromwell/backend/google/batch/actors/BatchPollResultMonitorActor.scala
Outdated
Show resolved
Hide resolved
Approved pending test fixes and (probably?) removal of that log message. |
e3c77f6
to
b4e437b
Compare
undo accidental delete fix another fix formatting remove extra log
757ffae
to
3134ed3
Compare
This reverts commit 33cb56b.
Description
AN-146
Adds
BatchPollResultMonitorActor.extractVmInfoFromRunState
so that the /cost endpoint functions correctly for workflows run on GCP BatchRelease Notes Confirmation
CHANGELOG.md
CHANGELOG.md
in this PRCHANGELOG.md
because it doesn't impact community usersTerra Release Notes