-
Notifications
You must be signed in to change notification settings - Fork 17
Fix error messages to dereference pointer values and explicitly show NULL #603
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: CodeLieutenant <33778979+CodeLieutenant@users.noreply.github.com>
Co-authored-by: CodeLieutenant <33778979+CodeLieutenant@users.noreply.github.com>
Co-authored-by: CodeLieutenant <33778979+CodeLieutenant@users.noreply.github.com>
|
@copilot look like we have double check for nil, if value == nil, and later then in each switch case, do we need that? |
Both checks are needed because they handle different nil cases:
Example:
Both produce the same output (empty value) but handle different nil scenarios. We could remove the first check, but then untyped nil would print "key=<nil>" via the default case instead of "key=". |
Co-authored-by: CodeLieutenant <33778979+CodeLieutenant@users.noreply.github.com>
|
Copilot it really bad at writing commit messages, I'll amend these commits |
Yes, but we never gave it any instructions on what we expect in a good commit message. |
Error messages were printing pointer addresses like
pk0=(*float64)(0xc00b7ba650)instead of actual values, making it impossible to correlate failures with statement logs.Changes
Refactored
formatRowsto handle pointer dereferencing via type switch%#vto%vAdded test coverage for pointer value formatting
Example
Before:
After:
For null values:
Original prompt
<issue_description>In error message we can see:
which is not showing values which can't be matched to statements log.
https://argus.scylladb.com/tests/scylla-cluster-tests/de5fd192-0c22-4199-96d5-f66a29401d2c/events
gemini 2.2.2</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.