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

Run tests with ipfs-api and go-ipfs again #328

Merged
merged 1 commit into from
Mar 27, 2018
Merged

Run tests with ipfs-api and go-ipfs again #328

merged 1 commit into from
Mar 27, 2018

Conversation

haadcode
Copy link
Member

@haadcode haadcode commented Feb 27, 2018

This is a PR to make OrbitDB run tests with go-ipfs again (through js-ipfs-api) in addition to running them with js-ipfs.

This PR will:

  • Remove obsolete/unused public API methods
  • Run tests against both js-ipfs and go-ipfs
  • Add write benchmark for using go-ipfs as the IPFS backend

@daviddias
Copy link
Member

👏🏽👏🏽👏🏽👏🏽👏🏽

afterEach(async () => {
await db.drop()
it('creates and opens a database', async () => {
db = await orbitdb1.docstore('first doc database')
Copy link
Member

Choose a reason for hiding this comment

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

Duplicate?

Copy link
Member Author

@haadcode haadcode Mar 1, 2018

Choose a reason for hiding this comment

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

Good catch and it seems to be a problem with all stores. They also don't seem to contain an assert for that test.

@haadcode
Copy link
Member Author

haadcode commented Mar 5, 2018

I'm going to split this PR in two, because there's really two major things in it atm:

  • Use ipfsd-ctl to create test IPFS instances
  • Run tests against both js-ipfs and go-ipfs

The first part is to just update the tests to use ipfsd-ctl and the second part brings in everything we need to run with go-ipfs again.

@haadcode
Copy link
Member Author

haadcode commented Mar 6, 2018

Closes #273

@haadcode
Copy link
Member Author

Using ipfsd-ctl to run the tests is now a separate PR here #335

@haadcode haadcode changed the title Run tests with ipfs-api again (WIP) Run tests with ipfs-api and go-ipfs again (WIP) Mar 17, 2018
@haadcode haadcode force-pushed the fix/ipfs-api branch 3 times, most recently from 2a60020 to 6bb284d Compare March 27, 2018 13:06
@haadcode haadcode changed the title Run tests with ipfs-api and go-ipfs again (WIP) Run tests with ipfs-api and go-ipfs again Mar 27, 2018
@haadcode haadcode force-pushed the fix/ipfs-api branch 3 times, most recently from 140880b to f2c5d04 Compare March 27, 2018 14:07
Use go-ipfs 0.4.13 to run tests
Add write benchmark for go-ipfs
Clean up benchmarks
Fix a test not catching errors
@haadcode
Copy link
Member Author

This was now finally finished and in itself became a rather small PR compared to the original. The main work was done in the previous PRs (see commit log).

Going to merge this to master and keep testing it for some time before making a new release (0.20.0).

We now support go-ipfs again! 🎉 🚀 😄

@haadcode haadcode merged commit b2f100a into master Mar 27, 2018
@haadcode haadcode deleted the fix/ipfs-api branch March 27, 2018 14:29
@haadcode haadcode mentioned this pull request Mar 27, 2018
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.

3 participants