libp2p / libp2p/go-libp2p

More Thorough Autorelay Tests

Open
#528 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

need/analysis need/review topic/filecoin
Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

The filecoin project uses the autorelay and autoNAT features and is aware that it is not trivial to set up tests for these things. The existing autorelay test is reassuring to have. To further improve confidence in the reliability of this feature we would love enhancements to the current autorelay tests. This includes deflaking as well as adding more extensive tests of the features, ideally tests using more realistic networks with less mocking.

cc @phritz -- call out anything I'm missing.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with p2p/host/relay/autorelay_test.go, especially the existing test around line 135, and review issue #477 for the deflaking context. Identify the current test gaps and how realistic network setups could replace some mocking; done means the autorelay tests cover the agreed scenarios reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.