-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[release] Allow release test to specify num_retries #57578
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -141,6 +141,10 @@ def get_step( | |||||
if smoke_test: | ||||||
cmd += ["--smoke-test"] | ||||||
|
||||||
num_retries = test.get("run", {}).get("num_retries") | ||||||
if num_retries: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The condition To correctly handle the case where
Suggested change
|
||||||
step["retry"]["automatic"][0]["limit"] = num_retries | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
|
||||||
step["plugins"][0][DOCKER_PLUGIN_KEY]["command"] = cmd | ||||||
|
||||||
env_to_use = test.get("env", DEFAULT_ENVIRONMENT) | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,6 +156,9 @@ | |
}, | ||
"artifact_path": { | ||
"type": "string" | ||
}, | ||
"num_retries": { | ||
"type": "integer" | ||
} | ||
}, | ||
"required": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ | |
|
||
run: | ||
timeout: 1800 | ||
num_retries: 3 | ||
script: python hello_world.py | ||
|
||
variations: | ||
|
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.
unit test?