Commit Graph

3157 Commits

Author SHA1 Message Date
svcscm
77965e0aa0 Updating submodules
Summary:
GitHub commits:

fff8f73ce7
4081fb9272
c6e6dff1e9
941e49f59b
17d9c5e006
c5db605702
e6e46fe490
642c3e1627
3d11c539cd
0d7da7c36f

Reviewed By: zpao

fbshipit-source-id: b817e19167517a26a7b4663cc69dcada07ae3021
2019-09-30 11:28:32 -07:00
wez@fb.com
f78a2b90fd getdeps: update run_cmake.py to also support running tests
Summary: Add a `--mode=tests` behavior for invoking `ctest`

Reviewed By: simpkins

Differential Revision: D17610033

fbshipit-source-id: 6284fe1dbfb7adf38a67820c842a5531eefd72fa
2019-09-30 10:46:19 -07:00
wez@fb.com
5293f4631b getdeps: add an add_fb_python_unittest() function
Summary:
Add a function for defining Python unit tests.  This creates the test
executable, and also emits logic to perform test discovery for ctest.

Reviewed By: simpkins

Differential Revision: D17610034

fbshipit-source-id: cdf15b0b04acc1d3e906a1e2a95eb327951176ba
2019-09-30 10:46:18 -07:00
wez@fb.com
76de96dacf getdeps: export a property that contains the path to the output executable
Summary:
Export a property that indicates the path to the test executable.  This is
useful for callers that want to install the binary or run it from other CMake
rules.

Reviewed By: simpkins

Differential Revision: D17647146

fbshipit-source-id: b32e2694e44a07d7c234e53a7a5c8443cb144487
2019-09-30 10:46:18 -07:00
svcscm
8be26f9d31 Updating submodules
Summary:
GitHub commits:

c77641cc34
85799633aa

Reviewed By: cdelahousse

fbshipit-source-id: 040e5289870d24cb0c08500c7aebe0ee5fa14990
2019-09-30 10:46:18 -07:00
svcscm
c3ee1c42e3 Updating submodules
Summary:
GitHub commits:

fc4158c0bd
e91ece891b

Reviewed By: cdelahousse

fbshipit-source-id: f1cccee94a972b6a6a899c631c892755eab15d4b
2019-09-29 20:22:32 -07:00
svcscm
83917b95ee Updating submodules
Summary:
GitHub commits:

661419ea85

Reviewed By: cdelahousse

fbshipit-source-id: e2988662574f04470a0ca12b7144d7703fd5f81e
2019-09-28 21:22:49 -07:00
svcscm
2c47137a27 Updating submodules
Summary:
GitHub commits:

e305694f96

Reviewed By: cdelahousse

fbshipit-source-id: bc1c5caaafc80e6ad5f7d5dc4990da9d0ce80b61
2019-09-27 20:43:36 -07:00
Adam Simpkins
6cb69232a7 always log thrift call times, even if the call fails
Summary:
Update the `Future` based version of the `ThriftLogHelper` class to log how
long the call took, even if it failed.

The code already logged on error for non-Future thrift handler functions, but
for `future_*()` calls we only logged when producing a successful result.
This switches the code from `thenValue()` to `thenTry()` so that we log on
both successful and failed results.

Reviewed By: wez

Differential Revision: D17636471

fbshipit-source-id: 859a326e5bc54183c80f16bf463ba6d451f624e5
2019-09-27 17:32:03 -07:00
Adam Simpkins
b054d9e066 unbreak the build of ServiceAddressTest.cpp
Summary:
D17623550 deleted `ServiceCacheIf::invalidateSelection()` but did not remove
this override, which broke the build for EdenFS's tests.

Reviewed By: wez

Differential Revision: D17638351

fbshipit-source-id: 200ead0f79a2252dc7ac2318745cd98e520737a4
2019-09-27 16:19:49 -07:00
svcscm
19f8d0953b Updating submodules
Summary:
GitHub commits:

3d4443b2f8

Reviewed By: cdelahousse

fbshipit-source-id: 49a90116853cda894b173861d80c58360c46d91e
2019-09-27 16:06:19 -07:00
Adam Simpkins
beece856bd limit the number of thrift arguments that we log for some calls
Summary:
Update the logging for `getFileInformation()`, `glob()`, `globFiles()`, and
`getSHA1()` to log at most 5 paths, plus the number of remaining paths.
Watchman can sometimes call `getFileInformation()` with tens of thousands of
paths.  We don't enable these log messages by default, but if someone has
turned up the log levels to help debug, this can easily fill up the log files
with spam.

Reviewed By: wez

Differential Revision: D17623234

fbshipit-source-id: 3ea8ace294fb8f042f1c53382c76148ba4af95f6
2019-09-27 15:38:39 -07:00
svcscm
db64bce681 Updating submodules
Summary:
GitHub commits:

a27ffe537e
e575bf3958
b6904a0c7c
e3739e5bec

Reviewed By: cdelahousse

fbshipit-source-id: 37bd1e1b730dbeb21bc300ecbe271a64d771afea
2019-09-27 15:38:38 -07:00
svcscm
989a23cab8 Updating submodules
Summary:
GitHub commits:

b73bf8c14b

Reviewed By: cdelahousse

fbshipit-source-id: 3a5abcf9e657a842b96305adad233d0093f3a089
2019-09-27 07:42:58 -07:00
Wez Furlong
0cd7ac7044 eden: suppress hdiutil output unless it errors out
Summary:
hdiutil is horribly verbose, which in turn causes `eden redirect fixup`
to be horribly verbose on macos, so let's supress its output when successful.

Reviewed By: simpkins

Differential Revision: D17254318

fbshipit-source-id: ed2508e554d70bdcde0f0546e24dd6155e05d258
2019-09-27 07:14:59 -07:00
Wez Furlong
bc76cfc8b3 eden: gc now compacts sparseimage files for macos redirections
Summary:
The sparse images that we mount in place of bind mounts on macos
can grow over time, and don't automatically shrink if their contents are
purged.

This commit teaches `eden gc` to run `hdiutil compact` on these images
to reclaim space.

The output from `hdiutil compact` is really verbose and noisy, so we
suppress it unless there is an error.

Reviewed By: simpkins

Differential Revision: D17254235

fbshipit-source-id: 944b3824717c8b46d8170ec729c04a93323ab7f0
2019-09-27 07:14:58 -07:00
svcscm
28b1420fe7 Updating submodules
Summary:
GitHub commits:

6c378bf16d
f636844171
34d7ca38cc

Reviewed By: cdelahousse

fbshipit-source-id: 42c63ea45383b6e777575615804edb3e6b025d9b
2019-09-27 07:14:58 -07:00
svcscm
5ffeb68700 Updating submodules
Summary:
GitHub commits:

b6b5955e72
99ef0247c0
017ffed361

Reviewed By: cdelahousse

fbshipit-source-id: 03030b2472aafa7b8eee8eb35841c4ade5dad084
2019-09-26 23:35:32 -07:00
Adam Simpkins
7ee2610c78 make support for Eden SCM optional
Summary:
Add a CMake option to control whether or not we should build support for
fb-mercurial (aka Eden SCM).  If this is disabled we avoid building anything
under eden/fs/store/hg and drop support for the "hg" backing store.

Reviewed By: wez

Differential Revision: D15980320

fbshipit-source-id: 23a49d3e5cf89199666ff4a0bf46626502c12171
2019-09-26 20:26:43 -07:00
Adam Simpkins
19f2d16c33 change the scm/hg:hg target to use a sh_binary() rule
Summary:
Change the `//scm/hg:hg` target to use an `sh_binary()` rule that invokes the
`:hg_rust` binary with the proper environment so it can find its dependencies,
rather than copying the binary and all of its dependencies into a new
subdirectory.

In dev mode builds the `hg_rust` binary isn't guaranteed to work anywhere
other than its original location, due to the way that dev mode builds use
`$ORIGIN` in the binary's `RPATH` setting.  This happened to work up until now
as the hg_rust binary did not have any separate libraries, but I plan to add
one on the `chg` library.

Reviewed By: quark-zju

Differential Revision: D17109104

fbshipit-source-id: ae8bb1126969f012d1d2fb7d04e80867a310b9a8
2019-09-26 20:15:04 -07:00
svcscm
ffb3d58408 Updating submodules
Summary:
GitHub commits:

d9c8d3cd09

Reviewed By: cdelahousse

fbshipit-source-id: f67179a8abd29dabc87ae3687ca882b1da5371b0
2019-09-26 20:15:04 -07:00
svcscm
eacde87465 Updating submodules
Summary:
GitHub commits:

888d3b3be9

Reviewed By: cdelahousse

fbshipit-source-id: 8cb9b9c30d44562450554de283270f1f6f047652
2019-09-26 18:55:34 -07:00
Wez Furlong
28de3ee251 eden: fix eden chown to chown the mount point of a redirection
Summary:
We're seeing an issue where for an Eden instance started
as root a subsequent chown doesn't chown the root of the bind mount
and thus makes it impossible to write into the directory.

Reviewed By: simpkins

Differential Revision: D17620135

fbshipit-source-id: 4ee511234c551bbfc7330a60ee85fc5efd329d73
2019-09-26 18:43:29 -07:00
svcscm
053b9d4c21 Updating submodules
Summary:
GitHub commits:

e33f2fe68f
f25f6f4101
8c5eacf758
ae45835703
661db3896e
aa25d200c1
ad7794b41e
bc23c7482b

Reviewed By: cdelahousse

fbshipit-source-id: fe12edaf711ddaa40c9a04dfb103905e7ed6603f
2019-09-26 18:43:28 -07:00
svcscm
f81d5658e3 Updating submodules
Summary:
GitHub commits:

d3f8fa3918
76e951dbb1

Reviewed By: cdelahousse

fbshipit-source-id: fdb8c001270f3d24462c93a4ff7026f37d3b9743
2019-09-26 17:11:02 -07:00
Chad Austin
3de9641856 add option to print debug thrift output as json
Summary:
It's convenient to manipulate Thrift output with jq sometimes, so add
an option to try to encode the resulting Thrift object as JSON.

Reviewed By: simpkins

Differential Revision: D17468559

fbshipit-source-id: b1f4639b6ea0d366400c8283cd7095bb4e0728de
2019-09-26 15:23:45 -07:00
svcscm
4e59ce3024 Updating submodules
Summary:
GitHub commits:

62e24e7b92
0c836629cf

Reviewed By: cdelahousse

fbshipit-source-id: 0b80e964b402bfac849d185ba160de43f9b4ac79
2019-09-26 15:00:50 -07:00
svcscm
031c947c7b Updating submodules
Summary:
GitHub commits:

cc165a7af4
25efe31912
db34e2d029
a3cee8134b
24e8913582
95805b6b6c
9df7ce2a7b
5ca37848e1

Reviewed By: cdelahousse

fbshipit-source-id: e1b18b0c9b898f0b0d1b402a517af418eedacafe
2019-09-26 15:00:50 -07:00
svcscm
d3fd1a1960 Updating submodules
Summary:
GitHub commits:

db831b2d3e
2aa077524e
163263056a
7ca9aaf210

Reviewed By: cdelahousse

fbshipit-source-id: b1ad235dc9fd8eb101976b5e97a8640df08efc2e
2019-09-26 10:44:31 -07:00
Chad Austin
032e4ecfe6 bump timeouts in ProcessAccessLogTest to fix flake on macOS
Summary:
On a machine with one core, it's quite possible for the process to
freeze for a second, resulting in a flaky test.

Reviewed By: wez

Differential Revision: D17579535

fbshipit-source-id: a3e158b5895c06bdf560ebecd849a74e4efa591e
2019-09-25 18:27:53 -07:00
svcscm
15dde00fb2 Updating submodules
Summary:
GitHub commits:

f1fe2fe958

Reviewed By: yns88

fbshipit-source-id: 97c74ca7c3636f403761894019b48840c61fad6c
2019-09-25 18:27:53 -07:00
svcscm
73986ea2f4 Updating submodules
Summary:
GitHub commits:

1d75567cb3
5b44bbc0c3
3407ff7f18
4ace4b5c21

Reviewed By: yns88

fbshipit-source-id: 43f994449ae5223ebec31c00f7ed19585c77f789
2019-09-25 15:28:57 -07:00
Misha Shneerson
9a0585ba15 make selection.hosts a shared_ptr
Differential Revision: D17412196

fbshipit-source-id: 872e7e6332284fa00b52e03ce237adeea32fd852
2019-09-25 14:02:59 -07:00
svcscm
ad930efa69 Updating submodules
Summary:
GitHub commits:

be9d7cf5c6
9e54e0c681
3afd7703fb
ead09ba9ca

Reviewed By: yns88

fbshipit-source-id: 2cf7b9bf74b964ead962dcd4d43da5f03a458f06
2019-09-25 14:02:59 -07:00
svcscm
76c4cdc3c1 Updating submodules
Summary:
GitHub commits:

8f459f897c
a630628232
96ddeb5dfc

Reviewed By: yns88

fbshipit-source-id: fc0b94425f05f532a0ebda1de3d96121612df04c
2019-09-25 12:27:44 -07:00
Wez Furlong
e3ebd87a82 eden: tell systemd to raise ulimits
Summary: Increase the limit to a larger amount

Reviewed By: chadaustin

Differential Revision: D17533394

fbshipit-source-id: 7e15d28b049216e238bac48fe062d16bc91ebadc
2019-09-25 09:38:34 -07:00
svcscm
76d810b664 Updating submodules
Summary:
GitHub commits:

966dbc1ce4

Reviewed By: yns88

fbshipit-source-id: b449ba2557191342fe86de53023c3f34dd48bf8b
2019-09-25 09:38:33 -07:00
svcscm
bc4ebc265b Updating submodules
Summary:
GitHub commits:

646d07e332
2c406202f2
6652c94f59

Reviewed By: yns88

fbshipit-source-id: 84be4822d75f34a98f30b006348d874857443b68
2019-09-25 00:29:03 -07:00
svcscm
fd3d132935 Updating submodules
Summary:
GitHub commits:

f9bbdeb0bb
59c430137a
fff74a54de
6d65bdb63c
cd38f1b7df
be0be14a4f
7ce91ed762
edb4102001

Reviewed By: yns88

fbshipit-source-id: d346086ba0a2dc4ef0addf2f6e5978f17012e617
2019-09-23 23:34:28 -07:00
John Strizich
5d31c31b01 adding openr to this framework
Summary:
this adds `oss-openr-linux-getdeps` to diffs affecting files under openr. With soma going away and the old fbcode_builder job disabled, this will give us the signal we need to keep the cmake build healthy.

[Some Info on Getdeps](https://our.intern.facebook.com/intern/wiki/Test_your_Open_Source_build_with_getdeps.py/)

Michael, this change may require you to bump up some of the dependent libraries and build them with cmake if not already. The main changes to the cmake script are around using package configs instead of `find_library`

Also, for those with more CMake experience: since there are some big changes in the `CmakeLists`, feel free to pour on more suggestions on how I could make it better and more aligned with other facebook OSS

Reviewed By: saifhhasan

Differential Revision: D16010068

fbshipit-source-id: 66f914f1971f826e0868c4130839380639a7e44b
2019-09-23 22:56:15 -07:00
svcscm
e4cbdd3312 Updating submodules
Summary:
GitHub commits:

58e9ff2bdb
fe27c25342
8612cb7cef

Reviewed By: yns88

fbshipit-source-id: fca20855be861ab620772b13e9a29ed4ea048857
2019-09-23 22:56:14 -07:00
svcscm
0b120a0bd7 Updating submodules
Summary:
GitHub commits:

bfa706ae83
171c48e8ba
064b6bd7a4

Reviewed By: yns88

fbshipit-source-id: 7bb7132823b6f826b1578c2f84a92864e3d4da32
2019-09-23 17:01:01 -07:00
Chad Austin
4587650f13 atomically write config.json
Summary:
Use fdatasync (or fsync on macOS and Windows) and os.replace to write
Eden's config.json.

Reviewed By: wez

Differential Revision: D17465682

fbshipit-source-id: 0e92a58653befc84d45eb815bc0a02b8c2df3d39
2019-09-23 16:36:18 -07:00
svcscm
ed4f7c6e40 Updating submodules
Summary:
GitHub commits:

e1d8e5ef54
02554b3c38
7c578e2d98

Reviewed By: yns88

fbshipit-source-id: d99b9229c7ec40ae4e4f485ad0213d2b8ee713a7
2019-09-23 15:44:08 -07:00
Genevieve Helsel
6a036808cc use callbacks in source control tree comparisons
Summary: Use callback to save ScmStatus instead of storing status inside a `TreeDiffer` object. Involes a bit of restructuring of some code to avoid circular dependencies and library creation. Mostly renames and file moves, some funtion moves as well.

Reviewed By: simpkins

Differential Revision: D17400466

fbshipit-source-id: fcd194a4c20204dffd3d11cd4a083564dc0ea938
2019-09-23 15:22:30 -07:00
svcscm
30f606928d Updating submodules
Summary:
GitHub commits:

b2c6231e6c
98e63e8ad7
e2694bad51
eb33665e24
2367656b6c
6c5f93e5e8
9fcdf8931b

Reviewed By: yns88

fbshipit-source-id: fe26f9754833de0d74fc5b0c85724d45c2bb346a
2019-09-23 15:22:29 -07:00
svcscm
861e334cb4 Updating submodules
Summary:
GitHub commits:

05b8b22f72
ba5203b90f

Reviewed By: yns88

fbshipit-source-id: 388b22d8394eeee981f5d355384173738273d9e6
2019-09-23 11:54:41 -07:00
Adam Simpkins
21becc5cba increase log level of FUSE request timeouts
Summary:
Increase the log level if a FUSE request timeout occurs, so we can tell if
this has occurred in the logs when debugging user problems.  Rate limit the
messages to at most once per second to avoid lots of log spam when a problem
occurs that causes lots of FUSE requests to time out.

Reviewed By: chadaustin

Differential Revision: D17506837

fbshipit-source-id: b84bd094034f1b31ef74038a9fd3828d4db9acf2
2019-09-23 10:45:16 -07:00
svcscm
d03209bd38 Updating submodules
Summary:
GitHub commits:

d206e89382
18a752d995
42f898bf83
46afad2c1f

Reviewed By: yns88

fbshipit-source-id: eeec80654d08f46e5e0cdfbcfbed20859b303203
2019-09-23 09:44:06 -07:00
Genevieve Helsel
9130d4f3c4 return error information as part of thrift callback result
Summary: Use callback to save ScmStatus instead of storing status inside a `TreeDiffer` object.

Reviewed By: simpkins

Differential Revision: D17379318

fbshipit-source-id: b5f56c937509f0861f5dc06c742ebc3e1f85c695
2019-09-23 09:08:28 -07:00