Commit Graph

67932 Commits

Author SHA1 Message Date
Robin Håkanson
b562bb0344 GitPool updates to handle heavy imports better.
Summary:
Changes:
- Limit simultainous open git-repo objects by amount of CPUs.
- Put a semaphore limit so we wait inside tokio::task domain instead of tokio::blocking domain (later is more expensive and has a hard upper limit).

Reviewed By: mitrandir77

Differential Revision: D30976034

fbshipit-source-id: 3432983b5650bac6aa5178d98d8fd241398aa682
2021-09-16 09:02:22 -07:00
Mateusz Kwapich
cfb0ec6085 make skiplists optional in mononoke
Summary:
This allows the mononoke_api user to choose whether the skiplists
should be used to spped up the ancestry checks or not.

The skiplists crate is already prepared for the situation where skiplist
entries are missing and traverses the graph then.

Reviewed By: yancouto

Differential Revision: D30958909

fbshipit-source-id: 7773487b78ac6641fa2a427c55f679b49f99ac8d
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
515d178024 make WBC optional
Summary:
Allow the mononoke_api user to choose whether they want
oprerations to be sped up using WBC or not.

Reviewed By: yancouto

Differential Revision: D30958908

fbshipit-source-id: 038cf77735e7c655f6801d714762e316b6817df5
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
b6f48e94a4 turn wbc into a trait and add noop implementation
Summary:
Some crates like mononoke_api depend on warm bookmark cache to speed up the
bookmark operations. This prevents them from being used in cases requiring
quick and low overhead startup like CLIs.

This diff makes it possible to swap out the warm bookmark cache to a
implementation that doesn't cache anything. (See next diffs to see how it's
used in mononoke_api crate).

Reviewed By: yancouto

Differential Revision: D30958910

fbshipit-source-id: 4d09367217a66f59539b566e48c8d271b8cc8c8e
2021-09-16 07:20:01 -07:00
Mateusz Kwapich
bc77707fdd remove get_all from warm bookmark cache
Summary:
This method was added before the more generic list method was added. Let's get
rid of it for simplicity and to discourage listing all the bookmarks.

Reviewed By: yancouto

Differential Revision: D30958911

fbshipit-source-id: f4518da3f34591c313657161f69af96d15482e6c
2021-09-16 07:20:01 -07:00
svcscm svcscm
f0bbefce6b Updating submodules
Summary:
GitHub commits:

a669f7e8b2
cc95f7c4ca
5c007dec0d
a96eaf564b
91fc1226f3

Reviewed By: bigfootjon

fbshipit-source-id: 826f347fb43ea0aa4b7fff2c5492f6a3058e378a
2021-09-16 02:09:10 -07:00
svcscm svcscm
f2aa0fd990 Updating submodules
Summary:
GitHub commits:

b7e48f4378
3f4f4a32a3
345137af18
e7225ed083
1269e00b44
f4a1d10668
57b42a4d66
3df18a2002
7f1dd90133

Reviewed By: bigfootjon

fbshipit-source-id: c8a59de3678a5ad0f1567826813e303bf23949e7
2021-09-15 23:47:47 -07:00
David Tolnay
7f0c6953b8 third-party/rust: Update pin-project 0.4.24 to 0.4.28
Summary:
0.4.24 is incompatible with crates that use `deny(warnings)` on a compiler 1.55.0 or newer.

Example error:

```
error: unused borrow that must be used
  --> common/rust/shed/futures_ext/src/stream/return_remainder.rs:22:1
   |
22 | #[pin_project]
   | ^^^^^^^^^^^^^^
   |
   = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
```

The release notes for 0.4.28 call out this issue. https://github.com/taiki-e/pin-project/releases/tag/v0.4.28

Reviewed By: krallin

Differential Revision: D30858380

fbshipit-source-id: 98e98bcb5a6b795b93ed1efd706a1711f15c57db
2021-09-15 23:01:30 -07:00
svcscm svcscm
5d1456c346 Updating submodules
Summary:
GitHub commits:

c14184ecf9
b9bb39e378
3d5e0a8c46
f8e98e9801
5d4bdb2468
b24b713061
913d715b23
f740358601
e601d8337a
dbdcdcdf0c

Reviewed By: bigfootjon

fbshipit-source-id: 154ef3f3d8363988190b8a0ceaa41a59c81a12d9
2021-09-15 21:19:09 -07:00
svcscm svcscm
d9c66772ea Updating submodules
Summary:
GitHub commits:

9e8b129df3
109a25c2fc
3bdfaee6aa
374ab54843
1adbb7bc6b
1afcc9bbbc
bd4d8cd275
35e40d16af
737192a219
2117e874bd
c54cf2358c

Reviewed By: bigfootjon

fbshipit-source-id: d8501ef1d6ae289372193fa654046d46897f7d46
2021-09-15 20:10:02 -07:00
svcscm svcscm
3604dc014b Updating submodules
Summary:
GitHub commits:

c4351343d6
9f0029072d
8b44dc36f1
1456b13dde
8a5684fdf0
4457942bfd
b51cdf5ca8
58b9dbf36c
3c1c77607a
60f13d9948
480026d75e
c1b85c2c35

Reviewed By: bigfootjon

fbshipit-source-id: 48c7b69b0fa338703772da2d2aaa19646a0845a8
2021-09-15 19:43:00 -07:00
svcscm svcscm
2ff76547f1 Updating submodules
Summary:
GitHub commits:

0ee04209c1
a9a7b9c728

Reviewed By: bigfootjon

fbshipit-source-id: e87004082c82b59150506e6b4fb7c544aa71ec14
2021-09-15 19:17:22 -07:00
svcscm svcscm
645d5ca266 Updating submodules
Summary:
GitHub commits:

7c744db9ad
cf9f171a36
8bfa553cfe
88a77777fe
03f0265ccf

Reviewed By: bigfootjon

fbshipit-source-id: 81bb68a622b95b22c7fc9863d8c8c234583f0204
2021-09-15 18:13:29 -07:00
Robert Grosse
acc7a511d3 Refactor matching optional lines in run-tests.py
Summary:
Move optional line handling logic into a separate function and simplify.

This diff is intended to be a pure refactoring with no observable changes in behavior. In particular, all the code dealing with the "optional" list appears to be dead code because if the line is optional, linematch will return "retry", so that branch is never reachable.

Reviewed By: DurhamG

Differential Revision: D30849757

fbshipit-source-id: 17283f9217466b3f85d913da66222b9a6779abe4
2021-09-15 17:47:22 -07:00
svcscm svcscm
b588ffad16 Updating submodules
Summary:
GitHub commits:

f652015098
4a5d933c17
2526d47585
b90f30c390

Reviewed By: bigfootjon

fbshipit-source-id: dcfa2c7fc8e5caffcdc3af719e92c32e6eb8347c
2021-09-15 17:44:28 -07:00
svcscm svcscm
63c61a28e0 Updating submodules
Summary:
GitHub commits:

b2345d5083
2819c7840e

Reviewed By: bigfootjon

fbshipit-source-id: 2720b3c31e46e3e7601b99d406fd99979b3bc3f0
2021-09-15 17:41:36 -07:00
Jeremy Fitzhardinge
113060beb1 third-party/rust: bump all the tracing packages
Summary:
This includes recent changes:
- `skip_all` in #[instrument] https://github.com/tokio-rs/tracing/pull/1548
- NoSubscriber no-op Subscriber https://github.com/tokio-rs/tracing/pull/1549
- Box/Arc Layer (https://github.com/tokio-rs/tracing/pull/1536 +
  https://github.com/tokio-rs/tracing/pull/1547)
- log filtering fixes https://github.com/tokio-rs/tracing/pull/1543

Local: force `log` and `log-always` features off. This removes the
`enable-trace-logging` flag from smartplatform/reconciler.

Reviewed By: guswynn

Differential Revision: D30906032

fbshipit-source-id: fdc3e4e29a39e9e181d9f4ff017e6b3e16acdcd8
2021-09-15 16:52:25 -07:00
Durham Goode
133aca0fb4 status: remove serial manifest read
Summary:
This line was iterating over a list of files and looking in the
manifest for each one. This results in serial manifest reads which can result in
serial network requests.

Let's instead use manifest.matches() to test them all at once via the underlying
BFS, which does bulk fetching.

Differential Revision: D30938359

fbshipit-source-id: 1af7d417288b82efdd537a4afeaf93c1b55eaf49
2021-09-15 12:36:44 -07:00
svcscm svcscm
58f833e167 Updating submodules
Summary:
GitHub commits:

888c86755f
964608719b
b04ea4950a
8dd313f24c

Reviewed By: bigfootjon

fbshipit-source-id: a485dee3f5399e5d76c6ba524fd90430e258563c
2021-09-15 12:13:20 -07:00
svcscm svcscm
86c0917254 Updating submodules
Summary:
GitHub commits:

6f3b5a1603
e2bf1385ed
f7de5fdccc
9e15eae327
fcce112885
ffe2d88dda
a622f870ed

Reviewed By: bigfootjon

fbshipit-source-id: 3ffaa8f8c9700e83b052743e0df3984b74e54d97
2021-09-15 11:40:45 -07:00
svcscm svcscm
aab7d21eed Updating submodules
Summary:
GitHub commits:

e342258b53
26d778112c
68c54be989
21f75efaa2
f1d50c09cb
ec3b9a098f
9d8836abbb
1bd0a0bf0c
a0d45cd250

Reviewed By: bigfootjon

fbshipit-source-id: 9b36985999e0248158234959ff903a580e15aa06
2021-09-15 11:18:47 -07:00
Jun Wu
e8c2ac87ce dag: demonstrate bugs in vertex to path resolution
Summary:
Demonstrate issues with the vertex to path resolution. Basically, the vertex to
path resolution logic did not check if the "parent of merge" being used is
actually valid (is an ancestor of provided heads) or not.

Reviewed By: DurhamG

Differential Revision: D30911150

fbshipit-source-id: 83d215910d5ba67ac0d5749927018a7aefcc6730
2021-09-15 11:16:25 -07:00
svcscm svcscm
d0cb5f7fc9 Updating submodules
Summary:
GitHub commits:

9abf19ef01
e093192088
73b5bcdebc
86a7cee8b3
9358207a98
4449a3e20c
e3784b830f
85ab490893
57581d71b2
aed49de444

Reviewed By: bigfootjon

fbshipit-source-id: 42817c5db4d5816e8ab7e622d80c36316068070e
2021-09-15 10:49:31 -07:00
svcscm svcscm
e26566031e Updating submodules
Summary:
GitHub commits:

b258ee3186
cd4a4a8427

Reviewed By: bigfootjon

fbshipit-source-id: 5234f36cba18a4b9efe9e08d8ee3b27e589dca81
2021-09-15 10:14:11 -07:00
Arun Kulshreshtha
462e0d0386 edenapi: fix dead code warnings
Summary: Delete dead code.

Reviewed By: yancouto

Differential Revision: D30942023

fbshipit-source-id: 9831c5eec6869c692fc13354dd6368fc6fb5ce8a
2021-09-15 06:43:14 -07:00
svcscm svcscm
e88391aa0b Updating submodules
Summary:
GitHub commits:

be2cd371dc
f5b83cfc00
4e1afbb852
4cb5bcb50d
635dc4c248

Reviewed By: bigfootjon

fbshipit-source-id: 3729a8a22424687088d2bb3de3a48baff8ccc4fe
2021-09-15 04:32:23 -07:00
svcscm svcscm
e74e264bce Updating submodules
Summary:
GitHub commits:

b3c7050648

Reviewed By: bigfootjon

fbshipit-source-id: 2d06234508aecc275900447235f6489f24bc88ae
2021-09-15 03:56:46 -07:00
CodemodService Bot
3562c65696 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D30955790

fbshipit-source-id: 45a00d6e8c683b0a1b34ef7041197e9ae30cf63a
2021-09-15 01:29:47 -07:00
svcscm svcscm
aad1cfdca5 Updating submodules
Summary:
GitHub commits:

01b48d5e4f
dd86459192
e0c5e3f646
008120ae03

Reviewed By: bigfootjon

fbshipit-source-id: 40fe1e76e226336ee7bc1528715aaaf36a0fe159
2021-09-14 23:34:58 -07:00
svcscm svcscm
49e53e0907 Updating submodules
Summary:
GitHub commits:

9053597166

Reviewed By: bigfootjon

fbshipit-source-id: 2884cae571831433d77349d490017dcbb5df5c01
2021-09-14 22:40:37 -07:00
svcscm svcscm
582b0bf29c Updating submodules
Summary:
GitHub commits:

9e300f5907
b83d8b3606
545ef3201b
030867b1b7
b2f8c22743

Reviewed By: bigfootjon

fbshipit-source-id: 06b3360206e700aec641826e85e07aa7e8524e37
2021-09-14 21:29:47 -07:00
svcscm svcscm
a39c93e8a2 Updating submodules
Summary:
GitHub commits:

d3292d2ff7
e06f9d42a7
757d64a96c

Reviewed By: bigfootjon

fbshipit-source-id: dd4dad37cf0c38d48c2e75894ba69e14d0e0978d
2021-09-14 20:56:30 -07:00
Andrey Chursin
008167cb0e deprecate scs proxy hash
Summary:
The tree metadata fetching evolution goes as follow
(1) (commit, path) scs query
(2) tree manifest scs query [we are here]
(3) eden api manifest query [in development]

Option (1) is no longer used and is the only placed that required scs proxy hash.
Removing it will simplify transition from (2) to (3) and also cleans up bunch of unused code.

It also comes with minor performance improvement, saving about 5% on file access time.
To be precise, this is measured by running fsprobe [this is probably too little to measure in high noise benchmark like running arc focus]:
```
fsprobe.sh run cat.targets --parallel 24
```

Results:
```
W/ scshash:
P24: 0.1044 0.1007 0.1005 (hot) 0.1019 avg

W/o scshash:
P24: 0.0954 0.0964 0.1008 (hot) 0.0975 avg
```

This performance improvement comes from the fact, that even though scs hash was never created or used, we still attempted to load it from scs table, and even though this load always failed it contributed to execution time.

Reviewed By: xavierd

Differential Revision: D30942663

fbshipit-source-id: af84f1e5658e7d8d9fb6853cbb88f02b49cd050b
2021-09-14 19:52:15 -07:00
Andrey Chursin
a34c530606 fsprobe: change latency precision .2 -> .4
Summary: File access latency can actually be less then 1 ms, so it's good to show more digits

Reviewed By: DurhamG

Differential Revision: D30942905

fbshipit-source-id: 2fc8d48dbc08c55b89d829d1474ae11c2c3df1c3
2021-09-14 19:52:15 -07:00
Andrey Chursin
f3cba474a3 fsprobe: add simple shell script to generate and run fsprobe tests
Summary:
Since fsprobe itself requires a 'plan' to run, we need separate script to standartize list of plans we think are relevant
This scripts allows to generate fsprobe plans and run them

Reviewed By: DurhamG

Differential Revision: D30908892

fbshipit-source-id: eb722fe1f6d982e42b66614f08bc73345e04f9e6
2021-09-14 19:52:15 -07:00
svcscm svcscm
38c58d4053 Updating submodules
Summary:
GitHub commits:

45c6e196bd
fdd914d38f
249d4257bc
7a811e0eaf

Reviewed By: bigfootjon

fbshipit-source-id: fadc497cc2d539f4323f4a3a58f9484514ab6ec2
2021-09-14 18:39:39 -07:00
Jun Wu
aa028423af indexedlog: include wrong meta file content in error message
Summary:
We got errors like:

  error.IndexedLogError: "repo/.hg/store/lfs/pointers/meta": when reading LogMetadata
  in log::OpenOptions::open(Filesystem("repo/.hg/store/lfs/pointers"))
  Caused by 1 errors:
  - failed to fill whole buffer

from Sandcastle. There seems no easy way to get a sample of the broken `meta`
file content. Let's include the file content to make progress on debugging.

Reviewed By: DurhamG

Differential Revision: D30939737

fbshipit-source-id: ccd77f6b67e4aaf75af2248118845fd5b3434ff1
2021-09-14 18:11:17 -07:00
svcscm svcscm
6b11239a70 Updating submodules
Summary:
GitHub commits:

c953b1c6e2
a17bcb3653
2ee793d78f
7d7a5de025
bd3a4b9966
1f0a82587d

Reviewed By: bigfootjon

fbshipit-source-id: 4af4130c08d7d0164b5567e529a4d541b9ead807
2021-09-14 18:11:17 -07:00
Meyer Jacobs
38b0ccdf4f scmstore: remove allow(dead_code) from treescmstore
Summary: This `allow` is no longer needed.

Reviewed By: yancouto

Differential Revision: D30859520

fbshipit-source-id: 36b810a72a28af25513404739bccf471e380cdf1
2021-09-14 18:08:41 -07:00
Meyer Jacobs
a0b6b4ba9b scmstore: update TreeStore to use CommonFetchState
Summary: Update TreeStore to use CommonFetchState and update TreeStore and BackingStore to use the other utility types already in use for files (`StoreTree`, `FetchResults`, etc).

Reviewed By: andll

Differential Revision: D30739008

fbshipit-source-id: e210b8d76614c762ba127d5f2e26391681da004f
2021-09-14 18:08:41 -07:00
Meyer Jacobs
789fd8c82c scmstore: add utility method for converting StoreTree to manifest-tree::Entry
Summary: Adds a utility method for converting a `StoreTree` to a `manifest-tree::Entry`, which wraps an hg manifest blob and provides methods for parsing it as a tree manifest (and a `TryFrom` impl used to convert it to a pre-parsed `manifest::List`, which is used by BackingStore in the next change in this stack).

Reviewed By: andll

Differential Revision: D30859470

fbshipit-source-id: 411e80a14861e0739b0c398290055002b35e59d3
2021-09-14 18:08:40 -07:00
Meyer Jacobs
30cb821f95 scmstore: add StoreTree, LazyTree, TreeAttributes, matching FileStore's types
Summary: This change does not add aux data support, so for now the types are a bit useless.

Reviewed By: DurhamG

Differential Revision: D30313314

fbshipit-source-id: 11968199b12c4f870c58c7e939b5c8ed5cd9afea
2021-09-14 18:08:40 -07:00
Meyer Jacobs
4ac73c7942 scmstore: move tree to submodule
Summary: More refactoring of scmstore `TreeStore`. Introducing a new `tree` submodule as we'll be adding tree-specific metrics, types, etc. soon (as currently exist for files).

Reviewed By: andll

Differential Revision: D30313460

fbshipit-source-id: f20d3ee62520b1d9ea34ad04eb1880ad9b5a00c3
2021-09-14 18:08:40 -07:00
Meyer Jacobs
9a60141ccf scmstore: introduce CommonFetchState
Summary: Extract out `CommonFetchState` from `FileStore`'s `FetchState`. Currently, direct field access is still used for computing derivations and a few other places, but this will be changed in a later diff.

Reviewed By: DurhamG

Differential Revision: D30308289

fbshipit-source-id: 16d34904412572facc9f51cbd791e30413bfe634
2021-09-14 18:08:40 -07:00
svcscm svcscm
b1d3a66c2c Updating submodules
Summary:
GitHub commits:

411f5d4bbd
2a85a560e7
333727f7e5
306add3719
d436897f6a
1b24853a50
9e69fd4b46
d8c6ee5b7c
ed663759e9

Reviewed By: bigfootjon

fbshipit-source-id: 0d58dddb2067da2b21eb2a39b699ba31722c1c6b
2021-09-14 17:44:26 -07:00
Meyer Jacobs
7c35519888 lib: fix unused import warnings
Summary: Andrey noticed some unused import warnings on master, this should address them.

Reviewed By: quark-zju

Differential Revision: D30944906

fbshipit-source-id: 6ecd04a1bb85e137ab68069a76e593477fbb23ab
2021-09-14 17:37:11 -07:00
svcscm svcscm
03b143bf76 Updating submodules
Summary:
GitHub commits:

1c91214fc4
55a2a133dc
bad7e13223
17344faa14
dfcfab5951
4172bc5fb5
5f57de1f49
d94265379d
77d5cd50df
7fdc90d13e
37eb39b783

Reviewed By: bigfootjon

fbshipit-source-id: acb1f9c5b7a80ce86b16519751d952b982e60d8b
2021-09-14 17:09:14 -07:00
svcscm svcscm
80c5734503 Updating submodules
Summary:
GitHub commits:

9a881c3eff
86448e3d20
7f60d2d34f
4d5b7ad4e8
ae0f45dd54
ec7640ff50
3fb224b80e

Reviewed By: bigfootjon

fbshipit-source-id: f4c7b75b7caf551286a90b6ad9f5b7b9af8fd947
2021-09-14 16:46:31 -07:00
svcscm svcscm
1c0d0b7656 Updating submodules
Summary:
GitHub commits:

83b414bbf1
176ed296b2
00cecd3b9f
313dc1d66c
4e2a0a0029
8ff4c9c613

Reviewed By: bigfootjon

fbshipit-source-id: 141ba5055111ebd273310261ece824e58e28cdf0
2021-09-14 16:09:18 -07:00
Arun Kulshreshtha
0c9f750154 hg-http: defer progress bar registration
Summary: Don't show progress bars for pending HTTP requests until they actually start running, so that the user always sees progress bars from active transfers.

Reviewed By: quark-zju

Differential Revision: D30914241

fbshipit-source-id: ca2f85af055dc9324123d0f9cc765f42d3b36ad4
2021-09-14 15:03:12 -07:00