Skip to content

Windows interop #154

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

Merged
merged 17 commits into from
Nov 10, 2017
Merged

Windows interop #154

merged 17 commits into from
Nov 10, 2017

Conversation

richardschneider
Copy link
Contributor

No description provided.

@ghost ghost assigned richardschneider Nov 8, 2017
@ghost ghost added the status/in-progress In progress label Nov 8, 2017
@codecov
Copy link

codecov bot commented Nov 8, 2017

Codecov Report

Merging #154 into master will increase coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #154      +/-   ##
==========================================
+ Coverage   90.48%   90.62%   +0.13%     
==========================================
  Files          14       14              
  Lines         736      736              
==========================================
+ Hits          666      667       +1     
+ Misses         70       69       -1
Impacted Files Coverage Δ
src/index.js 79.85% <0%> (-2.16%) ⬇️
src/decision-engine/index.js 87.9% <0%> (-0.47%) ⬇️
src/types/wantlist/index.js 96.42% <0%> (+3.57%) ⬆️
src/want-manager/index.js 94.91% <0%> (+6.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab69719...5beb22c. Read the comment docs.

@richardschneider
Copy link
Contributor Author

@diasdavid before merging, need PR libp2p/js-libp2p-kad-dht#20 to be released. Then update this package.json

@ghost ghost assigned daviddias Nov 9, 2017
@@ -109,7 +109,8 @@ describe('bitswap with mocks', () => {
})
})

it('multi peer', function (done) {
// TODO: This test is just taking too long
it.skip('multi peer', function (done) {
Copy link
Member

@daviddias daviddias Nov 9, 2017

Choose a reason for hiding this comment

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

That is not a valid reason to skip a test. This Window PR should not be disabling tests to please the AppVeyor CI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not just pleasing appveyor. Both travis and circle fail with this test enabled.

@richardschneider
Copy link
Contributor Author

looks like js-ipfs-repo is misbehaving. I'll investigate.

Error: version mismatch: expected v6, found v5
      at get (node_modules\ipfs-repo\src\version.js:57:27)
      at store.get (node_modules\ipfs-repo\src\version.js:31:9)
      at node_modules\graceful-fs\graceful-fs.js:78:16
      at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:513:3)

@Stebalien
Copy link
Member

@richardschneider we recently bumped the repo version in go-ipfs and I believe that may have been done in js as well. @dryajov?

@richardschneider
Copy link
Contributor Author

Thanks @Stebalien Many of the JS tests have a repo as a test fixture. does this mean we have to update all the test fixtures!

@Stebalien
Copy link
Member

Not sure. Honestly, I know almost nothing about js-ipfs (I also don't really see the point in repo compatibility but that's a different issue).

@richardschneider
Copy link
Contributor Author

See ipfs repo issue #152

@richardschneider
Copy link
Contributor Author

@diasdavid LGTM please review

@dryajov
Copy link
Member

dryajov commented Nov 10, 2017

@richardschneider I believe you are right, we might need to get the fixtures upgraded, but @diasdavid should be able to tell for sure.

@richardschneider
Copy link
Contributor Author

@dryajov This would be a big task. I suggest that ipfs-repo should gracefully upgrade.

@daviddias
Copy link
Member

@Stebalien we set ourselves to interop fully with go in as many points as possible so that a user would not have to think which IPFS implementation it is using. Unfortunately, go-ipfs does change the repo often and there are no specs or compliance tests we can use to keep it up and so we've separated paths for a while now. That to say we still keep the promise of trying to be compatible with go-ipfs as best we can.

In this case, all that was needed was just bumping the repo version. We use copies of go-ipfs created repos so that we can test our serializers and deserializers correctly.

@daviddias
Copy link
Member

Don't really know what happened in one of the 4 jobs of appveyor

image

Seems that it is not an issue from this module. Merging :)

@daviddias daviddias merged commit a8b1e07 into master Nov 10, 2017
@ghost ghost removed the status/in-progress In progress label Nov 10, 2017
@daviddias daviddias deleted the windows-interop branch November 10, 2017 10:06
@richardschneider
Copy link
Contributor Author

Yes, I've seem this error now and then. It only happens on a PR build. I was looking into this afternoon and got side tracked by repo version number.

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.

4 participants