-
Notifications
You must be signed in to change notification settings - Fork 102
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
tests(scanner): Move zebra scanner tests to binary #8659
Conversation
Does this PR also cover #8593 ? |
01fdf97
to
23f72e9
Compare
Yes, this PR will close that issue. I added that to the description. I am rebasing now. |
4e6c269
to
a3ec2d7
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.
This looks good!
We should uncomment the scan-start-where-left-test
CI job in this PR too (it was commented out here)
I'm not sure how reliable it is to define a CARGO_BIN_EXE_zebrad
env var outside the build process. If it's not very reliable, I'd suggest adding a .scanner
binary in zebrad
as well and moving the tests here that rely on the zebrad
binary back to the zebrad acceptance tests (it's nicer to have these tests here but it seems much more difficult to add a zebrad
binary in zebra-scan
)
Update: It seems very easy to add a zebrad
binary to zebra-scan
, I would suggest doing that instead if it's valuable to have the CARGO_BIN_EXE_zebrad
environment variable .
…scan, adds a short sleep before trying to connect to gRPC server in test
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.
@oxarbitrage The shielded-scan
feature was partially removed from zebrad
, but there are still some uses of it causing test failures.
Ok, ill check that out. Thanks. |
Update: Need more work related to moving this test https://github.com/ZcashFoundation/zebra/blob/main/zebrad/tests/common/shielded_scan/scan_task_commands.rs out of zebrad. I am still working on it, changing the PR to draft until that is sorted. |
…anning tests in CI
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 looks good!
Motivation
We moved the scanner into a new binary in #8608 . We also removed the scanner functionality from zebrad and commented out tests in #8594
Now is time to get the tests we commented out back, in the context of the new binary.
Close #8593
Part of #8585
Solution
Add tests to zebra scanner binary.
Follow-up Work
TrustedChainSync
functionality introduced in change(rpc): Adds a TrustedChainSync struct for keeping up with Zebra's non-finalized best chain from a separate process #8596 to finish with the scanner tests coverage and complete Testing the newzebra-scanner
binary #8585PR Author's Checklist
PR Reviewer's Checklist