-
Notifications
You must be signed in to change notification settings - Fork 37
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
feat(jellyfish-api-core): add network getPeerInfo RPC #938
Conversation
Code Climate has analyzed commit 2649d77 and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #938 +/- ##
==========================================
+ Coverage 94.52% 95.07% +0.55%
==========================================
Files 155 158 +3
Lines 4763 4834 +71
Branches 613 634 +21
==========================================
+ Hits 4502 4596 +94
+ Misses 261 230 -31
- Partials 0 8 +8
Continue to review full report at Codecov.
|
We also moved to "Semantic" style PR title instead of Chat Ops via This means your PR title should be |
- Account for undefined values - Perform key=>value pair checking in 1 schema test instead of 2 (is sort of redundant).
✔️ Deploy Preview for jellyfish-defi ready! 🔨 Explore the source changes: e95cbd0 🔍 Inspect the deploy log: https://app.netlify.com/sites/jellyfish-defi/deploys/61e504f92175ae00073380b2 😎 Browse the preview: https://deploy-preview-938--jellyfish-defi.netlify.app |
Add optional keys
Matching the other tests in the net package.
Forgot to loop through the newly retrieved list of peers avoiding a second call for peers in the same test.
Currently experiencing some difficulty properly getting stable unit tests passing. During testing I am failing to consistently being able to retrieve a list of peers from the test container. While digging through the various test container I found that an approach @chee-chyuan used performs an Here is some links to logic on group container: Here its starting the containers and running the Here I am noting line 72 which performs a require network function and then performing an In this PR I am using the After digging through the various test containers I didn't see a clean way or reason for why this inconsistency occurs so will need an assist at troubleshooting this specific case. |
packages/jellyfish-api-core/__tests__/category/net/getPeerInfo.test.ts
Outdated
Show resolved
Hide resolved
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.
general wise.. good for me
ohh.. seems some issue here
packages/jellyfish-api-core/__tests__/category/net/getPeerInfo.test.ts
Outdated
Show resolved
Hide resolved
packages/jellyfish-api-core/__tests__/category/net/getPeerInfo.test.ts
Outdated
Show resolved
Hide resolved
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.
You should optimize your test for ease of review rather than ease of implementation.
packages/jellyfish-api-core/__tests__/category/net/getPeerInfo.test.ts
Outdated
Show resolved
Hide resolved
@kodemon await tGroup.waitForSync() at |
@canonbrother am I correct in assuming we want to perform a wait for sync operation after each generate call, or is specifically only at this particular line? |
like this
after sync bob will have same data with alice |
Thanks, makes sense, in this case |
What this PR does / why we need it:
/kind feature
Which issue(s) does this PR fixes?:
Added getPeerInfo rpc as part of ongoing #48