-
Notifications
You must be signed in to change notification settings - Fork 208
Fix the bug that deployment timeout error was not handled #1376
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
Conversation
| } | ||
|
|
||
| // The stage was failed but not caused by the stop signal. | ||
| if result == model.StageStatus_STAGE_FAILURE && sigType == executor.StopSignalNone { |
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.
The original code was missing the handling of the timeout error.
| if !ok { | ||
| s.doneDeploymentStatus = model.DeploymentStatus_DEPLOYMENT_FAILURE | ||
| statusReason = fmt.Sprintf("Unable to find %q from the repository list in piped config", repoID) | ||
| statusReason = fmt.Sprintf("Repository %q is not found in the piped config", repoID) |
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.
nit, statusDesc or statusDescription or deploymentResultDescription(Desc) can be considered as a better name 🤔
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.
That name was already fixed/used in the proto so let me keep it as is.
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.
🙆♀️
|
Code coverage for golang is
|
|
|
||
| var ( | ||
| defaultDeploymentTimeout = time.Hour | ||
| defaultDeploymentTimeout = 6 * time.Hour |
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.
nit, do we have docs that related to this default value 👀
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 will be included while fixing #1373
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.
got it, thank you 👍
|
/lgtm |
nakabonne
left a comment
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.
👍
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: