Commit Graph

67956 Commits

Author SHA1 Message Date
svcscm svcscm
94413afb9f Updating submodules
Summary:
GitHub commits:

26cd6e79d8

Reviewed By: jurajh-fb

fbshipit-source-id: e2234623c2e6f5e047f56a3cc1e88813bcf60a8f
2021-09-10 07:05:13 -07:00
Stanislau Hlebik
0bceacec63 mononoke: add a simple binary that can compute statistics about commits
Summary:
It's nice to have that can quickly count and print stats about a commit. I'm
using it now to understand performance of derived data.

Reviewed By: ahornby

Differential Revision: D30865267

fbshipit-source-id: 26b91c3c05a1c417015b5be228796589348bf064
2021-09-10 06:01:53 -07:00
svcscm svcscm
8cbd19ba9c Updating submodules
Summary:
GitHub commits:

f34e1954ec
c0db13d4d7
dd1a020b43
5123e5b87f

Reviewed By: jurajh-fb

fbshipit-source-id: 1df1bd347eac5f566a737cd3a1cb6020dba25b71
2021-09-10 02:47:47 -07:00
svcscm svcscm
bdc98b41c4 Updating submodules
Summary:
GitHub commits:

0cd6115e47
35651bba30
a64efb4c6a
ec0ffc7343
764e2f32a2

Reviewed By: jurajh-fb

fbshipit-source-id: c9c60c23729b8636457d1aeabba7d0fefc7d93eb
2021-09-10 02:24:45 -07:00
svcscm svcscm
faaf91b5be Updating submodules
Summary:
GitHub commits:

a5c38ffb7b
956d3c1fbf
8c4f4a5e44
f37ec9f1c7
232cd023a1

Reviewed By: jurajh-fb

fbshipit-source-id: 4caf9bcadcaf8059a4970dcd704685d08266d679
2021-09-10 00:21:03 -07:00
Callum Ryan
65bd8a9bc9 Support thrift_library::rust_include_srcs
Summary:
`rust_include_srcs` is supported on `thrift_library` as a way of including other Rust code in the generated crate, generally used to implement other traits on the generated types.

Adding support for this in autocargo by copying these files into the output dir and making sure their option is specified to the thrift compiler

Reviewed By: ahornby

Differential Revision: D30789835

fbshipit-source-id: 325cb59fdf85324dccfff20a559802c11816769f
2021-09-10 00:12:44 -07:00
svcscm svcscm
615e575e91 Updating submodules
Summary:
GitHub commits:

443ebd1135
2bda9e6c3a
38ea62b880
8b3e18b160
2f0a6f0b5e
a7858fc354

Reviewed By: jurajh-fb

fbshipit-source-id: 1ce923108c8f9a9414f920c87fcc8f75b751ff21
2021-09-09 23:48:21 -07:00
svcscm svcscm
8de611bb07 Updating submodules
Summary:
GitHub commits:

660b97f72b
fabc321f3e
4b5c772e32
c2609abe2a
ecc83706a8
a8b1dc47be
9e0ea817e0
1032e48d02
747f22899b

Reviewed By: jurajh-fb

fbshipit-source-id: 12d5af520dc1e7a7e6361d1a1bc58f1b0eec565b
2021-09-09 23:27:14 -07:00
Durham Goode
f6328e160f rage: fix encoding crash on Windows
Summary:
The default Windows encoding can't handle some unicode characters
apparently, so let's use utf-8 by default.

Reviewed By: quark-zju

Differential Revision: D30850982

fbshipit-source-id: 51a7fdf5464d075549afe4f0bcd307c0f2eb7fa0
2021-09-09 23:08:58 -07:00
Jeremy Fitzhardinge
cbceb08640 third-party/rust: local patch to tracing-subscriber
Summary:
Add impls for Layer for Box/Arc<L: Layer> and <dyn Layer>. Also a pile of other
updates in git which haven't been published to crates.io yet, including proper
level filtering of trace events being fed into log.

Reviewed By: dtolnay

Differential Revision: D30829927

fbshipit-source-id: c01c9369222df2af663e8f8bf59ea78ee12f7866
2021-09-09 22:38:25 -07:00
Jeremy Fitzhardinge
fd03bff2e2 third-party/rust: bump tracing versions in preparation for patching
Summary:
Bump all the versions on crates.io to highest to make migration to github
versions in next diff work.

Reviewed By: dtolnay

Differential Revision: D30829928

fbshipit-source-id: 09567c26f275b3b1806bf8fd05417e91f04ba2ef
2021-09-09 22:38:25 -07:00
svcscm svcscm
e06f161f00 Updating submodules
Summary:
GitHub commits:

4a06d06dc0
546907f3d3
3033b0bc34
c38e4af908
ff2773c2bf
0e2a4caf01
cd7fea5da1
8221f3dd41
adf6d4b5d1
f443df0b60
e95e6f4c83

Reviewed By: jurajh-fb

fbshipit-source-id: 59e9f8ab07f2083d4d8e1401e19a7b0970cfd071
2021-09-09 22:27:12 -07:00
svcscm svcscm
06985c7b13 Updating submodules
Summary:
GitHub commits:

2a36378b27
1c5b3b11dc
2ad9657e8e
50200930a9
04b8de0e22
5130bae015
6c44c716e7
fc027d2a64
f1f5686d8a
14d5a185b9
143a57dbbe
0693430164
6089dcac48

Reviewed By: jurajh-fb

fbshipit-source-id: c969c9da41d100371d0a484ce207c9bac2e0447e
2021-09-09 22:05:06 -07:00
Ravindra Sunkad
c585f1f321 Have OSS getdeps.py pull code from 'main' (instead of 'master') until all repos are migrated
Summary: getdeps.py pulls repos from master branch by default. For FBOSS force it to pull from 'main'

Reviewed By: shri-khare

Differential Revision: D30857755

fbshipit-source-id: 9891f1ddc08c8f13bdcb00385e1ad4516a84776c
2021-09-09 21:34:05 -07:00
svcscm svcscm
623deaa38e Updating submodules
Summary:
GitHub commits:

0fa6b0c610
542c7d1e67
2fe6f89230
4ff2aa6ecb

Reviewed By: jurajh-fb

fbshipit-source-id: da26763bd07d62614a3ea2927f0ab7e57cbfef6a
2021-09-09 19:53:19 -07:00
svcscm svcscm
015edf8fd1 Updating submodules
Summary:
GitHub commits:

712bd54a98
fcd6f0572f
a8f82ba6f9
7e78d7c540
abc68acbbe
7b359e6462
5553058517
94c606692b

Reviewed By: jurajh-fb

fbshipit-source-id: cbd4b5e58c22c19af41031ee9536adb03d721f9f
2021-09-09 19:21:52 -07:00
Yan Soares Couto
1ff401e156 No need to know bubble id for snapshot restore
Summary:
We don't need to pass the bubble id to the server, it can find it from the changeset id.

This fixes a TODO I added previously, and should make the `restore` command complete.

Reviewed By: ahornby

Differential Revision: D30609423

fbshipit-source-id: d1c8eb0e0556069fa408520a0aea91a0f865fbe1
2021-09-09 18:36:09 -07:00
Yan Soares Couto
8fb52e3219 Download files on snapshot restore
Summary:
Uses the endpoint added on previous diffs to download the snapshot files to the repo, and adds them correctly to the snapshot restore.

This should almost complete the `snapshot restore` command, missing is getting the bubble id from the snapshot hash.

{gif:sqc6yx6c}

Reviewed By: StanislavGlebik

Differential Revision: D30583038

fbshipit-source-id: 6549a52f767c50444c316b358d9704bc4a136934
2021-09-09 18:36:09 -07:00
Yan Soares Couto
69faf9ad21 Add python bindings to download file endpoint
Summary:
This adds the `downloadfiles` method to the python EdenApi wrapper.

It uses multiple calls to the endpoint added on previous diffs to download each file and place it somewhere on the repo. It also does deduplication of downloads.

Reviewed By: StanislavGlebik

Differential Revision: D30582638

fbshipit-source-id: 34e864d03c0e48a7605ee8e4e92376881dbb2de9
2021-09-09 18:36:09 -07:00
svcscm svcscm
c813fc5ec5 Updating submodules
Summary:
GitHub commits:

37b044f1ad
fb659896d6
b0774c2b2c
17bfadb5a5
4308401440
6b28f56531
0ae99f7ab9

Reviewed By: jurajh-fb

fbshipit-source-id: 1f44d6246d6cac6fb0b8befa237d7a90b8b2e536
2021-09-09 18:06:27 -07:00
Eric Williamson
765b8c51a9 Fix hashbinary option to handle removed files
Summary:
When using hashbinary with a removed/moved file, hg throws with `TypeError: object supporting the buffer API required` this is because we are trying to `sha1(None)`.

This diff falls back to the `Binary file %s has changed` message when we have a removed file.

Reviewed By: quark-zju

Differential Revision: D30845897

fbshipit-source-id: a3d2b7d11d9c1ca3855140c9abd7550cf7076bbc
2021-09-09 17:00:24 -07:00
Zhengchao Liu
601f99b118 support FS events logging in NFS mounts
Summary: This adds the support for FS events logging for NFS. For context, each type of event is assigned a sampling group that determines its sampling rate. In TraceBus subscription callback, events are sent to `FsEventLogger` to be sampled and logged through `HiveLogger`.

Reviewed By: xavierd

Differential Revision: D30843863

fbshipit-source-id: 65394d31b1197efd69c7fd4c1b24562f5abd5785
2021-09-09 16:29:53 -07:00
svcscm svcscm
d433088487 Updating submodules
Summary:
GitHub commits:

51392955bf
0aad4ca0ff
c788c44476
50c2d67358

Reviewed By: jurajh-fb

fbshipit-source-id: 9e7c1f002643706706cdfc2983b5c99f19e2b2e0
2021-09-09 16:20:13 -07:00
Arun Kulshreshtha
4c174dcda0 http-client: add success and failure event listeners for requests
Summary:
Previously, it was only possible to register event listeners for request completion on the `HttpClient` itself, rather than on individual `Request`s. This diff adds similar event listeners to `Request`s themselves, so that its possible to register a callback to fire when any request completes, regardless of whether it was sent via an `HttpClient` or as a one-off.

This is similar to `RequestCreationEventListeners`, which run for the creation of every request, whether or not the request is associated with a client.

Notably, to avoid circular references the new event listeners take a `RequestInfo` argument instead of a `RequestContext` (since the listeners are themselves stored inside the `RequestContext`). In practice, the `RequestInfo` should contain all of the information one might want to access about the request.

Reviewed By: quark-zju

Differential Revision: D30831840

fbshipit-source-id: 77ca9dc5fd9f8fc5ee60319baabd77171af70d45
2021-09-09 15:16:43 -07:00
Durham Goode
af83efe403 doctor: show full content store repair message
Summary:
The content store repair binding ate the entire repair message, making
it hard to debug when it wasn't working.

Reviewed By: quark-zju

Differential Revision: D30824740

fbshipit-source-id: 52dbfe79f2dd1568285cda63fb54cacf532aa4a1
2021-09-09 13:24:26 -07:00
Jun Wu
0207c8878f verify: verify lazy changelog
Summary:
Make `verify` check the lazy changelog properties:
- Universal id <-> name mappings are known locally.
- Segments are sane (ex. high-level segments are built from low-level and there
  are no cycles)

With `--dag`, also check the graph with a newly cloned remote graph.

This just calls the verification logic added in Rust `dag` crate to do the
heavy lifting.

Differential Revision: D30820773

fbshipit-source-id: 8f62f41738c3c8e3fe88442860a83fdb4944f178
2021-09-09 11:05:44 -07:00
Zeyi (Rice) Fan
369861a9ee windows: invalidate negative path cache during start
Summary:
In certain situations, users may cause EdenFS to falsely return a path not exist result while the path is available. Windows will cache that and causing subsequent access to that file to automatically return a file not exist error.

We currently only invalidate this negative cache during checkout and rebooting the machine as the cache is even kept during EdenFS restarts. In this diff, we starts to invalidate the negative path cache at startup so if the user ever had issues an `eden restart` would be sufficient to fix.

Reviewed By: xavierd

Differential Revision: D30814059

fbshipit-source-id: 53283f471702762b2eed0c5d0f6a9cc49f4db739
2021-09-09 10:48:53 -07:00
Yan Soares Couto
56d4129e8c Add download endpoint to EdenApi trait
Summary:
This adds the plumbing to access download a file using the endpoint from the previous diff via the EdenApi trait, which does the actual http request.

It concats the stream into a Bytes object and returns it.

Reviewed By: StanislavGlebik

Differential Revision: D30582422

fbshipit-source-id: ed0fe5e34e3fecc6c1b26d2dceb322dfcf5f8e37
2021-09-09 10:04:40 -07:00
Yan Soares Couto
b5184cbb2d Endpoint for downloading file from upload token
Summary:
This diff adds an endpoint `/download/file` that allows to download a file given an upload token.

This will be used for snapshots, as we need to download the snapshot changes, and there's no way to do that right now.

Other options, and why I didn't do them:
- Using the existing `/files` endpoint: Not possible, as it needs hg filenodes and we don't have those.
- Returning the file contents in the fetch_snapshot request: Might make the response too big
- Returning just a single Bytes instead of a stream: I thought streaming would be preferred, and more future proof. In the stack I still put everything in memory in the client, but maybe in the future it should be possible to stream it directly to the file. I'm happy to remove if preferred, though.

Reviewed By: StanislavGlebik

Differential Revision: D30582411

fbshipit-source-id: f9423bc42867402d380e831bc45d3ce3b3825434
2021-09-09 10:04:40 -07:00
svcscm svcscm
aa00a563e7 Updating submodules
Summary:
GitHub commits:

1cffb5ff1f
5accfb61b2
68aeb028be
f894f25479

Reviewed By: jurajh-fb

fbshipit-source-id: 9dcf8e2a5c6916c274db311ff389247dc527a5c2
2021-09-09 09:47:20 -07:00
svcscm svcscm
77b97443de Updating submodules
Summary:
GitHub commits:

86f66a086c
8088cb3312
b4b2b96943
f66f01384c
53aaee1d52
7bc1931cd8

Reviewed By: jurajh-fb

fbshipit-source-id: e0d245ee487a2dd53f87b7eb215967aed6109ad0
2021-09-09 09:19:06 -07:00
CodemodService Bot
15535f044d Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D30835464

fbshipit-source-id: 76918978f1c0f372ce8a4e8a57223e081e5ca993
2021-09-09 09:03:15 -07:00
Jan Mazur
7f81330da1 add x2pagentd info to hg rage
Summary: This proved useful couple of times when folks experienced problems with the agent.

Reviewed By: ahornby

Differential Revision: D30837676

fbshipit-source-id: aec769f60a09ecb83857e6e60d49a5662b4ce0b2
2021-09-09 08:49:49 -07:00
svcscm svcscm
403f1445bf Updating submodules
Summary:
GitHub commits:

6598ec3d96
84bbbfb9c3
af88b53203
c1d374b264
d99b427308
4de2139b44
fab15f1921
09968796dc
779ec84abb
ad4b50d4d7

Reviewed By: jurajh-fb

fbshipit-source-id: 28f0f1d3a12a739a1194de6bb34ae171e654c89d
2021-09-09 08:42:01 -07:00
Jun Wu
315bec71f4 revlogindex: revert D30732364 and update tests
Summary:
Add back the octopus merge support for revlog.
This recommits D30686451 (b13579fdf9) and D30686450 (7eb11cb392) as-is, with updates to test files.

Original commit changeset: 9f213766e7c4

Reviewed By: StanislavGlebik

Differential Revision: D30784681

fbshipit-source-id: ace0c317652ad8b657c8edd9a0130532dad53078
2021-09-09 08:29:03 -07:00
Yan Soares Couto
6f635f7d8a No need to implement for Arc
Summary:
As far as I could tell, this was legacy from some refactorings.

It was only used in one place, and it was easy to fix.

Also, if we really need it in the future, we can probably use `#[auto_impl]` instead of doing it manually.

Reviewed By: StanislavGlebik

Differential Revision: D30574803

fbshipit-source-id: 20715364713775818fe0e83844637f48b310d87f
2021-09-09 07:43:29 -07:00
Yan Soares Couto
175a82712a Fix createremote no working from non-root folder
Summary: createremote only worked from root of the repo. This fixes it, and tests that in the integration test

Reviewed By: StanislavGlebik

Differential Revision: D30546582

fbshipit-source-id: 84aa304d346e448b44e5d7fb9e9607d84a67da25
2021-09-09 07:43:29 -07:00
Yan Soares Couto
29606df2fe Restore to correct parent and deleted files
Summary:
This adds basic logic for `snapshot restore` command.
- It updates to the parent of the snapshot
- It loads the snapshot changes

For now I did not do changes/tracked changes, as it will need to download the file contents, which will need a new edenapi endpoint, so I'll leave it for a future diff. It just restores your deleted files for now.

Reviewed By: StanislavGlebik

Differential Revision: D30543507

fbshipit-source-id: 080588ceff0ecd595ce739044f0d4118fb8e1a3f
2021-09-09 07:43:29 -07:00
svcscm svcscm
9a2fdca6d9 Updating submodules
Summary:
GitHub commits:

9e6f2ba202
fec77e2561
e6f3716443
118a785f3b
26076e9ddb
2cded62bd6
00f14700b4
2d846f590c
b51f864fd8
1cd1da38f8

Reviewed By: jurajh-fb

fbshipit-source-id: 7cf0e145c11c69d1699755b98f86ab0a9814ad83
2021-09-09 07:29:39 -07:00
svcscm svcscm
ddb515ab75 Updating submodules
Summary:
GitHub commits:

c0b4009784

Reviewed By: jurajh-fb

fbshipit-source-id: ff11c28fdece73bcacbcc211376195c4f9e097d1
2021-09-09 06:31:37 -07:00
Stanislau Hlebik
315a8b311d mononoke: add benchmark mode to backfill_derived_data
Reviewed By: markbt

Differential Revision: D30837581

fbshipit-source-id: 0c778b629f99c6110a78500c235131d0cb12f9aa
2021-09-09 05:01:18 -07:00
Liubov Dmitrieva
c9810f8459 log sync reason
Summary:
log sync reason for `hg cloud sync`.

This will help us to investigate issues better and measure impact for new Eden Api Uploads case by case (after amend, rebase, etc) on different platforms.

Reviewed By: yancouto

Differential Revision: D30775519

fbshipit-source-id: 696e954ec8db19226fb67ad0952e23e2b67e9931
2021-09-09 04:31:22 -07:00
svcscm svcscm
28994c87ed Updating submodules
Summary:
GitHub commits:

132041aade
865baf2cd8
759e8f11e7
caca351eb9

Reviewed By: jurajh-fb

fbshipit-source-id: 8055ac1d9a75646311fa896d522f60004018e962
2021-09-09 00:29:26 -07:00
svcscm svcscm
342826a25f Updating submodules
Summary:
GitHub commits:

36155c16d9
2dd7d46c7a
b566d9490a
863e6c5c66
b1969b6808

Reviewed By: jurajh-fb

fbshipit-source-id: c281e5c62048bb8455f02a167d7b9f4ea9e06048
2021-09-08 23:50:18 -07:00
svcscm svcscm
4d972aba9f Updating submodules
Summary:
GitHub commits:

17fd15d368
a46d38e2a2
3decfee947
15dda6e28c
a59788f2b5
86c79f5605

Reviewed By: jurajh-fb

fbshipit-source-id: 9094b62a97470b5a5626e61b32d6123c4fafa7e2
2021-09-08 23:16:55 -07:00
svcscm svcscm
3e365692b8 Updating submodules
Summary:
GitHub commits:

b7b8b8dd03
346d7c0f2b
3c0d7357bb
0e75cfefbb
1a92efd089
37a999ae56
17994927b4
9ca2bb4bed
f9515ab186

Reviewed By: jurajh-fb

fbshipit-source-id: df2c89e0684b1add302980083f5de121f8e1bb0d
2021-09-08 22:39:01 -07:00
svcscm svcscm
dd22fe7cfe Updating submodules
Summary:
GitHub commits:

1580c4884c
9d0cb7cacf
a4a4c0fe68
4a527a3e3d
eea566864e
e41e0902b2
e5cacfc424
c22cf41ea3
a4c87a8615
94f24cadcb
f6f75e7f14
363bad4d16

Reviewed By: jurajh-fb

fbshipit-source-id: 6b2847b5f6ecac372f614461ac3adc5e4aacf282
2021-09-08 22:12:49 -07:00
svcscm svcscm
c25cd600ff Updating submodules
Summary:
GitHub commits:

0733a57816
056fe358ab
55608a43ad
50e97274e1
45175ca2e1
8266b62893
fea19aad81
d4f413866d
f2344dffc5
0806e00b32
0f852009fa
d0b736d0d3

Reviewed By: jurajh-fb

fbshipit-source-id: 673e8180ea3e9329d65ca478618d28d72d5a0801
2021-09-08 22:12:49 -07:00
svcscm svcscm
17b777bbc7 Updating submodules
Summary:
GitHub commits:

1580c4884c
9d0cb7cacf
a4a4c0fe68
4a527a3e3d
eea566864e
e41e0902b2
e5cacfc424
c22cf41ea3
94f24cadcb
f6f75e7f14

Reviewed By: jurajh-fb

fbshipit-source-id: b0a58ddbbeb0fa3da1f25cfa2edad6e8245c3a09
2021-09-08 22:05:16 -07:00
svcscm svcscm
00fa4db982 Updating submodules
Summary:
GitHub commits:

7b9ff9da05
c7f95cda68
132363da33
8ab36b48fc
0662154ec7
297b1bd857
f134bf9be1
a4c87a8615
47ec923cde
6dbbd501b7
363bad4d16

Reviewed By: jurajh-fb

fbshipit-source-id: e221fd356c07a3a3bc7082608a6a27bceabb8ea3
2021-09-08 21:30:52 -07:00