Conversation
Signed-off-by: Tomasz Janiszewski <tomek@redhat.com>
There was a problem hiding this comment.
Hey @janisz - I've reviewed your changes - here's some feedback:
- Extract the duplicate Wrapf logic in Unmarshal into a shared fallback helper (similar to Marshal) to reduce code duplication and ensure consistency.
- Standardize the error message templates and placeholder usage across both Marshal and Unmarshal wraps so failure logs are uniform and easy to search.
- Note that when the fallback succeeds, the original codec error is dropped—consider preserving or logging that initial error so the root cause isn’t lost.
Here's what I looked at during the review
- 🟡 General issues: 2 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
|
/retest |
|
Images are ready for the commit at 65a4828. To use with deploy scripts, first |
|
Tomek, show me this in action with some examples what it does, cause the expectations suggest that it may help a lot with debugging grpc problems as the few recent ones that we are handling. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
=======================================
Coverage 49.12% 49.13%
=======================================
Files 2563 2563
Lines 188228 188232 +4
=======================================
+ Hits 92476 92480 +4
Misses 88463 88463
Partials 7289 7289
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4 similar comments
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
=======================================
Coverage 49.12% 49.13%
=======================================
Files 2563 2563
Lines 188228 188232 +4
=======================================
+ Hits 92476 92480 +4
Misses 88463 88463
Partials 7289 7289
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
=======================================
Coverage 49.12% 49.13%
=======================================
Files 2563 2563
Lines 188228 188232 +4
=======================================
+ Hits 92476 92480 +4
Misses 88463 88463
Partials 7289 7289
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
=======================================
Coverage 49.12% 49.13%
=======================================
Files 2563 2563
Lines 188228 188232 +4
=======================================
+ Hits 92476 92480 +4
Misses 88463 88463
Partials 7289 7289
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
=======================================
Coverage 49.12% 49.13%
=======================================
Files 2563 2563
Lines 188228 188232 +4
=======================================
+ Hits 92476 92480 +4
Misses 88463 88463
Partials 7289 7289
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15283 +/- ##
==========================================
+ Coverage 49.12% 49.23% +0.10%
==========================================
Files 2563 2573 +10
Lines 188228 188858 +630
==========================================
+ Hits 92476 92992 +516
- Misses 88463 88546 +83
- Partials 7289 7320 +31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I have just tested that for you by using the image from this PR on Central and sending the garbled message using local-sensor. Central has panicked: |
I thought, I pasted entire log starting from a moment where everything was healthy until the end of the log. |
|
/retest |
Co-authored-by: Yann Brillouet <91869377+rhybrillou@users.noreply.github.com>
Description
This PR wrap errors that occured in grpc codec to get more information what failed exactly.
Testing
Automated testing
How I validated my change
CI