-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix(3226): refactor verify method to throw an error when pod is in the unknown waiting state #199
base: master
Are you sure you want to change the base?
Conversation
|
||
waitingReason = hoek.reach(p, CONTAINER_WAITING_REASON_PATH); | ||
if (status === 'running' || status === 'succeeded') { |
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.
message value is set but will never be used
|
||
// data is not undefined when desired status or waitingReason met | ||
// hence no error needs to be thrown | ||
if (data !== undefined) { |
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.
we want to fix this inconsistent return from the function, consider returning an obj with message and verify status and use it in worker to decide retry plus log the message
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.
needs some rework
Context
_verify
method fails to provide proper error handling during a situation when the pod is not in a running condition hence missing the retry mechanism and causing the build stuck in a dangling situation.Objective
_verify
method refactoring to throw an error if the pod is not running or succeeded, enabling a retry mechanism, i.e. when pod is initializing or in a state of waiting.References
screwdriver-cd/screwdriver#3226
License
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.