-
Notifications
You must be signed in to change notification settings - Fork 298
test(ping): add interface-core-api ping tests and fix impl #768
Conversation
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.
CI is failing.
|
Looking into it. I found #770 which I think is causing a lot of flake. My current plan is to wait until the nodes are connected in the |
Good catch @alanshaw 👏🏽 There is still a race condition on the pubsub test
|
I've been working on that. I've been experimenting and have changed the The only way I can get this to work is to add an artificial timeout. I don't know enough go to figure out if there's some sort of delay when a connection is dropped before a subscription is unsubscribed. It could be that, or just that go simply doesn't find out about the dropped connection before the call to I don't know if this is also a problem when talking to a js-ipfs daemon via the api. I will check. |
Just to follow up, it appears that js-ipfs doesn't need the artificial timeout so it's leaning towards a go-ipfs issue right now. |
@alanshaw seems you submitted multiple small PR that all fix a few of the flakyness on tests. Do you want to go and create a master PR to test all of them together? |
I was going to get the small ones merged and then rebase this - hope thats ok 😛 |
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
package.json
Outdated
"chai": "^4.1.2", | ||
"cross-env": "^5.1.5", | ||
"dirty-chai": "^2.0.1", | ||
"eslint-plugin-react": "^7.8.1", | ||
"go-ipfs-dep": "^0.4.14", | ||
"go-ipfs-dep": "~0.4.14", |
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 can now update this to 0.4.15 and also update ipfsd-ctl :)
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
@diasdavid I think this is looking good to go now. Tests are passing on macOS and linux more reliably than before. Windows tests are consistently failing. I tracked that back to this commit where you upgraded go-ipfs to 0.4.14. I've branched off this branch and reverted to go-ipfs-dep@0.4.13 and whilst the tests still fail, the swarm connectivity issues are gone (and the failing tests all look like things we changed since 0.4.14). You can inspect the CI logs for that experiment here. I think this might be a regression in go-ipfs... |
@Stebalien see comment above #768 (comment) |
@alanshaw mind reporting that as a potential bug to go-ipfs? Also, can you report as a bug the situation where a ipfs.pubsub.unsubscribe followed by an ipfs.pubsub.ls will not present an up to date list of subscriptions (race condition)? //cc @Stebalien |
Will do |
Long time coming but issue for swarm connectivity issues: ipfs/kubo#5146 |
depends on: ipfs-inactive/interface-js-ipfs-core#273
closes #762