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

feat: new ctl #1302

Closed
wants to merge 2 commits into from
Closed

feat: new ctl #1302

wants to merge 2 commits into from

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Dec 22, 2019

Closes #1137

@lidel I'm pretty sure you're more aware of the changes made to this version than I am. Could you give me a hand with this? Also, I noticed ipfsd.stop hangs and it does not take timeouts anymore...

@lidel
Copy link
Member

lidel commented Dec 23, 2019

Looked into this and make it work, but getting E2E tests to work requires bigger refactor than I thought.
In case I don't post any updates later today, we will get back to this after holidays.
(Ping me if I forget)

This fixes daemon init to respond correctly to IPFS_PATH override
and refactors most of E2E tests to work with new ipfsd-ctl as well.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

@hacdias check refactor in ddca144

refactor: ipfsd-ctl v1.x and IPFS_PATH

fixes daemon init to respond correctly to IPFS_PATH override
and refactors most of E2E tests to work with new ipfsd-ctl as well.

Note:

  • I had to disable one of E2E tests because support for IPFS_PATH/api seems to be gone?
    (Do you remember how we supported it a while ago?)
  • npm run test:e2e pass for me locally, but at CI does not pass (probably need to bump timeouts etc)

Comment on lines +56 to +59
const ipfsd = await factory.spawn({
ipfsOptions: {
repo: path
},
Copy link
Member

Choose a reason for hiding this comment

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

I believe basic init did not work because repo path got moved to ipfsOptions. This was the fix :)

Copy link
Member Author

@hacdias hacdias Apr 17, 2020

Choose a reason for hiding this comment

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

About the api file: I thought IPFS itself (or the controller) handled it! The only thing we did was this: #722.

@lidel lidel mentioned this pull request Jan 30, 2020
5 tasks
@hacdias hacdias changed the title wip: new ctl feat: new ctl Apr 17, 2020
hacdias added a commit that referenced this pull request Apr 17, 2020
#1302

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
hacdias added a commit that referenced this pull request Apr 17, 2020
#1302

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias
Copy link
Member Author

hacdias commented Apr 17, 2020

I'm taking a new look at this on #1411.

@hacdias
Copy link
Member Author

hacdias commented Apr 17, 2020

I'm closing this in favour of #1411. Thanks for all your work here @lidel and insights! I've reused most of it ;)

@hacdias hacdias closed this Apr 17, 2020
@hacdias hacdias deleted the feat/new-ctl branch April 17, 2020 13:26
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.

2 participants