-
Notifications
You must be signed in to change notification settings - Fork 361
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
WX-1625 Quota retry #7439
Merged
Merged
WX-1625 Quota retry #7439
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
83e702b
Stuff I know I want
aednichols 12f7a07
I want that too
aednichols 4560c1c
Naming
aednichols 74210d8
Finish rename
aednichols 5e0bf4f
Fix existing tests
aednichols b99bf2c
New test
aednichols f51dca4
This is a job for another day
aednichols eb9e50d
Integration test
aednichols ee80093
`scalafmtAll`
aednichols 381a6b5
Re-use previous low quota region
aednichols c6817f3
Fix tests
aednichols 91241e6
Not sure I agree with `scalafmtAll` here, but OK
aednichols cb55d19
Merge branch 'develop' into aen_wx_1625_part2
aednichols 4730e98
Grammar fix
aednichols 95ab655
Merge remote-tracking branch 'origin/aen_wx_1625_part2' into aen_wx_1…
aednichols 716b4e9
Grammar fix
aednichols 0ecc2cf
Remove irrelevant key from GCP Batch
aednichols 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
21 changes: 21 additions & 0 deletions
21
centaur/src/main/resources/standardTestCases/quota_fail_retry.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,21 @@ | ||
name: quota_fail_retry | ||
testFormat: workflowfailure | ||
backends: [Papiv2] | ||
|
||
files { | ||
workflow: quota_fail_retry/quota_fail_retry.wdl | ||
} | ||
|
||
# Adapted from `preemptible_and_memory_retry.test`. | ||
# I set `broad-dsde-cromwell-dev` to have super low CPU quota in `us-west3` (Salt Lake City) for this test | ||
# This functionality is pretty married to PAPI, it doesn't run on `GCPBatch` backend. | ||
|
||
metadata { | ||
workflowName: sleepy_sleep | ||
status: Failed | ||
"failures.0.message": "Workflow failed" | ||
"failures.0.causedBy.0.message": "Task sleepy_sleep.sleep:NA:3 failed. The job was stopped before the command finished. PAPI error code 9. Could not start instance custom-12-11264 due to insufficient quota. Cromwell retries exhausted, task failed. Backend info: Execution failed: allocating: selecting resources: selecting region and zone: no available zones: us-west3: 12 CPUS (10/10 available) quota too low" | ||
"sleepy_sleep.sleep.-1.1.executionStatus": "RetryableFailure" | ||
"sleepy_sleep.sleep.-1.2.executionStatus": "RetryableFailure" | ||
"sleepy_sleep.sleep.-1.3.executionStatus": "Failed" | ||
} |
36 changes: 36 additions & 0 deletions
36
centaur/src/main/resources/standardTestCases/quota_fail_retry/quota_fail_retry.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,36 @@ | ||
version 1.0 | ||
|
||
workflow sleepy_sleep { | ||
|
||
input { | ||
Int sleep_seconds = 180 | ||
} | ||
|
||
call sleep { | ||
input: sleep_seconds = sleep_seconds | ||
} | ||
|
||
} | ||
|
||
task sleep { | ||
|
||
input { | ||
Int sleep_seconds | ||
} | ||
|
||
meta { | ||
volatile: true | ||
} | ||
|
||
# I set `broad-dsde-cromwell-dev` to have super low CPU quota in `us-west3` (Salt Lake City) for this test | ||
runtime { | ||
cpu: 12 | ||
docker: "ubuntu:latest" | ||
zones: "us-west3-a us-west3-b us-west3-c" | ||
} | ||
|
||
command <<< | ||
sleep ~{sleep_seconds}; | ||
ls -la | ||
>>> | ||
} |
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
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.
I had previously done the same thing for
us-west3
when designingAwaitingCloudQuota