-
Notifications
You must be signed in to change notification settings - Fork 106
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(scan): Refactor scanning tests #8047
Conversation
24cbc97
to
cce3fbb
Compare
cce3fbb
to
408cb72
Compare
I think CI on this PR was impacted by the self-hosted runner changes, so I'm going to cancel and restart those jobs. |
Re-running failed jobs didn't work, I'm now trying re-running all jobs in the hung workflow. Next step is to make a code change or update from |
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.
Thanks, looks great. Just a minor comment about Default
and consensus-critical code.
Rationale --------- We avoid implementing `Default` on consensus-critical types because it's easy to miss an incorrect use in a review. It's easy to hide a `default()` in a call like `unwrap_or_default()` or even more subtle methods.
We appear to be having issues with runners again, pinging @gustavovalverde |
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.
Thanks for the fix!
There was a merge conflict that required manual resolution. |
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.
Thanks!
Motivation
Address #7994 (comment).
This PR creates fake blocks in Zebra's format that are worth scanning and adjusts existing tests. We can also leverage this functionality in further tests. I expect we'll need to refine the API for fake blocks later on when we need more complicated tests.
PR Author Checklist
Check before marking the PR as ready for review:
Solution
fake_compact_block
function to create fake compact blocks.Reviewer Checklist
Check before approving the PR:
PR blockers can be dealt with in new tickets or PRs.
And check the PR Author checklist is complete.