Commit Graph

3274 Commits

Author SHA1 Message Date
svcscm
66f591abd2 Updating submodules
Summary:
GitHub commits:

15f1d999e4
ecaad24062
a6e615a7ba

Reviewed By: yns88

fbshipit-source-id: 6a7b538ba5e3211661636465bf2067359c95ad90
2019-10-14 12:20:41 -07:00
svcscm
2a5c6e54ba Updating submodules
Summary:
GitHub commits:

a9a721d158

Reviewed By: zpao

fbshipit-source-id: fa9b599613ad31dcd0f606eee655b7558ccb025a
2019-10-14 08:59:29 -07:00
svcscm
9bfaf8af70 Updating submodules
Summary:
GitHub commits:

20860125c3
dbf7cb05d2

Reviewed By: zpao

fbshipit-source-id: f3abc1fc5c0a048cac44425318bbfede3115257d
2019-10-13 09:22:24 -07:00
svcscm
9c404957c2 Updating submodules
Summary:
GitHub commits:

feee256959

Reviewed By: zpao

fbshipit-source-id: df5f1eafc1b22bed3b5a0108cd3518c160b4a352
2019-10-12 09:20:19 -07:00
Joseph Friesen
3e0241fc87 add permission mask check to mknod unit test
Summary: add permission mask check to mknod unit test

Reviewed By: chadaustin

Differential Revision: D17880601

fbshipit-source-id: 484d05a4c4dc424504da77d0b37a4739c15f2579
2019-10-11 21:11:02 -07:00
Chad Austin
daaa423489 add knob to opt out of custom thrift permission checking
Summary:
Add a configuration knob that allows environments to opt out of Eden's
custom permission checks on the unix domain socket, instead using the
standard unix domain socket permission rules for the host OS.

Reviewed By: wez

Differential Revision: D17863456

fbshipit-source-id: c60c52891e49cc8027832bd42029cfd52752547b
2019-10-11 17:55:19 -07:00
Chad Austin
4b47257165 remove EdenConfig accessors
Summary:
Instead of having accessors for every config setting in EdenConfig,
just expose the ConfigSettings directly.

Reviewed By: fanzeyi

Differential Revision: D17847805

fbshipit-source-id: 8c6c1010c010113cf859677449797ea916f2a2a5
2019-10-11 17:55:19 -07:00
svcscm
a37d5d2fb1 Updating submodules
Summary:
GitHub commits:

c70b88fed9
469cdaccc9

Reviewed By: zpao

fbshipit-source-id: 686993930dcf58d612a1a635e418e3b966e180dd
2019-10-11 16:50:26 -07:00
Chad Austin
8cac2bfe6a Remove dead includes in eden
Reviewed By: wez

Differential Revision: D17877514

fbshipit-source-id: e7f8ed8364bdb7a77f293cbdf4b48e8f15e64c30
2019-10-11 16:45:01 -07:00
svcscm
b4af7e0633 Updating submodules
Summary:
GitHub commits:

4ca7f0e2ab
c3543916f7
7a7b50a9a9

Reviewed By: zpao

fbshipit-source-id: 63b7a7ad92b9c4b99412070119f3ef88adf6060d
2019-10-11 16:45:00 -07:00
svcscm
a62b2a184d Updating submodules
Summary:
GitHub commits:

38facec624
73b9b24d73
16103a1483
5f1ff91cee

Reviewed By: zpao

fbshipit-source-id: 94d8b7a08ef5f5cca523097204c3f1bfe0d7d3e4
2019-10-11 15:11:59 -07:00
Chad Austin
a461b694ef refactor EdenConfig to use private inheritance
Summary:
I plan to simplify access to EdenConfig by making ConfigSettings
public rather than writing accessors for each setting. To avoid
exposing implementation details, switch to private inheritance.

Reviewed By: wez

Differential Revision: D17847752

fbshipit-source-id: 02ef7afe96f09cc29a54b21bfafbef9234e6f74d
2019-10-11 11:01:49 -07:00
Genevieve Helsel
306fb6b692 pass DiffContext through TreeDiffer code path
Summary: Removes `TreeDiffer` class and passes `DiffContext` through standalone `TreeDiffer` functions as first argument as per comment on D17400466 for setup for processing gitignores in the `TreeDiffer` codepath. (also this allows for easy implementation of short circut of `future_getScmStatusBetweenRevisions` similar to D17531102)

Reviewed By: chadaustin

Differential Revision: D17717977

fbshipit-source-id: d480d212474bd80aeac9cd9bb901f97562b62b13
2019-10-11 10:46:20 -07:00
Chad Austin
b0765887fc optimize and simplify ReloadableConfig
Summary:
I found the logic for whether the config should be reloaded
unnecessarily complicated, so reduce it to deciding whether to reload
or not. This removes the need to acquire a write lock in autoreload's
common case.

Reviewed By: wez

Differential Revision: D17847699

fbshipit-source-id: 50fee1aac15cc8f896333c93459fea6510646600
2019-10-11 10:42:36 -07:00
svcscm
0fcd4ced47 Updating submodules
Summary:
GitHub commits:

cdf9698c9b
ac8e121665

Reviewed By: zpao

fbshipit-source-id: 98406338bd8d0501c73766aa0ec66239b709030e
2019-10-11 10:42:35 -07:00
svcscm
53afd1b078 Updating submodules
Summary:
GitHub commits:

71ad58349c
03358af986

Reviewed By: zpao

fbshipit-source-id: 3e3147221226b0f9874fc24019ec02e2888de6ba
2019-10-11 09:20:21 -07:00
Andres Suarez
fbdb46f5cb Tidy up license headers
Reviewed By: chadaustin

Differential Revision: D17872966

fbshipit-source-id: cd60a364a2146f0dadbeca693b1d4a5d7c97ff63
2019-10-11 05:28:23 -07:00
svcscm
7231f795a6 Updating submodules
Summary:
GitHub commits:

4516865d9d
f6a09a345e

Reviewed By: zpao

fbshipit-source-id: e8ea2bddff0d2919753fd0b2c96e58300598e9aa
2019-10-11 05:28:23 -07:00
svcscm
eb5ff0d4d4 Updating submodules
Summary:
GitHub commits:

9b54ae14cc
1e72a744e2

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 487333c649237a81322dcbed0d3a9cbcbd1830f7
2019-10-10 23:28:19 -07:00
Chad Austin
09900bb773 record peer gid for unix domain sockets in addition to pid and uid
Summary:
To allow downstream consumers to make authentication decisions based
on effective group, store and expose the peer effective group id.

Reviewed By: yfeldblum

Differential Revision: D17844620

fbshipit-source-id: 327437d5b36213e06ca6358266109f96761ac8dc
2019-10-10 22:44:04 -07:00
Chad Austin
f5b2123642 give ThriftPermissionChecker ServerState instead of UserInfo
Summary:
Give ThriftPermissionChecker flexibility by allowing it to access
UserInfo if it needs to. This also gives ThriftPermissionChecker
access to EdenConfig for use in future diffs.

Reviewed By: wez

Differential Revision: D17844453

fbshipit-source-id: 5f7badd084bfbe82bd6b3797ef68daa7b63741b5
2019-10-10 22:44:03 -07:00
svcscm
3727163c13 Updating submodules
Summary:
GitHub commits:

6ec3be9134
c19dfa4ecf
605f2b84cb

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 21de900fbca22d3a3717e7f4e1dcf2b2a4633405
2019-10-10 17:32:22 -07:00
Joseph Friesen
df6c7804d1 enhance mknod to support regular files
Summary:
Some Unix applications (notably, nfsd) create regular files using vfs_create, which ends up invoking the `mknod` system call rather than `open`, which for historical reasons only supported socket creation with Eden. However, since Eden supports regular files, we can broaden the FUSE mknod handler to support regular files as well.

For context, see https://github.com/GoogleCloudPlatform/gcsfuse/issues/137#issuecomment-155273363

Reviewed By: chadaustin

Differential Revision: D17792424

fbshipit-source-id: 466fcbcb3bcb587e731bc8b2a3e0f1508ff1f4e4
2019-10-10 17:17:19 -07:00
Genevieve Helsel
d8f6fb1f44 ensure status reporting behavior with diff() calls
Summary:
Add test cases to ensure behavior of files that exist in the source control tree but match a gitignore pattern (in that case we should report file modification/removal if such happens and should not consult the gitignore)

from `man 5 gitignore` : Note that all the gitignore files really concern only files that are not already tracked by git

Reviewed By: chadaustin

Differential Revision: D17606492

fbshipit-source-id: 1da9f0617ecf2201eb6e548561c2de170f6184fa
2019-10-10 16:59:49 -07:00
svcscm
a561ba3880 Updating submodules
Summary:
GitHub commits:

30eadf6dab

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 31d9c35ecc6dc3e9ef522d260b193238cc885f4b
2019-10-10 16:59:48 -07:00
svcscm
c8537ea5cb Updating submodules
Summary:
GitHub commits:

8f09128eff
041c679db7
912054cbe9
c9181f8d8a
18fe084a4e
96fcd9bee8
84be696700
1ad80670e6
3fb701aa59

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 78f58d88f849ab105121533bf276c24d9da06e69
2019-10-10 13:56:56 -07:00
Andres Suarez
4f5c1eb215 Relicense getdeps from BSD to MIT
Summary: See https://fb.workplace.com/groups/osssupport/permalink/2846876118694318/

Reviewed By: wez

Differential Revision: D17750243

fbshipit-source-id: 9e149df1f8e09203820f50d0fcac4a5cecf52e33
2019-10-10 13:20:05 -07:00
svcscm
94b4b3e334 Updating submodules
Summary:
GitHub commits:

6e6968f5ff
80e85cb30f
4c49e38f15

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0c36902ad26a7ea5f4c0a7998ef1596167b71b1d
2019-10-10 13:20:05 -07:00
svcscm
d4bae358bf Updating submodules
Summary:
GitHub commits:

bc34a0c873
34fe0fc87d
4f7f55a9c1
ce95cdf22e
52058538bd
b8f426fd37
a6d0ad8c64
b3f1ee8e0e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: d4e747570517b1d42a84ebd7e37fab38c5a7f003
2019-10-09 21:38:25 -07:00
Wez Furlong
ba2c416069 watchman: migrate wildmatch test to gtest
Summary: This is the first step towards removing `watchman/thirdparty/tap.{cpp,h}`

Reviewed By: chadaustin

Differential Revision: D17775680

fbshipit-source-id: d6ac32c3b2489e1713fb132b0bb46d848c56811f
2019-10-09 21:01:16 -07:00
Wez Furlong
f5b643a4e3 getdeps: ask testpilot to re-run failed tests up to 3 times
Summary: This helps to squash out some flakiness

Reviewed By: pkaush

Differential Revision: D17804696

fbshipit-source-id: decd8e5dd37d802c62cae1168c4f4d72c0fc5c83
2019-10-09 21:01:15 -07:00
svcscm
029b955fff Updating submodules
Summary:
GitHub commits:

36acdac8a5

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: fc46903ce451ee316c0a05c504f8163c2e3453f7
2019-10-09 20:18:27 -07:00
Jun Wu
dcc1c59270 Update hg tests for new update --merge state
Summary: D17766371 added an `update --merge` state. Teach eden tests about it.

Reviewed By: wez

Differential Revision: D17837836

fbshipit-source-id: a95ed326bf435f7340d7910307c8c5c761812514
2019-10-09 18:22:19 -07:00
svcscm
a931bdaf30 Updating submodules
Summary:
GitHub commits:

6a4c4cea79

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 6a42ab50fb94828a9bf24670644580f22543bcc6
2019-10-09 18:22:19 -07:00
svcscm
b3ad9aecf1 Updating submodules
Summary:
GitHub commits:

1b1897772d
3bd6c6d0d0
149fed4b2e
b047a48ab2
2faa112a79
8f222bfa35
9edafd67e1
08e873d01e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0ee4a022b4ce9097a193c418e3740bb0ec3615a0
2019-10-09 15:59:27 -07:00
Alexey Spiridonov
b93ff4720d Re-enable BUILD_TESTS for fbcode_builder
Summary: As it turns out, several of the `fizz` dependencies require it to have been built with tests enabled, so it's just easier to build them always, IIRC they only waste 1-2 minutes of time.

Reviewed By: lnicco

Differential Revision: D17837758

fbshipit-source-id: dd0c73b3aaf72831ce702dbcecd4e3ff627a4901
2019-10-09 15:20:00 -07:00
Zeyi (Rice) Fan
70b00d43aa eden: make eden build with Rust datapack
Reviewed By: wez

Differential Revision: D17494253

fbshipit-source-id: 45bab057e5cefd8f2808be96ba31814c5196051b
2019-10-09 13:03:07 -07:00
svcscm
e540969b95 Updating submodules
Summary:
GitHub commits:

ca22474b16
ba51bf8336
b00991a9cf
80df4adb86
029f145b2e
5cfd1dd083
4d2dd78048

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 8d0046610f745cc79e2a95ab6f8cda804cb2abd3
2019-10-09 13:03:07 -07:00
svcscm
f695503b4f Updating submodules
Summary:
GitHub commits:

3fe0037e48
e00630bf70
946e907c9c
5b96cf2eb0
77d5a2c109
c350d4cea1
ab93c5bf2f
9274f54af9

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 13724c98f794dea8e570406c3a0b64e2c83cfd4a
2019-10-08 22:25:33 -07:00
Alexey Spiridonov
3fdcdad190 Revert / fix up D17158685
Summary:
Proxygen no longer uses `fbcode_builder` to run its tests, so whatever the purpose of D17158685, these `fbcode_builder` configs no longer affect Proxygen, and can be reverted to their original state.

Since the general design pattern for `fbcode_builder` has been to link everything as `.so`s, let's return to this (which helps fix Bistro's build).

Also, let's not waste time building & linking tests for libraries that are not the library under test. That is:
 - Before: The Bistro build also builds tests for wangle, proxygen, etc. This is a result of some accidental changes in D17158685.
 - After: We explicitly don't build test for any of the 4 dependencies here. This is OK because each project also has its own `fbcode_builder_config.py`, which **does** build tests.

This latter part should result in a build-time reduction.

Reviewed By: lnicco

Differential Revision: D17819858

fbshipit-source-id: 7cad1bed86b2f0c3934b0fc5d6fb33e6a2ee2695
2019-10-08 21:47:29 -07:00
svcscm
3184ffeda0 Updating submodules
Summary:
GitHub commits:

7ccc53da5c
19a311afb1
31e273bc7a

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0f431a636319f2776b333167ade53012815ef486
2019-10-08 21:47:29 -07:00
svcscm
dec1c2249b Updating submodules
Summary:
GitHub commits:

7a4406fff1
2f4e288143

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 1a496af357cb8f8baf7588c32332b3e68ec51203
2019-10-08 17:29:04 -07:00
Ken Yong Quan Oung
f76543c64b Add largest_directories_by_file_count to eden debug file_stats summary
Summary:
In order to optimize jobs using eden, we want to be able to see which directories we write/read a lot of files to/from. This information allows us to see if we can improve performance by adding certain directories to prefetch, or by symlinking directories that we write to often.

This diff adds to the summary a list of directories with at least 1000 files written to/read from them.

Reviewed By: fanzeyi

Differential Revision: D17747558

fbshipit-source-id: cf59beeee7c2eda9dea0dfa99f7ab92be9b33e1e
2019-10-08 13:33:15 -07:00
Ken Yong Quan Oung
a0a1610950 Remove unused --sizes argument from eden debug file_stats command
Summary:
Since it has become cheap to fetch file sizes, we made a change in D17633671 to ignore the --sizes flag and always fetch sizes.

Now that we have removed the use of --sizes flag on the Sandcastle side in D17729705, we can remove the flag from the cli as well.

Reviewed By: fanzeyi

Differential Revision: D17746946

fbshipit-source-id: 1a943e32db6a6f6754a20d8e8fa3ac25f241f778
2019-10-08 11:27:54 -07:00
Ken Yong Quan Oung
b80e719c81 Fix type annotation for ExpectedFileSet
Summary:
## Backstory
Pyre was throwing errors in my diff (D17747558) regarding an extraneous fixme. Turns out PyreBot has been adding and removing these fixmes during version updates (see D17135557 and D16183608), so I suspect it's something to do with the Pyre version. Anyways, I figured it'd be easier to do the annotation than to remove the fixme and risk Pyre throwing the same error in a later diff.

## What I did
I added the Key type (Path) and Value type(ExpectedFileBase). mypy then started throwing an error regarding __iter__ returning the wrong type because it wanted an iterator over keys rather than values. Fixed that and added .values() to the for loop.

Reviewed By: genevievehelsel

Differential Revision: D17806135

fbshipit-source-id: c07feee33db78a9bff19ba9856a7047657b8c63e
2019-10-08 11:18:51 -07:00
svcscm
75e049e7be Updating submodules
Summary:
GitHub commits:

bc1c56c35b
9ef6ae81a6
3c81e5743f
237ea0029f
cff5937685

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: bd17e8c604c745ea9771e8486407980c8a71c026
2019-10-08 11:18:51 -07:00
svcscm
bbb1f742ca Updating submodules
Summary:
GitHub commits:

442d7def67
c138dc3d2c
3833f10989
6fc473d530
82d259dade

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 7834a4a8620d0ab9b60060e0abadfba457fb2890
2019-10-08 01:23:05 -07:00
svcscm
b0c6abab51 Updating submodules
Summary:
GitHub commits:

8f538e5f74

Reviewed By: zpao

fbshipit-source-id: 02817f56059231d315f265a44382ade7773f736b
2019-10-07 14:26:15 -07:00
svcscm
5e144c8070 Updating submodules
Summary:
GitHub commits:

c0fcc0584d

Reviewed By: zpao

fbshipit-source-id: 57e606b87b9a3c82ab52583b75f8f9b18fb67717
2019-10-06 22:26:00 -07:00
svcscm
6b60f7b3a9 Updating submodules
Summary:
GitHub commits:

0773adc6ed

Reviewed By: zpao

fbshipit-source-id: f4a9f5d00470936f93fa214c168491d800b51ba7
2019-10-06 12:25:13 -07:00