Commit Graph

14 Commits

Author SHA1 Message Date
Zeyi Fan
417fc46ce4 use ServiceRouter and SSL Connection in MononokeBackingStore
Reviewed By: chadaustin

Differential Revision: D9143949

fbshipit-source-id: 5e2b89579a19c1f5cca673fda476b74891bb6447
2018-08-06 11:51:36 -07:00
Zeyi Fan
4b6aa1bf5c use new Mononoke API Server for MononokeBackingStore
Summary: This commit changes MononokeBackingStore to use new APIs provided by Mononoke API Server.

Reviewed By: chadaustin

Differential Revision: D8882789

fbshipit-source-id: 0f06ca5f850af9fb52f1d593b9abd715a541488a
2018-07-25 21:52:09 -07:00
Sergey Zhupanov
419a57b1bc Enabled additional compiler warnings in Eden.
Summary:
1. Enabled a number of additional C++ compiler warnings in Eden.
2. Fixed warnings-turned-errors that resulted from this change.

Reviewed By: simpkins

Differential Revision: D8132543

fbshipit-source-id: 2290ffaaab55024d582e29201a1bcaa1152e6b3e
2018-06-01 11:39:01 -07:00
Adam Simpkins
8e3c09a99a move folly/experimental/logging to folly/logging/
Summary:
Promote the folly logging code out of the experimental subdirectory.
We have been using this for several months in a few projects and are pretty
happy with it so far.

After moving it out of the experimental/ subdirectory I plan to update
folly::Init() to automatically support configuring it via a `--logging` command
line flag (similar to the initialization it already does today for glog).

Reviewed By: yfeldblum, chadaustin

Differential Revision: D7755455

fbshipit-source-id: 052db34c97f7516728f7cbb1a5ad959def2f6efb
2018-04-30 21:29:29 -07:00
Adam Simpkins
21d2b6c46d Remove TARGETS files
Summary:
This removes the TARGETS files from the eden github repository.  The
open source buck build has been failing for several months, since buck
removed support for the thrift_library() rule.

I will potentially take a stab at adding CMake build support for Eden
at some point in the future.

Reviewed By: chadaustin

Differential Revision: D6893233

fbshipit-source-id: e6023094a807cf481ac49998c6f21b213be6c288
2018-02-20 19:57:45 -08:00
Chad Austin
622a5ecbc2 rename FileType to TreeEntryType
Summary:
This is the type of a tree entry, which may be another tree, so
FileType is not an accurate name.

Reviewed By: simpkins

Differential Revision: D6981168

fbshipit-source-id: 997eb8a27f599310ed678ce221c8083722db8bff
2018-02-16 15:57:39 -08:00
Chad Austin
895a0196d9 compute permission bits based on FileType in TreeEntry
Summary:
Our Model TreeEntry code was a bit too general - in reality, both git
and hg only support a handful of specific tree entries: regular files,
executable files, symlinks, and trees.  (git also supports
submodules.)  This diff delays the expansion of a TreeEntry's type
into a full mode_t.

Reviewed By: simpkins

Differential Revision: D6980003

fbshipit-source-id: 73729208000668078a180b728d7e0bb9169c6f3c
2018-02-15 14:46:33 -08:00
Philip Jameson
8604b8f5b0 Migrate TARGETS files from @/ to //
Summary:
This is a codemod to change from using @/ to // in basic cases.
- TARGETS files with lines starting with @/ (but excluding @/third-party:
- autodeps lines in source and TARGETS files ( (dep|manual)=@/ ), excluding @/third-party
- Targets in string macros

The only thing left of the old format should be @/third-party:foo:bar

drop-conflicts

Reviewed By: ttsugriy

Differential Revision: D6605465

fbshipit-source-id: ae50de2e1edb3f97c0b839d4021f38d77b7ab64c
2017-12-20 16:57:41 -08:00
Stanislau Hlebik
5f6397eb10 eden: make mononoke calls async
Summary:
Make the calls async by using a user-provided event base.

It uses quite scary error management, see the comments for details.

Reviewed By: wez

Differential Revision: D6435696

fbshipit-source-id: a148c57aa116a6dfe6254ac7c14790101b8ecd4f
2017-12-02 09:52:24 -08:00
Stanislau Hlebik
5b2011e5e6 eden: simplify mononoke backing store tests
Summary: Additional thread for http server is not necessary.

Reviewed By: wez

Differential Revision: D6435695

fbshipit-source-id: b4fc7096a87146f36876bd132db66ab964feba51
2017-11-30 03:21:56 -08:00
Michael Bolin
2d1eade7a7 Run the autodeps script on our build files.
Summary:
I created this change by running:

```
find eden -name TARGETS | grep -v eden/fs/fuse/TARGETS | grep -v eden/fs/service/TARGETS | xargs autodeps
```

apparently `eden/fs/fuse/TARGETS` and `eden/fs/service/TARGETS` have some
constructions that `autodeps` does not understand, so I filtered those out.

Reviewed By: StanislavGlebik

Differential Revision: D6319982

fbshipit-source-id: 7b3683d1507409dde6d6570e9b13811168aa6859
2017-11-14 11:18:19 -08:00
Stanislau Hlebik
4baa6f9c58 Handle request for a root tree in MononokeBackingStore
Summary: The last missing request. It actually sends two requests - one to resolve the root tree manifest id, another to get Tree by tree manifest id

Reviewed By: simpkins

Differential Revision: D6099727

fbshipit-source-id: eec27441d19424de4170bc00aa45e81627f9d4ff
2017-10-26 09:23:33 -07:00
Stanislau Hlebik
26ddebe143 Implement getTree() handler
Summary: Request json from mononoke server and parses it.

Reviewed By: wez

Differential Revision: D5974634

fbshipit-source-id: 92095e0440d2bb018a7791e173d69542906a7e36
2017-10-18 10:36:29 -07:00
Stanislau Hlebik
7f1137f5d3 Initial mononoke backing store commit
Summary:
First stab at implementing client for mononoke backing store.
Currently eden uses hg_importer to get hg data, and it can be slow. Mononoke server is going to be faster. Also with Mononoke server we will be able to replace mercurial sha-1 hashes with sha-256.

This backing store uses proxygen HTTP client to connect to mononoke server.
For now only getblob request is supported, and this request is synchronous. It will be made asynchronous in the later diffs.

Reviewed By: wez

Differential Revision: D5932192

fbshipit-source-id: a5464fd5b0e176cfb2da3ef4e348a62d1c06f51f
2017-10-18 10:36:29 -07:00