Commit Graph

66771 Commits

Author SHA1 Message Date
Zhengchao Liu
6e18144baa log file access in ActivityRecorder
Reviewed By: genevievehelsel

Differential Revision: D29559677

fbshipit-source-id: 2ff8b9144f1d5d1a83f83e6a55d69a26735a5315
2021-07-23 12:32:25 -07:00
Zhengchao Liu
bf292e9e5b create ActivityRecorder boilerplate and thread it to EdenMount
Summary:
We want to introduce two debug commands to record perf profiles such as files read. This can later be integrated to CI so that we can have this data for troubleshooting perf issues.
* `eden debug start_recording` starts recording perf metrics such as files read/written and fetch counts/latency for a given mount.
* `eden debug end_recording` stops recording and dumps the recorded profile to a local file.

This diff adds the boilerplate `ActivityRecorder` (borrowed heavily from `HiveLogger`'s implementation). The start command would create an instance of the recorder; the end command would destroy the recorder. The recording and dumping are handled by the implementing class.

Reviewed By: genevievehelsel

Differential Revision: D29506895

fbshipit-source-id: a927a363942a041d5ae54186a265576325dfeed5
2021-07-23 12:32:25 -07:00
svcscm svcscm
0cc223c20f Updating submodules
Summary:
GitHub commits:

71bc25efc5
4fd24282d9
55f7ded80d
4c97be6cd6
50b64b0124

Reviewed By: wittgenst

fbshipit-source-id: 2d34e7bf370297f1c1803541b266251d0a8bc071
2021-07-23 11:36:45 -07:00
svcscm svcscm
2c4412828c Updating submodules
Summary:
GitHub commits:

baeb9ad170
4501d1c5b5
919f949f15
2a4c3a17ae
a3b492a577
1ff2b831d4

Reviewed By: wittgenst

fbshipit-source-id: 992343f12c6c69af42e77b091a3dbcf66065c53e
2021-07-23 11:12:29 -07:00
svcscm svcscm
4658c71938 Updating submodules
Summary:
GitHub commits:

c9b06d1a25
e233ee6b26
ba9957e32e
71f3dcf5bc
6635eccadb
79f77064d3
41c1ce873c
d8031728fe
9c5f4daa28
9b83cabe41

Reviewed By: wittgenst

fbshipit-source-id: 1a4d15e80a392fc5cdab0589606ac4727d4e78c3
2021-07-23 10:42:58 -07:00
Genevieve Helsel
8263d8a606 set locale in hg env in integration tests
Summary: These are needed for mercurial in the test cases, we set this in the testharness C++ repo as well

Differential Revision: D29868460

fbshipit-source-id: e11cf41823ee073e3863fb5a38ecbf1146073ff5
2021-07-23 10:22:16 -07:00
svcscm svcscm
257f80e8f6 Updating submodules
Summary:
GitHub commits:

833b6e8c35
838076e06c
4e492a3e8f
0ab5607156
0dc6870f66
134e173eda
3967c751d0
1e04f96fca
b07db1e3a5
dfed581d81

Reviewed By: wittgenst

fbshipit-source-id: a5249eb70ffafc80dc15a280d923d50d78049e2e
2021-07-23 10:15:49 -07:00
Andrey Chursin
f3e4114186 fsprobe: implement sequential file reading test
Summary: This test reads files one by one and measures latency of reads

Reviewed By: kulshrax

Differential Revision: D29824745

fbshipit-source-id: abf73d4c279c184c2e76f2052304ea13c40e86b4
2021-07-23 10:09:25 -07:00
Liubov Dmitrieva
84aee08c10 Clean Up: remove old snapshots extension
Summary:
Clean Up: remove old snapshots extension.

This extension is unused and its name clashes with the new Snapshots project which offers a different implementation.

As discussed with markbt and yancouto, we should unfortunately delete this code.

Reviewed By: markbt

Differential Revision: D29875074

fbshipit-source-id: 2bcd835e58fc50c5aad94a184a4d2ecb6be79c9c
2021-07-23 09:57:35 -07:00
svcscm svcscm
53cf767dc6 Updating submodules
Summary:
GitHub commits:

3275d89256
c9cd4bddf8

Reviewed By: wittgenst

fbshipit-source-id: 3b5c3cc492c034653ba8267bf21179933d6297b5
2021-07-23 09:48:40 -07:00
Liubov Dmitrieva
6d86a24632 add support for issue CAT commit cloud tokens on corp
Summary:
Add support for issue CAT commit cloud tokens on corp Macs.

This is needed to support enabling Scm Daemon for all mac users **automatically**.

The tool `corp_clicat` is probably not yet deployed everywhere but it will work once deployed.

The current manual way will remain working as well.

The current way is manual:

* obtaining OAuth token from https://our.intern.facebook.com/intern/oauth/184975892288525

* running `hg cloud auth -t <token>` (the command stores the token into Mac keychain, Scm Daemon fetches from it).

The problem with the manual way is that users are not aware about scm daemon and the features it provides. The manual way worked fine when the tokens were also used for hg commit cloud extension as well but now they are not used.

Reviewed By: markbt

Differential Revision: D29791737

fbshipit-source-id: 2391a196167e1f17d53a3231dbf58f7cb2bcd39a
2021-07-23 06:51:23 -07:00
svcscm svcscm
1b2724aedf Updating submodules
Summary:
GitHub commits:

64d50619cc
d34bc8fae9
f806201772
e9c4bb1218

Reviewed By: wittgenst

fbshipit-source-id: 8a256ce8ea13ccade58f41460a95aa3c56b5289e
2021-07-23 01:03:35 -07:00
svcscm svcscm
895b409a6a Updating submodules
Summary:
GitHub commits:

01c28618e7

Reviewed By: wittgenst

fbshipit-source-id: 06d227c9844f62dcd36ae0fd57fc0271119013b4
2021-07-23 00:32:38 -07:00
svcscm svcscm
9c9fe99446 Updating submodules
Summary:
GitHub commits:

1d6cba3c07
13828d05f7
c521a9ab2b
597ff69d09
3e421dd5bb

Reviewed By: wittgenst

fbshipit-source-id: 5cb4352b2093ce29b3f0788c83d874a936cd4464
2021-07-22 20:01:22 -07:00
svcscm svcscm
0e77d80d9a Updating submodules
Summary:
GitHub commits:

ce3391293e
1486e47402
7a4cf50f1e
e32c20fdf1
61c9bd49c1
9bdc7126d0
374b8f95dd
2386315b55

Reviewed By: wittgenst

fbshipit-source-id: b3a95f82b21497386e0614216b720f571f9efd03
2021-07-22 17:55:55 -07:00
svcscm svcscm
3d3cad274d Updating submodules
Summary:
GitHub commits:

c0544369a2
32bcb6984a
397699503a
c8e48f49ec
2e5388178f
541198a7d4
c8a76c8891
ac3c34caba
3494264dc2
f222c26ae1

Reviewed By: wittgenst

fbshipit-source-id: 3f1e7e64e98304b21e137051351ff2cc6b815dae
2021-07-22 16:43:12 -07:00
Andrey Chursin
ea75c06d58 fsprobe: read probe plan
Reviewed By: kulshrax

Differential Revision: D29824746

fbshipit-source-id: 40528a4408d7f682a1611b05c6ff788eee89a7d5
2021-07-22 16:12:19 -07:00
Andrey Chursin
b7f8d625bf fsprobe: add fsprobe crate
Summary: This utility will be used to measure latency and throughput of EdenFS

Reviewed By: kulshrax

Differential Revision: D29824747

fbshipit-source-id: f5298125bdaa16ccd52cb00a6bc3cd544c0967b7
2021-07-22 16:12:19 -07:00
svcscm svcscm
277f796db9 Updating submodules
Summary:
GitHub commits:

0f7b1c837a
3c3e2fe857
dcbc54af0f
aa0044fedd
9d018eb664
d346c2ab87
58f93028a6
c2009a8795
d2e793e261
49d7cde506

Reviewed By: wittgenst

fbshipit-source-id: d9856c9681cb553c9241d8f31c5c7f25ec90a948
2021-07-22 15:45:39 -07:00
Chad Austin
1488d43cf1 redirections: handle ValueError from readlink on Windows
Summary: readlink on Windows raises ValueError instead of OSError. Handle that.

Reviewed By: kmancini

Differential Revision: D29854170

fbshipit-source-id: 0bcd0466e64768da34d186dceee5ce6a00b1be41
2021-07-22 15:39:17 -07:00
svcscm svcscm
82c371b0cd Updating submodules
Summary:
GitHub commits:

937fc9806e
6323677069

Reviewed By: wittgenst

fbshipit-source-id: ba153206f1689cd1c0f1a68f0683a354b066d9d3
2021-07-22 15:12:25 -07:00
Yipu Miao
ca23978cdc Implement setPathRootId method
Reviewed By: chadaustin

Differential Revision: D29439945

fbshipit-source-id: 92c19ccffd14fdb8c99bcdf7be2f63960a4d5733
2021-07-22 15:04:31 -07:00
Stanislau Hlebik
d1e86ab457 mononoke: add more logging to add sync target call
Summary: It's nice to be able to keep track of what's going on

Reviewed By: mwdevine

Differential Revision: D29790543

fbshipit-source-id: b855d72efe8826a99b3a6a562722e299e9cbfece
2021-07-22 14:52:03 -07:00
Yan Soares Couto
3f8de3336a Add bubble id to upload files call
Summary:
Added an optional argument to `/upload/file`, that allows specifying a bubble id, which will be used to upload the file into the ephemeral blobstore instead of the main one.

This is necessary in order to create a snapshot, as all files must be in the ephemeral blobstore.

Reviewed By: liubov-dmitrieva

Differential Revision: D29734333

fbshipit-source-id: c1dcf8d5a78819925f8defbfbd7d06b0f6a9e973
2021-07-22 13:47:12 -07:00
Yan Soares Couto
681a5305e3 Use NonZeroU64 as BubbleId
Summary: Insert id's are always positive, so let's use `NonZeroU64` instead of `u64`. This is more restricted, which is good, but also has the added benefit that `Option<NonZeroU64>` doesn't use any additional space, because of compiler optimizations.

Reviewed By: StanislavGlebik

Differential Revision: D29733877

fbshipit-source-id: 8a0e1a1bd84bcedbba51840f1da8f8cac79bca42
2021-07-22 13:47:12 -07:00
Yan Soares Couto
16fbc46f2c Add ephemeral handle
Summary: Ephemeral handle is a blobstore that's built from a bubble and a "main blobstore", which first attempts to read from the ephemeral blobstore, but falls back to the main one. Will be used to read/write stuff in snapshots.

Reviewed By: liubov-dmitrieva

Differential Revision: D29733408

fbshipit-source-id: f15ae9d3009632cd71fafa88eac09986e0b958e7
2021-07-22 13:47:12 -07:00
svcscm svcscm
13bcc58555 Updating submodules
Summary:
GitHub commits:

b859118226
7a2204a967
3fd4a8c943
04cae14ea3

Reviewed By: wittgenst

fbshipit-source-id: d6375e91856f78c4c65ea9240cbc822ce6d20580
2021-07-22 13:04:59 -07:00
Dustin Shahidehpour
e5a7ac4494 clean up python in prefetch cli
Summary:
- steal zertosh's helpers for avoiding CRLF on Windows.
- make private functions start with an underscore

Reviewed By: genevievehelsel

Differential Revision: D29804526

fbshipit-source-id: 5916f8cf634a6e8f15b57b0f588d93f84e6ecf81
2021-07-22 13:01:57 -07:00
svcscm svcscm
63fb32cf7c Updating submodules
Summary:
GitHub commits:

8430823fbf

Reviewed By: wittgenst

fbshipit-source-id: 3d5b959754e1b1c14fc19da69e4165e93209404e
2021-07-22 12:37:50 -07:00
Liubov Dmitrieva
bf41088ef2 Move EdenApi Uploads code from commit cloud extension to core
Summary:
Move EdenApi Uploads code from commit cloud extension to core

So this can be later used for pushes as well. The code is not commit cloud specific.

The function takes revs and returns uploaded, failed lists that are also revs.

Reviewed By: yancouto

Differential Revision: D29846299

fbshipit-source-id: e3a7fbc56f0b651c738dc06da7fdb7cde4feedf7
2021-07-22 11:52:57 -07:00
svcscm svcscm
1d356a5d9b Updating submodules
Summary:
GitHub commits:

7408f041c0
15fa43a969
7bdbc103f2
d0a98ddb21

Reviewed By: wittgenst

fbshipit-source-id: ab7de29c3f179899570957fc14738d1cccb5c62d
2021-07-22 10:38:34 -07:00
svcscm svcscm
86dd9d62b8 Updating submodules
Summary:
GitHub commits:

1059ea4373
1a3872d2f0

Reviewed By: wittgenst

fbshipit-source-id: 0acb102f1f9fd7db79593747d856434efb441187
2021-07-22 10:01:43 -07:00
Mark Juggurnauth-Thomas
3dca04d257 tests: update test-backfill-derived-data.t
Summary: This test is overly reliant on exact logging output, and the output has changed.  Update the test for the new output, and make it a bit more lenient in the process.

Reviewed By: StanislavGlebik

Differential Revision: D29787827

fbshipit-source-id: 3e8aa77d2edcf3d0ca95c0d17d0b4e3845b78ae3
2021-07-22 09:34:14 -07:00
CodemodService Bot
0a402ce760 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D29841733

fbshipit-source-id: c9da8e0324f402f3b9726f2733b51de56abde8f6
2021-07-22 09:22:41 -07:00
Liubov Dmitrieva
33ab763498 Improve integration tests coverage for hg cloud upload and hg cloud sync
Summary:
Improve integration tests coverage for `hg cloud upload` and `hg cloud sync` with enabled upload.

This includes end2end tests for uploading mutation information, pulling commits from another repo,
generally how uploads behaves after a rebase, after file moves, after editing a commit message, how copy_from data has been preserved.

Reviewed By: markbt

Differential Revision: D29816436

fbshipit-source-id: 2aa421c8479683721984e13d537c34df8b1ca2d1
2021-07-22 08:31:19 -07:00
Liubov Dmitrieva
34fb6f721e update test certificates for another 10 years rather than the default 1 year
Summary: update test certificates for another 10 years rather than the default 1 year

Reviewed By: markbt

Differential Revision: D29846930

fbshipit-source-id: 98bc139c21e4d9e4cb5bab46485d849345bcc43d
2021-07-22 08:18:48 -07:00
Yan Soares Couto
838da13eb7 Use provided env var for CARGO_TARGET_DIR if present
Reviewed By: liubov-dmitrieva

Differential Revision: D29793661

fbshipit-source-id: 887dfce99439fc0db42e8ab6d57171b682d78fee
2021-07-22 06:10:56 -07:00
svcscm svcscm
466c96006a Updating submodules
Summary:
GitHub commits:

5b6063051b
05432e2edc
0bcb2b541c
8af1f38135

Reviewed By: wittgenst

fbshipit-source-id: 3180bd26b00ec7a119bfc42d3d524375fa008ab8
2021-07-22 03:57:38 -07:00
Liubov Dmitrieva
07b0dcf9cf move commitcloud to use auth settings provided already for the default path
Summary:
Move commitcloud to use TLS auth settings provided already for the default path.

I think it is a right approach to clean up separate configuration given that the certs for the default path has been supported for all platforms now and we have fully migrated to http/TLS.

Tested the token mode as well. Keep it fully supported for now.

This change will also allow on Demand to remove their custom commit cloud configuration.

Reviewed By: mzr

Differential Revision: D29764745

fbshipit-source-id: bc5681a919dfa6ec79ea3b832c9f4b98551278de
2021-07-22 03:46:53 -07:00
svcscm svcscm
a7779ea058 Updating submodules
Summary:
GitHub commits:

f95fa2c017

Reviewed By: wittgenst

fbshipit-source-id: 3e82889a7838415c02c5d2bc399db0347286b016
2021-07-22 03:13:07 -07:00
Jan Mazur
f19819341f overwrite headers with config and verbose mode
Summary:
It's useful to be able to overwrite or inject http headers without changing client's source code. I needed that when I was proxying client requests through ncat running locally on my machine - I had to set Host header.
Moreover, if it's part of the config, we'll be able to distribute it quickly with dynamicconfig to do some things.

Also, we have http.verbose that's being used by rust http client but it's not respected by mononokepeer in python. I'm adding that here as well. Not full blown verbose mode because it's not necessary - we're only upgrading to websocket.

Reviewed By: farnz

Differential Revision: D29792386

fbshipit-source-id: 51b7f3cf07a870636ac6aa126f0efb45e979ef30
2021-07-22 02:54:13 -07:00
Mark Juggurnauth-Thomas
1f81d30c93 source_control_service: add tree_exists and commit_path_exists
Summary:
Add methods to easily determine whether a tree exists, or whether anything
(either a file or a tree) exists at a particular path.

Reviewed By: StanislavGlebik

Differential Revision: D29815982

fbshipit-source-id: f3fb1919545bdcb46ed663a0a514338dc137abee
2021-07-22 00:09:27 -07:00
Zhengchao Liu
067abe2d55 collect memory and disk fetch counts
Summary: This adds counters for memory and disk counts in addition to import count so that we can understand cache hit rates during local investigation or output this in ActivityRecorder.

Reviewed By: genevievehelsel

Differential Revision: D29805637

fbshipit-source-id: 34261f91c33d6bd4bcb4b85b17d2e68360410896
2021-07-21 21:37:20 -07:00
svcscm svcscm
7ba870c339 Updating submodules
Summary:
GitHub commits:

13f3e28eff
4e2648bc03
8b331cef54
f528d011cd

Reviewed By: wittgenst

fbshipit-source-id: bea431f41c2affe69e9b13f17be70b02e83e9a1e
2021-07-21 19:40:54 -07:00
svcscm svcscm
3f78d51036 Updating submodules
Summary:
GitHub commits:

bfbda14bfb
3a1532f0ee
8c7c0cf396
1307e59b80
ddc1045e70
ce4bed2a3b

Reviewed By: wittgenst

fbshipit-source-id: 8784025b14d1717e5a8d60836d169b820cf37964
2021-07-21 19:19:24 -07:00
svcscm svcscm
55125360b4 Updating submodules
Summary:
GitHub commits:

1d34d2a716
9a83b0bdd4
d402afed9d
85dae1a6fb
76941784f4
6e842aa10e
e2fc49162e
cb9c9f020e
df26cc037c

Reviewed By: wittgenst

fbshipit-source-id: 4fcae3287b40f35c553eeed0461642dc7ed1c7bb
2021-07-21 18:56:25 -07:00
svcscm svcscm
c1c737af82 Updating submodules
Summary:
GitHub commits:

c8cfbe3dd1
cc7160dd70
95eb0cd5c6
901e514c33
dd258aaddf
1c6d385ada
fd856cb96a
5c4b9f11a5
dc23e28ab7
1c7acfaa02
1cce4ffb86
955ff51802

Reviewed By: wittgenst

fbshipit-source-id: 62e6ece74d24f91b828c7f40cf55069cade8a265
2021-07-21 18:26:23 -07:00
svcscm svcscm
416016efab Updating submodules
Summary:
GitHub commits:

6455c9a8a9
dcc350f524
2d39ec5b98
4baba28200
e057921807
84eef260de
ac42b19f8e
1f628e6aba
bba9277699
04e22ccad1
24acb5fc9a
c71b547d10
07ca4586fe

Reviewed By: wittgenst

fbshipit-source-id: 7b478c29619b7358c663cced783a40031402de01
2021-07-21 17:55:32 -07:00
Pyre Bot Jr
1b62f043b6 suppress errors in fbcode/eden - batch 1
Differential Revision: D29827031

fbshipit-source-id: f46b586a4e4710f6fd19828c09fd4241df562dd9
2021-07-21 17:40:14 -07:00
svcscm svcscm
90694e5975 Updating submodules
Summary:
GitHub commits:

5eff8f164e
26e4a1e04d
ca9a05326b
dd7d175acf
5e5754e5bf
2023528ca4
ecab9a1d19
6daa11d4ae
751dffb266
0cfec866ef
885c08a977
0bc7b8d790

Reviewed By: wittgenst

fbshipit-source-id: 4445a7895fa36f78b1bfd9b07075da6fe68726e9
2021-07-21 17:29:45 -07:00