-
Notifications
You must be signed in to change notification settings - Fork 111
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
change: Improve CommitBlockError message by including underlying error message #6236
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6236 +/- ##
==========================================
+ Coverage 77.83% 77.94% +0.10%
==========================================
Files 304 304
Lines 39349 39349
==========================================
+ Hits 30626 30669 +43
+ Misses 8723 8680 -43 |
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.
This PR looks good, thank you.
Edit: I moved my question into the conversation below.
Hey, thank you for the contribution. Can you show us how were you able to see that |
@Mergifyio update |
❌ Base branch update has failedrefusing to allow a GitHub App to create or update workflow |
We don't usually test log messages, because they aren't part of Zebra's supported functionality. (We only use them in acceptance tests to see that the node has done the thing we actually want to test.) |
here is how this fix is used in my branch: https://github.com/dimxy/zebra/blob/0a5eaa4e9d59cdaa3a937d116ed0e6aa4b5a8b76/zebra-state/src/service/check/tests/komodo_nn.rs#L193:
Command to run: |
Are you trying to track down this bug? |
Note for the Zebra developers: we'll need to re-push this PR to our repository to get the Google Cloud tests to run, because the secrets are only available to developers with write access. |
No, we are just playing with our project's params (coinbase maturity for testnet) |
I re-pushed the branch from this PR to the Zebra repo here https://github.com/ZcashFoundation/zebra/tree/fix-commit-block-error-msg, but I don't know what to do next since I can't change the source branch of this PR. |
I opened a PR at #6251, anyone can approve it. Because the PR is from a branch in our repository, it has access to our GitHub secrets for CI. We want to fix this eventually in #4529. |
I'll need to close this PR to get Mergify to check the other PR, but we are going to merge it! |
|
Motivation
Improve logging of CommitBlockError logged with the default Display method by extending with the underlying ValidateContextError message.
For example, before this fix a CommitBlockError with a ValidateContextError::Orphaned error would be printed as:
with this fix:
fixes #6218