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

simplefs stub #735

Merged
merged 9 commits into from Feb 13, 2017
Merged

simplefs stub #735

merged 9 commits into from Feb 13, 2017

Conversation

zanderz
Copy link
Contributor

@zanderz zanderz commented Feb 8, 2017

Does this look roughly right @maxtaco ? These are the stubs @taruti will help me fill out.

@maxtaco
Copy link
Contributor

maxtaco commented Feb 8, 2017

We should let the KBFS team handle the review. At the very least there's a vendoring protocol to use that should be followed.

@taruti
Copy link
Contributor

taruti commented Feb 8, 2017

Does this need to live inside libkbfs? That package is quite large as is. Typically the interfaces go into their own packages (libfuse, libdokan, ...). So instead of kbfs/libdokan how about kbfs/simplefs?

@zanderz
Copy link
Contributor Author

zanderz commented Feb 8, 2017

Makes sense for it to live somewhere else. Also not sure if all these should go in KeybaseServiceBase or what the best alternative may be in Go. Does someone else from kbfs want to weigh in @strib ?

Pretty sure some go tests should exercise these soon as one of the next steps.

@taruti
Copy link
Contributor

taruti commented Feb 9, 2017

Also needs rebasing due to conflict.

@zanderz
Copy link
Contributor Author

zanderz commented Feb 9, 2017

The tests I made just do local FS copying - probably not that helpful.

RE rebasing: I think the source changes to the client branch need to be merged first, not sure we have a thumb yet.

Copy link
Contributor

@strib strib left a comment

Choose a reason for hiding this comment

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

Looks fine to me assuming the tests are intentionally not being run and it's ok they fail.

In the future if you want me to review something, please add me as a proper github reviewer.

)

// SimpleFS - implement keybase1.SimpleFS
type SimpleFS struct{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a line like this somewhere in this file so we can assert this implements the expected interface on a re-vendor:

var _ keybase1.SimpleFSInterface = (*SimpleFS)(nil)

require.NoError(t, err)

listResult, err := sfs.SimpleFSReadList(ctx, opid)
require.NoError(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

This will fail if you run this test for real, right? I notice this directory's tests are not yet included in appveyor.yml or Jenkinsfile. I assume that's on purpose until this test will actually pass?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot about appveyor, good point, but yes, these are expected to fail until am implementation happens. I tried temporarily naming them Example* but the linter didn't like that.

@@ -192,8 +192,8 @@
{
"checksumSHA1": "90p9joLcyYEYBCMBY2xF/8eYAAM=",
"path": "github.com/keybase/client/go/protocol/keybase1",
"revision": "804b64589ed62d7e5530153c4434a2fc0caccbac",
"revisionTime": "2017-02-08T16:43:02Z"
"revision": "3e0a0841a41e8fa7f2f12c279e901086d55bee64",
Copy link
Contributor

Choose a reason for hiding this comment

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

We've already vendored this in, in current master. So you can drop this vendoring part after a rebase.

@zanderz zanderz merged commit 31fd34c into master Feb 13, 2017
@zanderz zanderz deleted the zanderz/fsapi_2017.01.26 branch February 13, 2017 02:25
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.

None yet

4 participants