-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
No style for logs delimiter output #17734
Conversation
Hi @pnasrat. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
Note the original code using minikube/pkg/minikube/style/style.go Line 62 in c56894f
The minikube/pkg/minikube/style/style.go Line 153 in c56894f
|
Stepping through this I am also wondering if the style output code needs to handle style.Empty without the low bullet explicitly as looking at it, it accesses the style config map (edited) minikube/pkg/minikube/out/out_style.go Line 37 in c56894f
s, ok := style.Config[st]
if !s.OmitNewline {
format += "\n"
}
// Similar to CSS styles, if no style matches, output an unformatted string.
if !ok || JSON {
return format, s.Spinner
} |
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.
thank you for this PR @pnasrat would u mind pasting before after this PR output
@medyagh so checking a bit further it might be happening when redirecting the output of minikube/pkg/minikube/out/out_style.go Line 47 in f386f3f
However based upon downloading multiple users logs from issues from users this is definitely getting in the uploaded logs. But the below gist is is a diff of running minikube logs with and with out this at these versions and redirecting the output
https://gist.github.com/pnasrat/b1482a82d01c4b34e1ecd12f895b096f |
Full logs for comparison: |
/ok-to-test |
kvm2 driver with docker runtime
Times for minikube start: 50.4s 53.5s 51.7s 50.1s 49.5s Times for minikube ingress: 23.7s 29.3s 28.2s 28.7s 27.2s docker driver with docker runtime
Times for minikube start: 21.5s 23.0s 25.0s 22.2s 25.1s Times for minikube ingress: 22.8s 18.3s 20.4s 21.8s 19.8s docker driver with containerd runtime
Times for minikube start: 21.4s 21.7s 23.3s 24.3s 20.6s Times for minikube ingress: 31.3s 31.3s 18.4s 31.3s 47.3s |
These are the flake rates of all failed tests.
To see the flake rates of all tests by environment, click here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pnasrat, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Use None style for
minikube logs
outputThis change makes the logs output compatible with
tail(1)
removing leading*
Fixes #17733
Tested using go run and inspecting logs output.