Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: reworking tests with new ipfsd-ctl #1167

Merged
merged 12 commits into from
Jan 24, 2018
Merged

feat: reworking tests with new ipfsd-ctl #1167

merged 12 commits into from
Jan 24, 2018

Conversation

dryajov
Copy link
Member

@dryajov dryajov commented Dec 28, 2017

No description provided.

@@ -12,7 +12,7 @@ const ipfsExec = require('../utils/ipfs-exec')
const IPFS = require('../../src')

const DaemonFactory = require('ipfsd-ctl')
const df = DaemonFactory.create()
const df = DaemonFactory.create({ type: 'js' })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this use the latest js-ipfs from this repo??

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm passing the path to the latest ipfs during spawn.

@@ -41,9 +41,8 @@ describe('pubsub', function () {
this.timeout(60 * 1000)

DaemonFactory
.create({ remote: false })
.create({ type: 'proc' })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PubSub on CLI tests should test with a Daemon.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were actually two instances, one spawned as a daemon and one running in process, created by daemon-factory and instance-factory respectively.

@daviddias
Copy link
Member

ipfsd-ctl 0.27 has been published. Could you update the PR?

@dryajov
Copy link
Member Author

dryajov commented Jan 16, 2018

depends on - ipfs-inactive/interface-js-ipfs-core#186

@ghost ghost assigned daviddias Jan 19, 2018
daviddias
daviddias previously approved these changes Jan 19, 2018
@daviddias
Copy link
Member

image

@dryajov CI is failing.

@daviddias daviddias removed their assignment Jan 19, 2018
@dryajov
Copy link
Member Author

dryajov commented Jan 19, 2018

depends on ipfs-inactive/interface-js-ipfs-core#203

@dryajov
Copy link
Member Author

dryajov commented Jan 20, 2018

requires - ipfs/js-ipfsd-ctl#184

@daviddias
Copy link
Member

@dryajov I believe that all dependencies have been merged and released. What's missing here?

@dryajov
Copy link
Member Author

dryajov commented Jan 24, 2018

@diasdavid there is one outstanding issue i'm troubleshooting now, which so far seems to be a race condition somewhere in libp2p. It also only seem to happen in the browser.

screen shot 2018-01-23 at 9 52 17 pm

The message says that libp2p is not started, but the tests pass, which makes me think that something is racy when updating libp2p state. I'll keep digging.

@dryajov
Copy link
Member Author

dryajov commented Jan 24, 2018

@diasdavid all good, the libp2p issue is fixed, circle and Travis are green.

], done)
})
})
})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dryajov why delete the core circuit relay tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from ICR:

10:37 <@daviddias> dryajov: why delete the circuit relay tests?
10:38 moved to interop
10:39 they’re all there, but having them in js-ipfs in the first place was a workaround to get at least some of them running in the browser
10:39 now that we have the new ipfsd-ctl, thats not required anymore
10:40 I think we might need some around enabling/disabling circuit, but as far as those specific tests, they’re not part of interop
10:40 > they’re not part of interop
10:40 *now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked about this in IRC and agreed that we need Circuit relay tests in js-ipfs to test the interface, but they will be brought back with #1063

@daviddias daviddias merged commit d16a129 into master Jan 24, 2018
@daviddias daviddias deleted the feat/ipfsd-ctl branch January 24, 2018 17:18
@ghost ghost removed the status/in-progress In progress label Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants