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

TestIDService is flaky #944

Closed
aarshkshah1992 opened this issue May 20, 2020 · 2 comments
Closed

TestIDService is flaky #944

aarshkshah1992 opened this issue May 20, 2020 · 2 comments
Assignees
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@aarshkshah1992
Copy link
Contributor

@Stebalien

Tackling this with priority:

https://travis-ci.com/github/libp2p/go-libp2p/builds/167056100.

@aarshkshah1992 aarshkshah1992 added the kind/bug A bug in existing code (including security flaws) label May 20, 2020
@aarshkshah1992 aarshkshah1992 self-assigned this May 20, 2020
@aarshkshah1992
Copy link
Contributor Author

aarshkshah1992 commented May 20, 2020

It's really hard to reproduce the flakiness:

aarshshah@Aarshs-MacBook-Pro identify % go test -race -count=50 -run TestIDService
PASS
ok  	github.com/libp2p/go-libp2p/p2p/protocol/identify	380.844s

But, my suspicion is that it could happen if the subscriber was created after the event was emitted. This could happen if the Connected notification triggers/finishes an Identify before the subscriber is created.

We should create the EvtPeerIdentificationCompleted subscriber before we connect to the other peer.

Creating a patch for this and closing this. Let's re-open if we see this again.

@vyzo
Copy link
Contributor

vyzo commented May 20, 2020

travis is very slow and may be running with a single processor.
We have no end in grief in the pubsub tests, which are by necessity timing dependent :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

2 participants