Commit Graph

2791 Commits

Author SHA1 Message Date
Puneet Kaushik
a48cd827f1 Move getLogPath() and dependent functions to EdenInit
Summary: Moving these functions to EdenInit so we could use them on Windows. This diff doesn't change the behavior.

Reviewed By: chadaustin

Differential Revision: D16653498

fbshipit-source-id: 5cc8c2f4b12f54035fb86ae20f3274245642d032
2019-08-10 11:19:23 -07:00
svcscm
9077a3421f Updating submodules
Reviewed By: yns88

fbshipit-source-id: 93d3fafe5c7655e34e581aef9ecec84b9c09c3eb
2019-08-10 11:19:23 -07:00
svcscm
874f70a627 Updating submodules
Reviewed By: yns88

fbshipit-source-id: c525db5ec7c34f3cfa66530dad6d8b24077c94c8
2019-08-09 13:02:03 -07:00
Adam Simpkins
9cfbf61798 getdeps: make sure ManifestLoader never reloads manifests
Summary:
In response to review feedback for D16477400 and D16477401, update
`ManifestLoader.load_all_manifests()` to only update its data for projects
that have not previously been loaded.  This helps ensure that code using a
single `ManifestLoader` object cannot have two in-memory `Manifest` objects
for the same project, and that existing data (such as project hashes) can't be
invalidated if a manifest is later loaded from updated on-disk data.

Reviewed By: pkaush

Differential Revision: D16586682

fbshipit-source-id: 50b1979ec55f2ad6901629cd852293a8f6ca903f
2019-08-09 11:22:24 -07:00
svcscm
967a85a126 Updating submodules
Reviewed By: yns88

fbshipit-source-id: fc980e902f8b03b48d5801488987f32732fe426c
2019-08-09 11:22:24 -07:00
svcscm
6f3f4d5363 Updating submodules
Reviewed By: yns88

fbshipit-source-id: 8800c8078ca856e5fa6343db537390bcdfbf89c3
2019-08-08 13:12:03 -07:00
Brian Strauch
2dee36afea Move cmd column to the far right
Summary:
Moves the CMD column to the right, to prevent long commands from being truncated.
https://pxl.cl/GG37

Reviewed By: chadaustin

Differential Revision: D16626771

fbshipit-source-id: 291e862d2fcff6c252ae6263536a799428577137
2019-08-08 12:50:57 -07:00
svcscm
ae0d10759f Updating submodules
Reviewed By: yns88

fbshipit-source-id: 6aba866b7e145e39133997780c391012bdf3799d
2019-08-08 12:50:57 -07:00
svcscm
5dd4f90d4e Updating submodules
Reviewed By: yns88

fbshipit-source-id: d555f46e52db5b1f040050ec6d11bc187f299bc1
2019-08-08 12:29:12 -07:00
svcscm
a193926e1f Updating submodules
Reviewed By: yns88

fbshipit-source-id: ab99c2a9f4ecd3098dbbdb7d2fa3c4e5fbab0904
2019-08-07 12:23:43 -07:00
Adam Simpkins
8dc58acda1 rename the fb303_thrift_cpp2 build rule to fb303_thrift_cpp
Summary:
Drop the `2` from the `fb303_thrift_cpp2` rule name.

The old `cpp` version of fbthrift is gone, `cpp2` is the only supported C++
version, so lets drop the `2` from this build rule name.

I plan to change some of the CMake thrift rule generation code soon, to
support multiple languages (namely Python).  As part of this I plan to
automatically add a language-specific suffix(`_py` or `_cpp`) to the build
rules.  It seems better to use `_cpp` rather than `_cpp2` for C++ libraries.
Changing the name for this fb303 rule will make it fit this planned naming
scheme.

Reviewed By: chadaustin

Differential Revision: D16653264

fbshipit-source-id: e4da70c79ff14e9981717ab909d982770d104512
2019-08-07 11:22:34 -07:00
svcscm
6da3985cd3 Updating submodules
Reviewed By: yns88

fbshipit-source-id: b3d84f6df7db1e400d6ca3c9597b069966328378
2019-08-07 11:22:34 -07:00
svcscm
8c4ec5b169 Updating submodules
Reviewed By: yns88

fbshipit-source-id: 39679982cb27ffc42ca42220359bf3be7ebb01f8
2019-08-06 20:30:02 -07:00
svcscm
473fca0af1 Updating submodules
Reviewed By: yns88

fbshipit-source-id: 382d8cfeba1a7d7d77afe8dada10953bb6690413
2019-08-05 20:22:29 -07:00
svcscm
d23dc1ebb5 Updating submodules
Reviewed By: yns88

fbshipit-source-id: 254178e08042af082a0b84bd1cc9843499af5cae
2019-08-05 20:22:29 -07:00
svcscm
2c34f8aa73 Updating submodules
Reviewed By: yns88

fbshipit-source-id: d86a9d51656213c4979cf7ce357bc6dba1558a97
2019-08-05 16:35:52 -07:00
Chad Austin
eab4acd9e8 fix TSAN false positive in InodeMap::updateOverlayForUnload
Summary:
Now that we have unsafe access to the contents of a
folly::Synchronized, InodeMap::updateOverlayForUnload can just access
the storage because it knows nobody else has access.

Reviewed By: simpkins

Differential Revision: D16632778

fbshipit-source-id: 4b2c1d6679e2655671d43899407bac1a19f2cab9
2019-08-05 15:43:55 -07:00
Adam Simpkins
67003591aa suppress a gcc warning about noreturn
Summary:
`StartupLogger::exitUnsuccessfully()` is declared as `noreturn`, and its last
statement is to call another `noreturn` method.  However, this other method is
virtual, and the behavior of the `noreturn` attribute on virtual functions
doesn't seem consistently implemented across compilers.  gcc doesn't seem to
treat the virtual method as `noreturn`, and therefore still warns that
`exitUnsuccessfully()` may return.

This suppresses that warning by adding a `folly::assume_unreachable()`
statement.

Reviewed By: fanzeyi

Differential Revision: D16653184

fbshipit-source-id: e0a2d8a4420d3582f849e93568a5081827a788f5
2019-08-05 15:03:18 -07:00
svcscm
76963f33f8 Updating submodules
Reviewed By: yns88

fbshipit-source-id: feb1b0318fa3292429459928d0dce1bb088a4aa5
2019-08-05 15:03:17 -07:00
svcscm
7981258f94 Updating submodules
Reviewed By: zpao

fbshipit-source-id: a3841e21c3ba1726d5961be16894daf13f44723c
2019-08-05 01:24:48 -07:00
svcscm
0eb33a5b52 Updating submodules
Reviewed By: zpao

fbshipit-source-id: c335360154dbc64b0e1ddbe50503c67fceba85b9
2019-08-04 15:24:35 -07:00
svcscm
e819ff8a4a Updating submodules
Reviewed By: zpao

fbshipit-source-id: 7806761cd6701805a7acedffa8ae6a543260fab5
2019-08-03 14:56:30 -07:00
Puneet Kaushik
fc4ba6257b Fixing Eden Windows build
Summary: Windows build was broken by D16461868.

Reviewed By: simpkins, strager

Differential Revision: D16635408

fbshipit-source-id: 928c78042ed2814c0032164592545422c868196a
2019-08-03 08:09:14 -07:00
svcscm
9687a5fb46 Updating submodules
Reviewed By: zpao

fbshipit-source-id: 08014df1718a72eac798421be9462a9f30257d05
2019-08-03 08:09:13 -07:00
svcscm
8260a7cf0f Updating submodules
Reviewed By: zpao

fbshipit-source-id: a854ff01facfbd447476889c9641eeee21d2fc53
2019-08-02 22:06:44 -07:00
Puneet Kaushik
60dca8f396 Throw TTransportException in Edencli when the Edenfs not running
Summary:
Edencli will throw and crash the cli when the edenfs is not running.

Before:
```
PS C:\open\fbsource\fbcode\eden\facebook\win> C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe status
Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\__main__.py", line 3, in <module>
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\cli\main.py", line 1546, in main
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\cli\main.py", line 140, in run
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\cli\config.py", line 604, in check_health
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\cli\util.py", line 164, in check_health
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\thrift\client.py", line 74, in __enter__
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\thrift\client.py", line 86, in open
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\thrift\transport\THeaderTransport.py", line 247, in open
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\thrift\windows_thrift.py", line 109, in open
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\thrift\windows_thrift.py", line 66, in connect
  File "C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe\eden\thrift\windows_thrift.py", line 45, in _checkReturnCode
eden.thrift.windows_thrift.WindowsSocketException: Windows Socket Error: 10061
```
After:
```
PS C:\open\fbsource\fbcode\eden\facebook\win> C:\open\fbsource\fbcode\eden\win\build\package\edencli\edenfsctl.exe status
ps: illegal option -- p
Usage ps [-aefl] [-u uid]
-f = show process uids, ppids
-l = show process uids, ppids, pgids, winpids
-u uid = list processes owned by uid
-a, -e = show processes of all users
-s = show process summary
-W = show windows as well as cygwin processes

edenfs not healthy: edenfs not running
```
It internally uses a bash ps command to look for edenfs when the thrift connection fails. Still looking into good ways to fix that.

Reviewed By: strager

Differential Revision: D16565180

fbshipit-source-id: 3c12c538451293e20fabc51c2fe4f1a9bd5b84c0
2019-08-02 17:49:16 -07:00
svcscm
dd1a800b45 Updating submodules
Reviewed By: zpao

fbshipit-source-id: b2b1dcccbee8eec99d2874638cbeeaa96613a3a0
2019-08-02 17:49:16 -07:00
svcscm
2c53f7d1b7 Updating submodules
Reviewed By: zpao

fbshipit-source-id: 436df19ac1a4bf8e7090771b33f457b8b8dc7682
2019-08-02 16:27:10 -07:00
Jake Crouch
ca9e79a791 Remove toHash from HashUpdateJournalDelta
Summary:
The toHash field is unnecessary in HashUpdateDeltas since we only ever iterate in reverse. We instead keep track of the current hash in the journal itself instead of looking at the toHash of the latest HashUpdateDelta.

Delta Struct Sizes:
> File Change: 88
> Hash Update: 96

Reviewed By: strager

Differential Revision: D16522519

fbshipit-source-id: 43baccc8ef2579f72609cc84e81e218794b11725
2019-08-02 15:48:01 -07:00
Jake Crouch
33ccbd62e8 Split Deltas into File Changes and Hash Updates
Summary: Create the second delta type HashUpdateJournalDelta that keeps track of changes to the hash [and the unclean files associated with that hash change]. Journal methods were updated to account for the different delta types.

Reviewed By: strager

Differential Revision: D16520444

fbshipit-source-id: 2a5cea11c9e70e30f6db55d9c8e33f9322ae91fc
2019-08-02 15:48:00 -07:00
Jake Crouch
6dc9783049 Add in tests for hash updating deltas
Summary: Add in two tests for deltas that change commit hashes since a test for this did not exist before. Previously a bug in setting the fromHash of a result only showed up as a failure in Watchman's integration tests with Eden.

Reviewed By: chadaustin

Differential Revision: D16528248

fbshipit-source-id: 56eede749ef2da4dc492a1f7376dc07ca8aa3050
2019-08-02 15:48:00 -07:00
Jake Crouch
c605d7058b Journal Delta Memory Estimation Fixes
Summary: Deltas are stores in a deque and therefore not malloced independently so therefore there is no reason to be getting the goodMallocSize of them. We also need to do accounting for the buckets in the deque that the deltas fall into.

Reviewed By: strager

Differential Revision: D16566675

fbshipit-source-id: 4506fbbcc2044b8fdfe6244313ef7480cfa5151e
2019-08-02 15:48:00 -07:00
svcscm
f5fec45c68 Updating submodules
Reviewed By: zpao

fbshipit-source-id: ab041e3c578c2f0b542ee093830e2988de6126bb
2019-08-02 15:48:00 -07:00
svcscm
60c83ff74d Updating submodules
Reviewed By: zpao

fbshipit-source-id: c7a80571238669f97a32fdc390ffd0dee8631cd8
2019-08-02 13:31:31 -07:00
Brian Strauch
a9bcf08d67 Fixed command name bugs
Summary: The original `eden top` trimmed `chg[worker/12345]` to `12345]` since the code trims the basenames of commands like `/usr/bin/ls` to `ls`. Now `eden top` only trims commands with exact paths and leaves commands with relative paths as is.

Reviewed By: simpkins, strager

Differential Revision: D16572655

fbshipit-source-id: a563ed5d4eb311244211e7db903fb64a37dcc4a4
2019-08-02 09:44:03 -07:00
Brian Strauch
1556dec257 Total FUSE access time
Summary: Record a rolling sum of the time taken by any FUSE call on a per-process basis

Reviewed By: strager

Differential Revision: D16553149

fbshipit-source-id: 54f1e453916727a40f245b294239dc1b232a8967
2019-08-02 09:44:03 -07:00
svcscm
032745a144 Updating submodules
Reviewed By: zpao

fbshipit-source-id: 20835b06ba65c4d4289e811db9e890646b359637
2019-08-02 09:44:03 -07:00
svcscm
d6faf04d5a Updating submodules
Reviewed By: zpao

fbshipit-source-id: 88f161fa1d1c52cea21f47cdc107ce12c638b9d4
2019-08-01 18:33:48 -07:00
Adam Simpkins
cbff08263b change newEdenError() to format arguments with folly::to<string>()
Summary:
Change the behavior of `newEdenError()` to simply join its message arguments
together using `folly::to<std::string>()` rather than using
`folly::sformat()`.

Only a couple locations in the code were actually passing in a format string
correctly.  Several other locations in the code were incorrectly passing in
arguments that they expected to be joined.  This resulted in the error
messages being truncated, as the initial string did not contain any format
placeholders, so the trailing arguments were simply ignored.

Reviewed By: strager

Differential Revision: D16592709

fbshipit-source-id: d56f5387e05da2a68d94e6badac28ffcf68d6eab
2019-08-01 16:51:38 -07:00
svcscm
1f3402cd39 Updating submodules
Reviewed By: zpao

fbshipit-source-id: e03b0651494000c6394a847a9dc178cd2f258136
2019-08-01 16:51:38 -07:00
svcscm
7d9b3276d0 Updating submodules
Reviewed By: zpao

fbshipit-source-id: e3ea07bd8fc3fb245b2fad7dff26933cfd5ab1ed
2019-08-01 14:14:36 -07:00
Brian Strauch
ad91b23667 Column rename and alignment
Summary:
Renamed columns to save space, but maintain readability. Numeric columns are right aligned, and other columns are left aligned.
https://pxl.cl/G09n

Reviewed By: chadaustin

Differential Revision: D16470237

fbshipit-source-id: 8ff745e5b6cc23c4add85f8ff6ff5a6cbd388dfa
2019-08-01 13:38:32 -07:00
Brian Strauch
2d8fdd27ba Select sorted column with arrow keys
Summary:
Use the left and right arrow keys to choose which column is sorted! Uses the terminal's default colors.
https://pxl.cl/FNs1
https://pxl.cl/FNs2

Reviewed By: chadaustin

Differential Revision: D16434277

fbshipit-source-id: f8353c8b3f2fe0d9c7bef776e56d4a2f0402d271
2019-08-01 13:38:32 -07:00
Brian Strauch
273ab37d15 Better sorting mechanism
Summary: Ability to sort by any field in the `Process` object. Coming next: Keyboard controls for selecting which column to sort by

Reviewed By: chadaustin

Differential Revision: D16431719

fbshipit-source-id: 1fadb622e56cd86da68d224b99ecf8cfc39240c1
2019-08-01 13:38:32 -07:00
Brian Strauch
3abcc3bef1 Record backing store imports with RequestData
Summary: Uses the existing RequestData class to make calls to static functions to set and get the `didImportFromBackingStore` flag.

Reviewed By: simpkins

Differential Revision: D16461868

fbshipit-source-id: e3ed39249f5dd1a842ad06a204b5933014b12f7f
2019-08-01 13:38:31 -07:00
John Strizich
cd069aca3f add manifest for re2
Summary: needed for openr

Reviewed By: simpkins

Differential Revision: D16010070

fbshipit-source-id: 6d485fa7e4e321e6cd23d9894b38c1ecc7574665
2019-08-01 13:12:39 -07:00
Puneet Kaushik
3878986e2c Run hg debugedenimporthelper with CWD as repository
Summary: hg debugedenimporthelper should either have the repo path as argument or the current working directory should be inside a repo. Setting the current working directory for the process.

Reviewed By: strager

Differential Revision: D16565042

fbshipit-source-id: d6e826bebf58fd58f5250e6c477849ca147628c8
2019-08-01 12:10:03 -07:00
svcscm
29dba2fab3 Updating submodules
Reviewed By: zpao

fbshipit-source-id: 050a53e1bad2333e42daf3c6b5e03be7dc5893f2
2019-08-01 12:10:03 -07:00
svcscm
1c032f5d93 Updating submodules
Reviewed By: zpao

fbshipit-source-id: 39c451a7b3095c30a28fa2dd338be0542951e690
2019-07-31 21:11:27 -07:00
Adam Simpkins
96c6b7e849 have CMakeBuilder emit a script to allow invoking CMake manually
Summary:
While developing on a project it is often convenient to be able to invoke its
build manually, rather than always needing to re-run `getdeps.py`.  This
updates the CMakeBuilder to also emit a script that can be used to manually
run CMake outside of `getdeps.py`.

The CMakeBuilder is the only builder that this really matters for right now,
as pretty much all of the projects where we do first-party development use
CMake for their build system.

Reviewed By: pkaush

Differential Revision: D16477399

fbshipit-source-id: c8a14af158af7b32d6c799ef685b037e68b748ff
2019-07-31 20:56:53 -07:00