-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added log message for API call failures #7834
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
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
Codecov Report
@@ Coverage Diff @@
## main #7834 +/- ##
==========================================
- Coverage 32.93% 32.93% -0.01%
==========================================
Files 239 239
Lines 22510 22514 +4
==========================================
+ Hits 7413 7414 +1
- Misses 14336 14338 +2
- Partials 761 762 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@chipzoller why do some CI tests keep on failing? |
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.
/lgtm
@JimBugwadia - please take a look.
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.
Added a comment on the log syntax - please check.
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
/cherry-pick release-1.10 |
Congratulations! 🎉Great job merging your first Pull Request here! How awesome! If you are new to this project, feel free to join our Slack community |
Cherry-pick failed with |
I cannot do that, checkout to release-1.10 banch from my local terminal throws this error.
What am I doing wrong? |
Yes I think few more instructions can be added. Will open a PR once done here. |
Hey @realshuting I tried to follow above link yet I'm unable to do it. I did
Am I supposed to create a branch named |
Seems like you don't have remote upstream repo added, can you follow this post? |
That worked! Thanks @realshuting. Ok so the problem with cherry-pick is this: In main branch:
In release-1.10 branch:
Someone renamed rclientFactory to rclient and it's causing conflicts while cherry-pick. Should I rename rclientFactory in my original PR as well? How to solve this conflict?
|
Made a PR related to this: https://github.com/kyverno/kyverno/pull/7872/files |
You need to keep it as the same name on release-1.10 branch |
* Added error message to deferred loader on API call failure Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> * Small change in error message Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> --------- Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Chip Zoller <chipzoller@gmail.com> Co-authored-by: shuting <shuting@nirmata.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com> Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
@realshuting Made a PR on release-1.10 branch. #7880 |
* Added error message to deferred loader on API call failure * Small change in error message --------- Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
* Added error message to deferred loader on API call failure Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> * Small change in error message Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> --------- Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com> Co-authored-by: Chip Zoller <chipzoller@gmail.com> Co-authored-by: shuting <shuting@nirmata.com> Co-authored-by: Jim Bugwadia <jim@nirmata.com>
Explanation
There were no log messages for API call failures. dl.logger.Error(err, "failed to load data: ") now prints the error along with log message.
Related issue
Closes #7734
Closes #4774
Milestone of this PR
/milestone 1.10.2
What type of PR is this
Proposed Changes
Proof Manifests
Checklist
Further Comments
This is the same PR #7792. Had to close that. Changes are exactly the same as before