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

vendor notifier outside of go-ipfs #1498

Closed
wants to merge 1 commit into from
Closed

Conversation

whyrusleeping
Copy link
Member

was tired of seeing this test fail in CI.

We also use this only in one place, maybe we should find a better way? (that doesnt randomly fail under load?)
License: MIT
Signed-off-by: Jeromy jeromyj@gmail.com

@whyrusleeping whyrusleeping added the status/in-progress In progress label Jul 19, 2015
@jbenet
Copy link
Member

jbenet commented Jul 19, 2015

@whyrusleeping other stuff uses the notifier. i think it doesnt import it because it just matches the interface? (or something like that).

maybe we should find a better way? (that doesnt randomly fail under load?)

i think we just need to fix that test to not be time based. better mocking. i'm at fault for all the time-based tests.

@jbenet
Copy link
Member

jbenet commented Jul 19, 2015

it all has to do with the first part: https://travis-ci.org/ipfs/go-ipfs/jobs/71693808#L202 -- that's the problem.

@whyrusleeping
Copy link
Member Author

@jbenet so do you think we need to try and fix the tests? and not vendor them externally?

@jbenet
Copy link
Member

jbenet commented Jul 19, 2015

  • i'm +1 on external vendoring.
  • but i'm also +1 on fixing the test.

@jbenet
Copy link
Member

jbenet commented Jul 22, 2015

update here? in light of other PR?

@whyrusleeping
Copy link
Member Author

@jbenet sorry, been distracted from this one. can take a look at fixing these tests.

@rht
Copy link
Contributor

rht commented Aug 28, 2015

Or make it less frequent.

On a spare server, run:

cd $GOPATH/src/github.com/ipfs/go-ipfs/p2p/net/swarm
while true; do go test; sleep .5; done  

And characterize the mean of the fail frequency, then adjust https://github.com/ipfs/go-ipfs/blob/master/p2p/net/swarm/swarm_dial.go#L50 so that it will happen less frequently.

@rht rht force-pushed the vendor/notifier branch from 6afe9e8 to 9182689 Compare August 30, 2015 02:48
@rht rht mentioned this pull request Aug 30, 2015

Verified

This commit was signed with the committer’s verified signature.
4yman-0 4yman
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
@whyrusleeping
Copy link
Member Author

closing, old PR cleanup time.

@jbenet jbenet removed the status/in-progress In progress label Oct 18, 2015
@Kubuxu Kubuxu deleted the vendor/notifier branch February 27, 2017 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants