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

Refresh #17

Merged
merged 10 commits into from
Aug 8, 2019
Merged

Refresh #17

merged 10 commits into from
Aug 8, 2019

Conversation

kemitchell
Copy link
Contributor

@mafintosh, this PR:

  • bumps dependencies
  • adopts Standard style
  • addresses Standard lint errors
  • configures Travis CI to test on latest Node.js

There is an abstract-blob-store test failure: When a file isn't found, .notFound isn't set on the ENOENT error. I couldn't think of a good way to wrap emission of that error offhand. Perhaps you can.

.travis.yml Show resolved Hide resolved
Copy link
Collaborator

@bcomnes bcomnes left a comment

Choose a reason for hiding this comment

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

LGTM except for that one comment. Thanks!

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 6, 2019

Any idea what the failing test is?

@kemitchell
Copy link
Contributor Author

See above:

There is an abstract-blob-store test failure: When a file isn't found, .notFound isn't set on the ENOENT error. I couldn't think of a good way to wrap emission of that error offhand. Perhaps you can.

Copy link
Collaborator

@bcomnes bcomnes left a comment

Choose a reason for hiding this comment

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

Looks perfect except for that failing test. I don't have enough recent context to have a good answer off hand.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 6, 2019

What would be the correct fix in your opinion?

@kemitchell
Copy link
Contributor Author

kemitchell commented Aug 6, 2019

@bcomnes, to be clear, the test breakage is not a result of this PR. master will fail that test if you rerun CI.

When fs.createReadStream() returns an error with error.code === 'ENOENT', the library should set error.notFound = true. I am not sure how to go about wrapping the stream to achieve that.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 7, 2019

I'm not sure off hand either. Would need to dig in. Put it on my todo, but it might be a while before I have time to look. We can land as soon as we're green.

@kemitchell
Copy link
Contributor Author

@bcomnes can we land and publish now, since master is already red?

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

We can get this to land but let's try to fix first. If you need immediate results use the kemitchell/content-addressable-blob-store reference in your package.json.

@bcomnes bcomnes closed this Aug 8, 2019
@bcomnes bcomnes reopened this Aug 8, 2019
@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

I just ran a bisect and found the first bad commit in:

6ecdb25

When it went from abstract blob store 2 - 3.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

Pinning semver, it appears the tests begin to fail as soon as abstract blob store 3.3.2 is released, so it appears a breaking change was introduced there.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

Pinning "abstract-blob-store": "~3.2.0" fixes tests.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

Upstream introduced breaking changes in a semver minor patch: max-mapper/abstract-blob-store#39

Let's get the fix in there and then land when green.

Copy link
Collaborator

@bcomnes bcomnes left a comment

Choose a reason for hiding this comment

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

LGTM

@bcomnes bcomnes merged commit ada2608 into mafintosh:master Aug 8, 2019
@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

content-addressable-blob-store@5.0.0

@kemitchell
Copy link
Contributor Author

@bcomnes, pinning the test suite back at an old version seems wrong to me. If content-addressable-blob-store is meant to be an abstract-blob-store, it ought to pass the latest test suite.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

It’s not pinned. I fixed upstream. If abs wants to add that error feature it needs to go in as a major. I’m not convinced it’s a good idea though.

@kemitchell
Copy link
Contributor Author

Ah, I see. You pinned here for testing, but you published a new patch release of abstract-blob-store.

I was relying on .notFound from abstract blob stores.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

It should probably go back in then, but as a major release.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 8, 2019

Concrete abstract stores have always been free to provide types errors or error identifiers as well. Having a standard not found might be worth it though, especially since it was added for about a year before anyone noted the breaking nature of it.

@kemitchell
Copy link
Contributor Author

kemitchell commented Aug 8, 2019 via email

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 10, 2019

Ok well do a 4.0 abs then patch here

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 14, 2019

Opened up a pr to addressed that max-mapper/abstract-blob-store#41

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.

None yet

2 participants