You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KRR computes recommendation for lots of Kubernetes objects, but if just one errors out no results are printed #301
Describe the bug
KRR computes recommendations for lots of Kubernetes objects but if just one errors out, no useful results are printed.
To Reproduce
Steps to reproduce the behavior:
Have an unstable Prometheus cluster
Run krr simple
Observe that even though lots of INFO Calculated recommendations for ... lines are printed, if one object errors out, none of these recommendations are printed, only the error/traceback is printed.
Expected behavior
A partial result is printed with the recommendations of the objects for which KRR was able to compute, and a list of errors for the objects that had errors.
Are you interested in contributing a fix for this?
Yes!!
Desktop (please complete the following information):
OS: MacBook-Pro 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030 arm64
Strongly in favor of a fix! It would be best to do it on top of the prometheus-workload-loader branch as that has some major changes that will be merged soon.
Activity
aantn commentedon Jun 20, 2024
Strongly in favor of a fix! It would be best to do it on top of the prometheus-workload-loader branch as that has some major changes that will be merged soon.
We would love to receive a PR for this.
Fixes #301
aantn commentedon Jun 28, 2024
Hey, I had an easy test case for this so I fixed it myself. Please test and confirm that this works.
aantn commentedon Jun 28, 2024
Note that the fix isn't merged yet - it is on #307
matheuscscp commentedon Jun 28, 2024
@aantn it works for me! thanks for this fix!!!
aantn commentedon Jun 28, 2024
Wonderful, happy to hear it!
Prevent single errors from failing scan (#307)