-
Notifications
You must be signed in to change notification settings - Fork 257
fix CSV unmarshaling error with custom unmarshaler with pretty errors #1138
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
fix CSV unmarshaling error with custom unmarshaler with pretty errors #1138
Conversation
f94e156
to
aec2c52
Compare
/hold until I get the utests sorted |
aec2c52
to
799e484
Compare
Codecov Report
@@ Coverage Diff @@
## master #1138 +/- ##
==========================================
+ Coverage 53.79% 53.81% +0.01%
==========================================
Files 108 108
Lines 10166 10195 +29
==========================================
+ Hits 5469 5486 +17
- Misses 3736 3741 +5
- Partials 961 968 +7
|
8a13bbb
to
c93d7b8
Compare
I sorted out the sequence, and maybe the multiple 'helper' functions aren't necessary, but it aided my investigation. It turns out that because there is only one named field in the struct, and it is a Now only a single utest is failing: I'm investigating, but here's the trace in case something jumps out to someone.
|
/unhold
Evidently this issue only exists on mac(??) and it runs cleanly on linux. Going to get this into review while I continue to investigate. |
/unapprove |
/remove-approve |
Turns out to be a bad docker install on my mac. :( |
c93d7b8
to
b7b447f
Compare
Signed-off-by: Jordan Keister <[email protected]>
b7b447f
to
05ca94c
Compare
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, everettraven 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 |
Ah @everettraven already approved |
…operator-framework#1138) Signed-off-by: Jordan Keister <[email protected]>
Description of the change:
Solves #1039 for bundle property rendering cases.
For bundles with invalid CSVs we would see unhelpful messages like
This change allows us to catch/format unmarshaling errors of the CSV to provide messages like the following, where there is a marker showing the error as well as more information about the nature of the error (shortened for legibility):
Motivation for the change:
Reviewer Checklist
/docs