-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: sharness - add t0040-add-and-cat.sh failing tests #522
Conversation
|
This is because it is used by test_init_ipfs() which is in test-lib.sh and most scripts use this function to initialize an ipfs repo. |
@chriscool great news, the bootstrap command was completed -- #669 --, we can now move forward with this. Can you rebase and try these again? |
b3f005a
to
175217c
Compare
@chriscool what's missing here today? |
Hi @diasdavid !
So it is looking for pollEndpoint which is a go helper program. See: https://github.com/ipfs/go-ipfs/tree/master/thirdparty/pollEndpoint I don't know if it is ok to add pollEndpoint as is or if it should be rewritten in js or maybe replaced with something else. |
175217c
to
be00164
Compare
I just pushed a branch rebased on top of master if someone wants to take a look. |
No prob @chriscool, it seems that pollEndpoint is just checking if the daemon is still running by checking its version -- https://github.com/ipfs/go-ipfs/search?utf8=%E2%9C%93&q=pollEndpoint&type= --. Can we skip that check? If not, you should be able to use go pollEndpoint, the http api is implemented in the same way. |
@diasdavid pollEndpoint contains:
So it requires a number of go packages and I am not sure that it would be a good idea to require more go software. pollEndpoint is used by test_launch_ipfs_daemon() to check that the IPFS daemon is ready: I think this check is quite important, so I don't think it would be a good idea to skip it. One solution could be to put pollEndpoint into its own separate repo and just require it to be installed. For example go-random is also required for this test to work, but it has its own separate repo, so it's less intrusive. |
I put pollEndpoint into a new repo: |
be00164
to
5913314
Compare
@chriscool got your ping. Seems that you already extracted Do we just want to check if the daemon is on? Do we need a custom program? Why not just netcat or curl to see if the socket is still open? |
@diasdavid there are a number of go programs that are used by the test suite, like go-random, go-sleep, etc. See: https://github.com/ipfs/go-ipfs/blob/master/test/sharness/Rules.mk So it's not just about go-poll-endpoint. And it looks like the docker image used for the Travis tests doesn't even have go installed. |
@victorbjelkholm is planning to extract sharness onto its own repo so that it can be used against multiple IPFS implementations. You two should sync up :) |
@diasdavid yeah I already talked to @victorbjelkholm but I will sync up again. |
See also: ipfs-inactive/dev-team-enablement#12 |
@chriscool I'm guessing this can be closed due to the work you'll be doing on using the sharness repo with JS IPFS? |
@alanshaw yeah, you can close this. |
This fails at the second test with:
This is because js-ipfs does not implement
ipfs bootstrap rm --all
.