Commit Graph

83180 Commits

Author SHA1 Message Date
Open Source Bot
7e31af8808 Updating submodules
Summary:
GitHub commits:

a1657f7e61
82fdcacff6
404aaa787b
53326d2311
23835f14c5
45b66317e5

Reviewed By: jurajh-fb

fbshipit-source-id: 47060d457b731e32ef014b4f11059a01fef595f6
2023-07-08 16:37:04 -07:00
David Tolnay
4d0b498e21 Updates of dtolnay crate-o-matic universe
Reviewed By: zertosh

Differential Revision: D47316925

fbshipit-source-id: d6d374466693cff397a0358bb38c790575998a21
2023-07-08 14:36:37 -07:00
David Tolnay
c93c3b3ef8 Update serde and serde_json
Reviewed By: zertosh

Differential Revision: D47316922

fbshipit-source-id: bc9c0b407d27fee3d590e456d4ddba34e0228f34
2023-07-08 14:34:39 -07:00
David Tolnay
ea7950393c Update syn from 2.0.16 to 2.0.23
Summary: This supports new syntax added in the past months, including `c"..."` CStr literals.

Reviewed By: shayne-fletcher

Differential Revision: D47316927

fbshipit-source-id: ac0e514ca89dad282e64decd01d3a94b3bff8490
2023-07-08 14:32:40 -07:00
Open Source Bot
34f6dc1a8a Updating submodules
Summary:
GitHub commits:

3d31cab5aa

Reviewed By: jurajh-fb

fbshipit-source-id: 19267df0b42dd3a2df30383103e6bb9b81dd9954
2023-07-08 00:51:47 -07:00
Adam Miskiewicz
b6e46427a3 zsh: add "goto" zsh completion (#666)
Summary:
Adds ZSH completion for the "goto" command, mimicking the approach for other similar commands.

I use this command all the time. Some ZSH completion is great! Makes it much faster to use.

Pull Request resolved: https://github.com/facebook/sapling/pull/666

Test Plan:
Tested locally

![image](https://github.com/facebook/sapling/assets/131916/a8f099b1-e1bb-4ed7-adff-6c5043630bf6)
![image](https://github.com/facebook/sapling/assets/131916/6316445a-62b3-4a57-89f9-71acfe8a8ccf)

Reviewed By: genevievehelsel

Differential Revision: D47282430

Pulled By: quark-zju

fbshipit-source-id: 947cd874ef4d407d531311b5325225e86ef8b79d
2023-07-07 21:01:53 -07:00
John Elliott
b243092784 Log NFS crawling process information to structured logger (scuba)
Summary:
* Added new LogEvent - NfsCrawlDetected
* Refactored code to produce a single string output for logging
* Refactored some improperly named local variables (too much Rust recently)

Reviewed By: mshroyer

Differential Revision: D47280602

fbshipit-source-id: 3254eff3f4be417d969fb41116484e350b249530
2023-07-07 19:48:02 -07:00
John Elliott
53d7ac31cf Add process name exclsuion and log reporting for NFS crawling detection
Summary:
* Added new helper readProcessIdsForPath to common/utils to obtain a list of pids that have open files/paths in the specified path.
* Integrated readProcessIdsForPath into the NFS heavy fetch detection logic - enumerating over mount points and collecting the pids for each that have open files therein.

Reviewed By: MichaelCuevas

Differential Revision: D47276991

fbshipit-source-id: bfee34718a23ab5aca7ebff32577374dadd35af9
2023-07-07 19:48:02 -07:00
John Elliott
21893e2149 Added support to enumerate list of processes with open files in Eden mounts
Summary:
* Added new helper readProcessIdsForPath to common/utils to obtain a list of pids that have open files/paths in the specified path.
* Integrated readProcessIdsForPath into the NFS heavy fetch detection logic - enumerating over mount points and collecting the pids for each that have open files therein.

Reviewed By: genevievehelsel

Differential Revision: D47202675

fbshipit-source-id: c00c0cf95822678769a01701981c725360107c99
2023-07-07 19:48:02 -07:00
John Elliott
7ae55e4c22 Added NFS heavy fetch detection
Summary:
* Added experimental config settings to control NFS heavy fetch detection
* Added periodic task to fire and detect for NFS heavy fetching based on controllable threshold

Reviewed By: mshroyer

Differential Revision: D47172825

fbshipit-source-id: 2b4f3da0df52e67288bcb8a874989500e50d2bb4
2023-07-07 19:48:02 -07:00
Open Source Bot
46d5e5636e Updating submodules
Summary:
GitHub commits:

ba707777f3
b0734a36a0
d3585cecc1

Reviewed By: jurajh-fb

fbshipit-source-id: 368d595e97bc296653e951dbdbf3420bae2c5768
2023-07-07 19:24:09 -07:00
Open Source Bot
3a3bcb9cbe Updating submodules
Summary:
GitHub commits:

f1b735fe1e
ed4fe6e583

Reviewed By: jurajh-fb

fbshipit-source-id: 3f7fa3152e70414231bbd86c0164c0ff059dad39
2023-07-07 10:35:02 -07:00
Andriy Yurchuk
25ca0768fd migrate copy_blobstore_keys to new CLI framework
Summary: A copy_blobstore_keys is a small utility binary that can be used to restore lost blobs from backup repositories. This diff migrates copy_blobstore_keys from dated framework to a new command-line argument parsing and initialisation framework.

Reviewed By: mitrandir77

Differential Revision: D47247626

fbshipit-source-id: f64f1cabdb314e91fcd89b3934f0fd79a55f5642
2023-07-07 09:34:02 -07:00
Open Source Bot
ca2c40127d Updating submodules
Summary:
GitHub commits:

8b7324593e
5bfafe4951

Reviewed By: jurajh-fb

fbshipit-source-id: f2464d0eb51016077a2864ec3cdacac0a43c9551
2023-07-07 07:57:19 -07:00
Juan Cruz Lepore
a3910b896e Add "ulimit -a" to eden rage
Summary:
EdenFS has a command eden rage which users run before posting to our Workplace user group. This command collects debugging diagnostics and puts them in a paste. Sometimes, users can have a broken EdenFS instance if their open file limit is misconfigured. Adding the machine's file limit will help our team identify these issues.  Right now, we might have to ask a user to run ulimit -a after we look at their post. This back and forth causes some friction. Adding this information to the rage would remove the need for this back and forth.

The Linux version of the "System load" section was missing a blank line at the end, so I added that.

Reviewed By: xavierd

Differential Revision: D47228835

fbshipit-source-id: 418a224d6277d86e6200ee69d771cf55eb10d4e1
2023-07-07 07:41:30 -07:00
Liubov Dmitrieva
9cc8936f49 remove deprecated code
Summary:
remove deprecated code

I have verified in mononoke test perf the api is not used.

Also, deprecated client side.

Reviewed By: markbt

Differential Revision: D47292080

fbshipit-source-id: 644b79e44aa898f0a6f8aafb1924ceb4c1c7ccca
2023-07-07 07:13:38 -07:00
Mark Juggurnauth-Thomas
6aaa43ac30 bookmarks_movement: improve error messages
Summary: These are not just used for hooks, so make that clear in the error message, and make it clear which variant we hit.

Reviewed By: clara-9

Differential Revision: D47214878

fbshipit-source-id: 94d1b78df782d53f07807e8faac95c15d84e11e6
2023-07-07 02:47:19 -07:00
Open Source Bot
2597881dbd Updating submodules
Summary:
GitHub commits:

5fd983d229

Reviewed By: jurajh-fb

fbshipit-source-id: c6bb117f5dcfcd4043d32a1828ac287f2b1de4c6
2023-07-07 00:28:39 -07:00
Open Source Bot
e45d072b51 Updating submodules
Summary:
GitHub commits:

0129385ac9
ef9eb26333
b41bd6c7a4

Reviewed By: jurajh-fb

fbshipit-source-id: c109f9a48202fdafe02a220987e6e3acf22b7619
2023-07-06 23:06:28 -07:00
Saul Gutierrez
a31e074773 symlinks: separate configs for enabling symlinks
Summary: When rolling out the symlinks feature, it will be better if we had different options for enabling it on EdenFS or other places. This allows the `experimental.windows-symlinks` option to specifically set a list, pontentially including`edenfs`, `watchman`, or `no-fsmonitor` alongside boolean values to achieve this.

Reviewed By: quark-zju

Differential Revision: D47239158

fbshipit-source-id: 7b5b567d34369f0a51613a39802974701d4663d6
2023-07-06 19:47:44 -07:00
Open Source Bot
c4a9ead5e5 Updating submodules
Summary:
GitHub commits:

203ffe0128
8a22bc5fa5
ed6843ce94
b5d04faca8
22713e5be4

Reviewed By: jurajh-fb

fbshipit-source-id: aac5f37cc4bd2c47cc2151bf8a35d88a5b0d1cf8
2023-07-06 19:37:06 -07:00
Open Source Bot
21693b6617 Updating submodules
Summary:
GitHub commits:

8724d628ed
bbafb72662
3d03c8e97f
8a16f99bd0
6ca8914248
0123a9dd44
bb37380c1e
2b10817365

Reviewed By: jurajh-fb

fbshipit-source-id: 88a0de7ee55f6e89ba69a1eac106923c71caa60f
2023-07-06 18:17:15 -07:00
Astrid Yu
04e094d14d third-party/rust: Bump tokio-util to v0.7.8
Summary: Seems that [the changelog doesn't list any excessively breaking changes](https://github.com/tokio-rs/tokio/blob/master/tokio-util/CHANGELOG.md), and it's needed to add http/3 support for reqwest.

Reviewed By: zertosh

Differential Revision: D47246722

fbshipit-source-id: 260f8b82bd63725f4c70a48271146dfe4dc1dce8
2023-07-06 18:10:00 -07:00
Open Source Bot
e79f8420f5 Updating submodules
Summary:
GitHub commits:

8724d628ed
3d03c8e97f
8a16f99bd0
6ca8914248
0123a9dd44
bb37380c1e
2b10817365

Reviewed By: jurajh-fb

fbshipit-source-id: b1517bf0832ca626f769566800b73016520bfb5a
2023-07-06 17:50:27 -07:00
Andres Suarez
a9e2956534 Update openssl from 0.10.54 to 0.10.55
Reviewed By: shayne-fletcher

Differential Revision: D47272712

fbshipit-source-id: 9b76b421bc20b4dff5b16699e88a0f7a14ca59a7
2023-07-06 16:07:24 -07:00
Open Source Bot
425be15226 Updating submodules
Summary:
GitHub commits:

ec474be388
1fc68f7fd7
84e1a8bcf0
d435264e4e
bca0860113

Reviewed By: jurajh-fb

fbshipit-source-id: 56859c7efdb03d3352890382b2a85cb31c824e5c
2023-07-06 15:48:47 -07:00
Evan Krause
909329c4cd Add tooltip per pull option
Summary: Generalize the tooltip on the pull button to depend on the selected pull option.

Reviewed By: quark-zju

Differential Revision: D47247600

fbshipit-source-id: 70a969573a8616b623702a95142770fc213809ad
2023-07-06 15:47:24 -07:00
Evan Krause
cfdb2ed5bc Account for other pull commands to mark pull as ongoing
Summary: We had logic to check if the ongoing or next queued operation is PullOperation. This needs to be generalized to support any pull operation, which can be defined in the configured PullButtonOption.

Reviewed By: quark-zju

Differential Revision: D47246966

fbshipit-source-id: 01182b67f10471ab41fb77a5f3a52e1c80e336c3
2023-07-06 15:47:24 -07:00
Evan Krause
d856afcbb5 Show command name for non-sapling command runners
Summary: Command runners other than Sapling were not rendering their command in the command history view.

Reviewed By: quark-zju

Differential Revision: D47246445

fbshipit-source-id: c29cde6abd4967c4bbafedf25c5a6a8ed31fa51f
2023-07-06 15:47:24 -07:00
Evan Krause
c2095f4cca Support running arc commands
Reviewed By: quark-zju

Differential Revision: D47246447

fbshipit-source-id: 72432e54941ad3dd6c5d110a1c9852f4551b5318
2023-07-06 15:47:24 -07:00
Evan Krause
793396494b Persist pull button choice
Summary: If you change your pull button choice, persist it via a config like we do for other settings. This way if you reload the page, your choice is remembered.

Reviewed By: quark-zju

Differential Revision: D47246444

fbshipit-source-id: d06a89187470db9903c37c73d1db04bf13e8df62
2023-07-06 15:47:24 -07:00
Evan Krause
bb96a5b45a Make pull button support additional options
Summary: Use VSCodeDropdownButton component to support a list of pull button options. This allows us to support arc pull internally. I think we can also put other features like pulling a specific commit here.

Reviewed By: quark-zju

Differential Revision: D47246448

fbshipit-source-id: 15e89b14088ab8f06f9b33c87fff6edc217cfe3f
2023-07-06 15:47:24 -07:00
Evan Krause
9a4b2e465d Dropdown button component
Summary:
Add a dropdown button component. This behaves like a button with a selection dropdown chevron next to it. Changing the selection via the chevron's dropdown menu changes the button text. Then, clicking the button runs that particular action.

This lets us have buttons which have built-in options / multiple valid choices. For example, we can use this for changing the submit button to Submit Draft for a draft PR/Diff.

This component is implemented as a controlled component, so the caller tracks the current selection and update the state outside the component. Typically, we'll want to persist your button choice or otherwise use an atom for it, so the responsibility is in the caller.

Reviewed By: quark-zju

Differential Revision: D43557610

fbshipit-source-id: 557418a2cf0a42255355c65fa6a21f439ac129c3
2023-07-06 15:47:24 -07:00
Open Source Bot
6066593c4f Updating submodules
Summary:
GitHub commits:

7faf5d9665
3ffe0156f1
647943f50f
41522866ee

Reviewed By: jurajh-fb

fbshipit-source-id: bf9d2228eee7baae37a38a67162ff7066465c2bf
2023-07-06 14:44:40 -07:00
Open Source Bot
0fb5a1bbff Updating submodules
Summary:
GitHub commits:

8379179adc
b74734e00b

Reviewed By: jurajh-fb

fbshipit-source-id: 37b4c2a0416be748453403e8bbb6dea614e3dde1
2023-07-06 12:34:53 -07:00
Andres Suarez
2160bdd790 Apply RUSTFIX
Reviewed By: shayne-fletcher

Differential Revision: D47263740

fbshipit-source-id: 35f08e7645e32526d5424a1260f7bcfdeeb285fb
2023-07-06 12:00:06 -07:00
Jun Wu
1420d8a92f commandserver: fix ui.system on Windows
Summary:
The `cmd.exe` does not use the "common" argv[] parsing [1] [2]. For example, the Rust code:

  Command::new("cmd.exe").arg("/c").arg(r#"notepad "a b.txt"#)

will execute (Windows OS command line, as a single string):

  cmd.exe /c "notepad \"a b.txt\""

which will execute:

  notepad \"a b.txt\"

and notepad will complain that the file cannot be found.

To fix it we need to pass the unquoted command and execute either:

  cmd.exe /c "notepad "a b.txt""
  cmd.exe /c notepad "a b.txt"

which will execute:

  notepad "a b.txt"

See also https://github.com/rust-lang/rust/issues/29494.

[1]: https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw
[2]: https://learn.microsoft.com/en-us/cpp/c-language/parsing-c-command-line-arguments

Reviewed By: zzl0

Differential Revision: D47242639

fbshipit-source-id: c75aa83430520c29002a095333546cc48695244e
2023-07-06 08:52:08 -07:00
Open Source Bot
d8285f97a8 Updating submodules
Summary:
GitHub commits:

2e8b4a1b2c
ccd3116663
6334606b71
11b0a649b9

Reviewed By: jurajh-fb

fbshipit-source-id: 7d52606e1f4d539f13127ccf9a2735e5ed6dc6f7
2023-07-06 07:53:41 -07:00
Open Source Bot
5ea4a3db25 Updating submodules
Summary:
GitHub commits:

7bbcef40d6
f14eca8756
341032a7c4
38118ccfaf
32654b1d93

Reviewed By: jurajh-fb

fbshipit-source-id: a7c6a641367857957a411a12c09ba73464b2058a
2023-07-06 06:30:28 -07:00
Haitao Mei
5d17a04d42 new admin tool bulk unlinking log errors into a file
Summary: This diff allows the new admin tool to log errors into a given file

Reviewed By: mitrandir77

Differential Revision: D47226107

fbshipit-source-id: 1b51f0f0635ce2b0163a837e4770d742cfe84f87
2023-07-06 05:24:58 -07:00
Haitao Mei
e45a58ac86 New admin tool bulk unlinking adding a new error logging funciton
Summary:
New admin tool bulk unlinking adding a new error logging funciton.

Next diff is going to implement the error logging function, so that we can write the error into a given file

Reviewed By: mitrandir77

Differential Revision: D47226108

fbshipit-source-id: ce6de8a1ca92855414a933099e29b3f33ba8ddbb
2023-07-06 02:09:52 -07:00
Open Source Bot
2599d693df Updating submodules
Summary:
GitHub commits:

07b4714509
4357552de9

Reviewed By: jurajh-fb

fbshipit-source-id: e20ca31027df188f8d37cfd8886c78ca62a61ce3
2023-07-05 21:33:59 -07:00
Open Source Bot
c98f2ed240 Updating submodules
Summary:
GitHub commits:

123488ee56
d74fcda0d7
a18901fd9e

Reviewed By: jurajh-fb

fbshipit-source-id: 5e7e834610da834e250fc96ff6bdf9295ba5de16
2023-07-05 19:14:29 -07:00
Saul Gutierrez
3ce780d2f2 symlinks: remove several magic numbers from DirType.h
Summary:
There are [some places in our codebase](https://www.internalfb.com/code/fbsource/[b4c1becb3f0d5c9df5c8ba2ac1f029ef3ba71bf9]/fbcode/eden/fs/model/TreeEntry.cpp?lines=84) that check for the mode of a TreeEntry using the macros defined at `DirType.h` on Windows.

Before the changes made in this commit, symlinks would get classified as regular files since we only used to check if the bits in one type matched another. The mode for regular files is `0x8000`, and the one for symlinks is `0xA000`. `0x8000 & 0xA000` is `0x8000`.

It seems like we are only using the first byte for determining the TreeEntry type, and then using the remaining three bytes for Unix-style filesystem permissions, so this change should be fine.

Reviewed By: xavierd

Differential Revision: D46860406

fbshipit-source-id: e00ade0c597d856ccba05a372264e6a5532e08f4
2023-07-05 17:44:47 -07:00
Open Source Bot
a9c886a2b6 Updating submodules
Summary:
GitHub commits:

4739c25382
4adbc5aa83
54be83d570
6efbaee1a4

Reviewed By: jurajh-fb

fbshipit-source-id: 733409eb6d8d9174b01ad5fe64fb02b96e0c3359
2023-07-05 16:53:07 -07:00
Open Source Bot
7e36d3c49e Updating submodules
Summary:
GitHub commits:

6ea41be450
e2849bdfeb
b9a9f29624
38bd8bb516

Reviewed By: jurajh-fb

fbshipit-source-id: cf8a061a7d60f43d931d8afa1eab753c2563d047
2023-07-05 14:37:05 -07:00
Zhaolong Zhu
4e8c6171e4 merge: log file merge conflicts
Summary: Log file merge conflicts, so we can reproduce conflicts locally and analyze them

Reviewed By: quark-zju

Differential Revision: D47230778

fbshipit-source-id: 1ab4dd10929788d9caed6df899762e5ad2ccf570
2023-07-05 14:22:10 -07:00
Evan Krause
ab458a73e5 Tweak text for last pull time
Summary:
We would say "last pulled 2 hours ago" or similar when you hover the pull button. Technically, this is not true. The time we show is the newest commit in the history's age.

Internally, commits in large repos come fast enough that you probably wouldn't notice the difference between "last pull" and "newest commit". But in OSS repos, it's quite easy to have the newest commit much older than when you last pulled.

So more precise wording here makes it seem less wrong.

Reviewed By: quark-zju

Differential Revision: D47238973

fbshipit-source-id: c5594197f35d37ee48b8683ca74f0a79704aaca0
2023-07-05 14:04:09 -07:00
Evan Krause
81864f1b4b Fix bad submit as draft tooltip pluralization
Summary: This tooltip was saying "Whether to submit these 0 diffs as a draft" if you were making a new commit. That's never correct, we should just update the number to 1 if it would have been 0. This happens when making a new commit because our list of commits to submit is empty.

Reviewed By: quark-zju

Differential Revision: D47238271

fbshipit-source-id: 2585386f8c717e34f0bbac6c67b985267b4891a3
2023-07-05 13:42:08 -07:00
Open Source Bot
9dddd22e00 Updating submodules
Summary:
GitHub commits:

3f4ca4009c
70fad27ab6
63847c7593
1faca78965
9b6623d5a5

Reviewed By: jurajh-fb

fbshipit-source-id: d3444767fb1af574e028d54dbb277458b7a8aa5d
2023-07-05 13:39:13 -07:00