-
Notifications
You must be signed in to change notification settings - Fork 107
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
add(test): test disabled lightwalletd
mempool gRPCs via zebrad logs
#5016
Conversation
If you want to run this test locally, I'm using: export TMPDIR=/home/dev/.cache/zebra-tmp
export ZEBRA_CACHED_STATE_DIR=/home/dev/.cache/zebra-custom
export LIGHTWALLETD_DATA_DIR=/home/dev/.cache/lightwalletd-custom
export RUST_LOG=info
cargo test --release \
--test acceptance \
--features lightwalletd-grpc-tests \
-- \
--nocapture --include-ignored \
sending_transactions_using_lightwalletd |
That's weird, it looks like all the commits didn't get pushed to this PR. It compiled locally, I'll try to find them. |
the command provided to run locally has 2 improvements that i was not using on my testing which are:
I think we should consider adding this to https://github.com/ZcashFoundation/zebra/blob/main/zebrad/tests/acceptance.rs#L96 but we can do that later. |
It build locally as it is, it seems the problem is in the clippy. |
I was running this test locally and it crashed after 2 hours, i think i might be too far away from the tip as it tried to sync and timed out:
|
I added this in this PR.
In ticket #4955 we're going to rename these tests, which would also be a good time to update those docs to use
I made all the sync timeouts the same in this PR, so that should fix it. |
Codecov Report
@@ Coverage Diff @@
## main #5016 +/- ##
==========================================
- Coverage 79.27% 79.09% -0.18%
==========================================
Files 310 310
Lines 38907 38990 +83
==========================================
- Hits 30843 30841 -2
- Misses 8064 8149 +85 |
I can't understand the CI error pointing to a file that does not exist: https://github.com/ZcashFoundation/zebra/runs/8173468346?check_suite_focus=true#step:13:654 I tried this PR locally and everything build and pass, new test passing. |
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 really good, thank you for wrapping all this up. It costed me a lot to figure out what was going on here.
It happened because two PRs changed the rpc config at the same time, so I needed to resolve the merge conflict in this PR. Until the merge conflict was resolved, GitHub was building the code from the original PR, or maybe building some kind of half-merged branch. |
8aff9f4
to
61ad23f
Compare
Co-authored-by: Alfredo Garcia <[email protected]>
Co-authored-by: Alfredo Garcia <[email protected]>
This is #5069:
https://github.com/ZcashFoundation/zebra/runs/8181572127?check_suite_focus=true#step:6:105 |
61ad23f
to
d1f8b32
Compare
I fixed a test bug by adding transactions to the send transactions list, rather than replacing the whole list with each new block. |
d1f8b32
to
225e6ee
Compare
Oops, I forgot to push the latest fixes here. |
The beta Rust test failed, I opened PR #5090 to disable it. We can merge this PR anyway, that test isn't required. |
Motivation
We want to test the
lightwalletd
mempool gRPC queries, but they are currently disabled.Designs
Call the gRPC tests, but expect no results.
Check that
lightwalletd
is querying Zebra for the mempool transactions via thezebrad
logs.Solution
zebrad
log checks to the send transaction testzebrad
JSON-RPC logs instead of disabledlightwalletd
gRPCsExtra logging:
Related fixes:
Closes #4350
Review
@oxarbitrage is probably the best person to review this test, it uses a bunch of his code from PR #4989.
Reviewer Checklist
Follow Up Work
If we're going to make more changes to the send transaction test, we might want to: