-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add pod initialization logic in diag and follow up some minor reporting changes. #4690
add pod initialization logic in diag and follow up some minor reporting changes. #4690
Conversation
0093f05
to
f32f508
Compare
f32f508
to
f8a59a8
Compare
406e4a1
to
e6011e3
Compare
Codecov Report
@@ Coverage Diff @@
## master #4690 +/- ##
==========================================
- Coverage 73.45% 73.37% -0.08%
==========================================
Files 343 344 +1
Lines 13585 13624 +39
==========================================
+ Hits 9979 9997 +18
- Misses 2982 3003 +21
Partials 624 624
Continue to review full report at Codecov.
|
The codecov is low because i added interface and structs. |
Co-authored-by: Nick Kubala <[email protected]>
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.
cool, this is definitely an improvement on the UX. i'd still like to see some sort of visual update here (e.g. scrolling periods) but we can investigate 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 don't much like that we have STATUSCHECK_CONTEXT_CANCELED — that's an internal detail that shouldn't get reported upward.
pkg/skaffold/deploy/status_check.go
Outdated
}(d) | ||
} | ||
|
||
// Retrieve pending deployments statuses | ||
go func() { | ||
printDeploymentStatus(ctx, out, deployments, deadline) | ||
s.printDeploymentStatus(sCtx, out, deployments) |
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.
Since this doesn't add to the WaitGroup, it's possible this code is called after sCtx
has been cancelled.
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.
no it should not happen. This WaitGroup is way to wait for all the pollDeployments to finish
There won't be go routine leak by not adding to wait group. Having printDeploymentStatus
run in child context of parent should gaurantee this will get cancelled.
(oops wrong PR on the |
Fixes #4668, #4670
Description: In this PR,
Functionality Changes
All the pending deployments are going to fail and hence
[x/total deployment(s) still pending]
add to noise.to
a. Change default polling time from 100 ms to 1 second.
Pros:
Cons:
This is not noticable for skaffold CLI UI, but if users are relying on event API to fail fast, they will see a lag.
TODO : Create an issue to document StatusCheck lags/SLO on skaffold.dev.
b. Change default report time if new changes from 500 milliseconds to 5 seconds.
Implementation changes
diag
package whenPodInitializing
phase and logs for any running init containers.diag
package can check if there is a resource congestion and report it.New output:
Event API
Note:
STATUSCHECK_POD_INITIALIZING
has a message which is not empty.Note: The Entry for the event has an explanation instead of string "Resource pod/nodejs-guestbook-backend-65cdf8b7fc-cn6sp status failed with " in original issue