Skip to content
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

Expanding nodes domain tests #655

Merged
merged 3 commits into from
Jan 19, 2024
Merged

Conversation

tegefaulkes
Copy link
Contributor

@tegefaulkes tegefaulkes commented Dec 14, 2023

Description

This expands the nodes domain testing that was skipped during the nodes refactoring rush.

Issues Fixed

Tasks

  • 1. findNode operations handle offline nodes/connection failures. Make sure that a single failing connection wont take up the full timeout of the process.
  • 2. Network entry with syncNodeGraph, connects to 2 seed nodes and check we discover all active nodes in the network. Include active connection and direct connection links.
  • 3. network entry with syncNodegraph handles offline nodes - just checking if we can handle offline nodes for the initial connections. The other connections are done by findNode. Also check that including our own NodeId in the initial connections list wont break.
  • 4. refresh buckets - simple test, check that a scheduled refreshBucket triggers a findNode operation within that bucket. Not really worth the test.
  • 5. checking NodeGraph updates when a connection is made.
  • 6. test MDNS functionality. On that note, we need a way to disable it for testing so it doesn't break the findNode tests. Maybe just mock it out for most tests.
  • 7. bunch of tests for adding new nodes and the background pinging tasks.
  • 8. tests for signalling non-blocking and rate limiting logic.

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@tegefaulkes tegefaulkes self-assigned this Dec 14, 2023
@ghost
Copy link

ghost commented Dec 14, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@tegefaulkes tegefaulkes marked this pull request as draft December 14, 2023 05:27
@tegefaulkes
Copy link
Contributor Author

I did some exploring in one of the tests. The EventTarget leak is likely inside of the QUIC code. I'll have to have a look around in there.

@tegefaulkes tegefaulkes marked this pull request as ready for review January 19, 2024 02:26
@tegefaulkes tegefaulkes merged commit 8ef4dca into staging Jan 19, 2024
@CMCDragonkai
Copy link
Member

I did some exploring in one of the tests. The EventTarget leak is likely inside of the QUIC code. I'll have to have a look around in there.

Can you expand? A bug issue in js-quic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Complete NodeManager tests from decentralised nodes refactor
2 participants