Commit Graph

66657 Commits

Author SHA1 Message Date
Jan Mazur
3ef3316aa7 add x-x2pagentd-ws-over-h1 header to requests going through x2pagentd
Summary: Add x-x2pagentd-ws-over-h1 header to improve performance of requests going through the x2pagentd

Reviewed By: johansglock

Differential Revision: D29695014

fbshipit-source-id: dd3f224bf653de1ca3e799f59f670b6b52f2dde2
2021-07-14 08:20:12 -07:00
Liubov Dmitrieva
64ef09155c clean up commit cloud! remove everything about infinitepush-other path
Summary: Code Clean Up. Remove everything about infinitepush-other path. This is a legacy to support migration.

Reviewed By: markbt

Differential Revision: D29677983

fbshipit-source-id: e9972117119d5e6005c3ec0b07809cf9d1fdc4a4
2021-07-14 06:52:57 -07:00
svcscm svcscm
53a63f9c27 Updating submodules
Summary:
GitHub commits:

da3a14011c
50695ae6e7
86638df767
37f0cde909

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: d6e9c86674ebdec6740740f2b34cde738e5b5309
2021-07-14 06:04:27 -07:00
svcscm svcscm
5113e2196d Updating submodules
Summary:
GitHub commits:

c5a32c5a88

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 7ea78fb8525ceb2932a2586505fb9ac0c3e92171
2021-07-14 05:17:56 -07:00
CodemodService Bot
b199c561e0 Daily arc lint --take BLACK
Reviewed By: zertosh

Differential Revision: D29693011

fbshipit-source-id: a298ba5c48cbaa6bcf07877bd87932ee89d2d1b0
2021-07-14 04:14:21 -07:00
svcscm svcscm
9fb448f9a2 Updating submodules
Summary:
GitHub commits:

66d12157ea
50cf305bc6
e37159012f
b4525ec5a4
eacd69008f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 08aee466eda4078acbe94ecd4202388be0779669
2021-07-13 22:38:36 -07:00
svcscm svcscm
8e2d5b1c8f Updating submodules
Summary:
GitHub commits:

abbaf29e09

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0c28748d626b947f6b12b261d77c2187038175fd
2021-07-13 22:00:57 -07:00
svcscm svcscm
c1460ac051 Updating submodules
Summary:
GitHub commits:

03389b13ad

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 762530e2e3da340705dcc7490fecb4ab948702d9
2021-07-13 18:10:49 -07:00
svcscm svcscm
964aa4b7bf Updating submodules
Summary:
GitHub commits:

c2718aeb04
f9b72ad2ff
a36140fe33
77f9065505

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 2f6cb9fea8261600fbc79a5936042fc7cb03c6cd
2021-07-13 17:35:39 -07:00
Patrick Walton
84fa20e621 Update Rust to version 1.53.0 (with LLVM 9 support forward ported)
Summary:
This updates the symlinks to `third_party2` to the newest version of Rust. This
was attempted before but failed because upstream Rust stopped supporting the
version of LLVM that `platform009` uses. This new commit works.

Reviewed By: dtolnay

Differential Revision: D29497424

fbshipit-source-id: a2a8444564c3c7ad19df9423f5e82ab6738dd2ef
2021-07-13 17:28:46 -07:00
Andrey Chursin
1e24cf2d00 vfs: fix linux detection
Summary: fanzeyi pointed that shortcut `cfg(linux)` does not actually exist

Reviewed By: fanzeyi

Differential Revision: D29670231

fbshipit-source-id: 5ebd2678ea540eeb0530b204814096ba0d9d7fed
2021-07-13 16:49:38 -07:00
svcscm svcscm
baf54c9be3 Updating submodules
Summary:
GitHub commits:

579caed714

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 94d105554f03b57897d987e47ea9da1225bc16cd
2021-07-13 16:44:48 -07:00
Meyer Jacobs
e742e3befc edenapi: propagate missing content errors instead of panicking
Summary:
Remove the panicking APIs in D29647203 and instead propagate "missing content attribute" errors.

It was difficult to make these changes at the bottom of my diff stack, so I've added them here instead.

Reviewed By: DurhamG

Differential Revision: D29670495

fbshipit-source-id: 952ed4913a413c39ac3dff14a22f56e4766512ff
2021-07-13 15:17:31 -07:00
Meyer Jacobs
3be8fcb6f9 scmstore: report metrics for auxstore
Summary: Collect and report scmstore metrics for the `AuxStore` backends.

Reviewed By: DurhamG

Differential Revision: D29635551

fbshipit-source-id: 4e9ab6163ec901ddcee2e923147c1347229e6b70
2021-07-13 15:17:31 -07:00
Meyer Jacobs
28ef2ea851 scmstore: support preferring locally computing aux data
Summary: Add an option, `scmstore.prefercomputingauxdata`, which enables computing aux data from locally available content instead of requesting aux data from EdenApi when possible.

Reviewed By: DurhamG

Differential Revision: D29659777

fbshipit-source-id: e381c8beac359dc1735d76378c602fbf2bb0b668
2021-07-13 15:17:31 -07:00
Meyer Jacobs
72bd8c8c6e scmstore: implement edenapi file aux data fetching in FileStore
Summary: Update `FileStore` to fetch aux data from EdenApi. As written, `FileStore` will prefer remotely fetching aux data to computing it from locally available content.

Reviewed By: DurhamG

Differential Revision: D29659721

fbshipit-source-id: 13e33830ed84fbba31e19b00aaf748dcc4f67727
2021-07-13 15:17:31 -07:00
Meyer Jacobs
9a93bd5f47 edenapi: add attribute support to EdenApi trait
Summary:
Adds a new method, `files_attrs`, to the `EdenApi` trait, which allows the caller to specify per-key attributes.

This method is intended to be temporary, and should later be unified with `files`.

Implement `files_attrs` in `FakeEdenApi`, and implement a placeholder method in EagerRepo.

Reviewed By: DurhamG

Differential Revision: D29635233

fbshipit-source-id: d0773927939527d799918139e4abba5ea3b5efca
2021-07-13 15:17:31 -07:00
Meyer Jacobs
5b16613f44 scmstore: update FileStore to use new indexedlogauxstore
Summary: Update `FileStore` to use new `indexedlogauxstore` rather than JSON + `indexedlogdatastore`.

Reviewed By: DurhamG

Differential Revision: D29635152

fbshipit-source-id: 3f73b7f7ee1ebc4aa1a0e804973d98d342cbc6ba
2021-07-13 15:17:31 -07:00
Meyer Jacobs
98e7e342c6 revisionstore: add sha1 and blake2 ContentHash methods
Summary: Add utility methods to ContentHash for use in computing aux data

Reviewed By: DurhamG

Differential Revision: D29659855

fbshipit-source-id: fb5c9749899147ea03dbb9e0e19b492c62bde2dd
2021-07-13 15:17:30 -07:00
Meyer Jacobs
8757d2804f scmstore: specialized disk format for aux data
Summary: Add a new indexedlog wrapper, `indexedlogauxstore`, for storing file aux data for scmstore.

Reviewed By: DurhamG

Differential Revision: D29597641

fbshipit-source-id: 34a9d9095ee580b4d210c82760691496358e0c6d
2021-07-13 15:17:30 -07:00
Meyer Jacobs
f564998c4f edenapi: add new file aux data attribute
Summary: Adds a new file attribute, `FileAuxData` (based on Mononoke's `ContentMetadata`)

Reviewed By: DurhamG

Differential Revision: D29557288

fbshipit-source-id: 59251ebe8ddf2009d7bcf44a83eab68d49c817de
2021-07-13 15:17:30 -07:00
Meyer Jacobs
6c21aa14c9 edenapi: implement file content attribute
Summary:
Implement the `content` attribute.

Introduce a new `FileContent` type which stores the hg file blob and metadata, and modify `FileEntry` to allow constructing `FileEntry` with optional `FileContent` builder-style.

Reviewed By: DurhamG

Differential Revision: D29647203

fbshipit-source-id: b956c294d03dc81affc90d7274b2e430a3556e96
2021-07-13 15:17:30 -07:00
Meyer Jacobs
7c0b422b37 edenapi: introduce file attributes support
Summary:
Add support for optional file attributes to EdenApi, with `content` there as a placeholder.

Modifies the `FileRequest` type, adding a vec of `FileSpec`, which allows the client to specify desired attributes per-key. The existing `keys` field will be treated as a request for the content attribute and may be used in combination with the new per-key attributes.

Reviewed By: DurhamG

Differential Revision: D29634709

fbshipit-source-id: 6571837f87d1635e8529490e10dbe4ba054b7348
2021-07-13 15:17:30 -07:00
Meyer Jacobs
2bffe2927c edenapi_types: extract key parsing to separate function
Summary: `parse_key` will be re-used in my incoming EdenApi aux data change.

Reviewed By: kulshrax

Differential Revision: D29601071

fbshipit-source-id: 2039c8478e717ff58af2030588dd31ec0b418b19
2021-07-13 15:17:30 -07:00
Meyer Jacobs
64f3872a59 revisionstore: unify "store type" (local vs. shared/cache) enums
Summary:
We have a variety of enums in revisionstore that all serve the same purpose. With this change, I've consolidated them to a single type.

Not 100% sure if `StoreType` is the best name, in scmstore I named it `LocalStoreType` to be more clear - open to suggestions. I also decided to keep the variants named `Local` and `Shared` instead of adopting the `Local` and `Cache` terminology I used in scmstore - I'd rather not change that unless we decide to change the terminology everywhere to avoid confusion.

Reviewed By: kulshrax

Differential Revision: D29598025

fbshipit-source-id: 76d5a02230a8c1e5327cc5d90bbcae70049f251d
2021-07-13 15:17:30 -07:00
Meyer Jacobs
57a0164e8c scmstore: introduce per-backend filescmstore metrics
Summary:
Introduce a basic implementation of per-backend metrics collection for `FileStore`.

Currently, only indexedlog, lfs, and contentstore backends are instrumented, and only with basic metrics. Additional metrics (size, elapsed time, lfs pointer hits) and additional backends (aux, edenapi, lfs server) will be added in a later change.

Reviewed By: kulshrax

Differential Revision: D29552888

fbshipit-source-id: 54267f4de6f14db046cfae271b5c25a6bb494d7c
2021-07-13 15:17:30 -07:00
Meyer Jacobs
88af45aa20 metrics: add config for skipping certain metrics
Summary: Introduce a new config, `devel.skip-metrics`, intended to be used along with `devel.print-metrics` for filtering which metrics are printed in tests.

Reviewed By: DurhamG

Differential Revision: D29641812

fbshipit-source-id: 507099c5ad44a95e906d5ee4235a8a7eca64bd28
2021-07-13 15:17:30 -07:00
Durham Goode
93844abc0f treemanifest: remove flatcompat feature
Summary: The tests no longer require it, so let's remove all the logic for it.

Reviewed By: quark-zju

Differential Revision: D29643267

fbshipit-source-id: 86b44e3b7b4a4eb19d7f89b54b40957a7648573a
2021-07-13 15:04:57 -07:00
Durham Goode
1183f14f11 treemanifest: disable flatcompat by default
Summary:
This was a hack to allow the tests to produce the same hashes as
before. Let's disable this and fix the remaining test failures. A future diff
will remove the feature entirely.

Where possible I changed input hashes to desc() and output hashes to globs so
hopefully future hash changes are a little easier.

Differential Revision: D29567762

fbshipit-source-id: cf5150c112c56b08f583feba80e5a636cc07db0a
2021-07-13 15:04:57 -07:00
Durham Goode
4cd106a22c treemanifest: remove sendtrees and server configs
Summary: sendtrees is always on now, and server is always False.

Differential Revision: D29567763

fbshipit-source-id: f58aa7d84e97b7d69959e0796014a7ff09eb81e9
2021-07-13 15:04:57 -07:00
svcscm svcscm
5a266ba76a Updating submodules
Summary:
GitHub commits:

4623a06347
b76d8f1662
52567d7077
5cb1603664
76c3f2cbca

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 73e5faee5897519d6dafe100a858fc297590fe65
2021-07-13 14:34:07 -07:00
Liubov Dmitrieva
6b9587c207 remove deprecated commands
Summary: Clean Up. Remove deprecated commands.

Reviewed By: singhsrb

Differential Revision: D29677591

fbshipit-source-id: c4da701e9eedaa2f4dcd59b3e95c924aede74bf7
2021-07-13 13:48:06 -07:00
svcscm svcscm
2122289db6 Updating submodules
Summary:
GitHub commits:

d2e9590f7e
4ee6fa0f70
f232ed725b
9259524f0f
7b9ecd4067
2cd02e5558
0309bd9be9
06d73544f5

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 13018a7ca0ce51ed4689d01946b738fe83b81632
2021-07-13 13:43:51 -07:00
Durham Goode
5cb2db12f1 tests: remove accidental treemanifestserver.py
Summary:
This was accidentally committed in an earlier diff. It's unused, so
let's delete it.

Reviewed By: krallin

Differential Revision: D29668138

fbshipit-source-id: 105bf466665c447c37c73462e102d8771d0368ee
2021-07-13 13:32:16 -07:00
svcscm svcscm
882f661415 Updating submodules
Summary:
GitHub commits:

bcc80bd4f7
ea9212fdd4
a0dfe3eaad
b6ad734200
5940da0f16
9104c0b05f
c39d15955c
003bbf0b29
fe50b9a149
793a3698ff

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 40d224241204fcf44b8d4c450b2ca7652ca099b0
2021-07-13 12:07:24 -07:00
svcscm svcscm
e92dc8f074 Updating submodules
Summary:
GitHub commits:

725c92759e
ab9a8edb76
4aecdd2ef3
55dac17f01
051ba30b9a
0ebd2ce9ae
732eeca86c
b2c6537398
565bfefe07
9f58e53adb
d724906051

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e4d0b94366f8ef4015f14161913b00cc4ee681c3
2021-07-13 11:27:24 -07:00
svcscm svcscm
81550c7ded Updating submodules
Summary:
GitHub commits:

cbf367153d
b62c2098e2
0f00cc10cd
b6de93e194
9ab993116e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 80a3c798afe087b78ec7980af27aba981e1de53b
2021-07-13 10:49:26 -07:00
svcscm svcscm
c30beda009 Updating submodules
Summary:
GitHub commits:

9d050ffa87
9140ef476b
0afe08c0c8

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 2721f5b0d9702865dc4f6836c78c3f48fbfcc66c
2021-07-13 09:56:00 -07:00
Muir Manders
a03c904c9f amend: rework "--to" to not use histedit
Summary:
The amend "--to" flag amends the specified commit rather than ".". Previously it made a temporary commit and used histedit to scoot it back. This is not optimal due to unnecessary disk operations and fragile conflict handling.

Instead, "--to" now does its work in memory, checking for conflicts as it goes. If it finds any conflicts it aborts the operation. It works by generating a patch based on the working context and applying it to the specified commit. Then it does a mini-rebase of the stack tail onto the amended comit.

I tweaked patch.py to unlink the "from" of a rename _after_ creating the "to", which seems like the natural order to me. Other than the repobackend which defers unlinking, I don't see how other patch backends would have worked when renaming a file.

Reviewed By: DurhamG

Differential Revision: D29471052

fbshipit-source-id: 83406ec16b724b27d9a23473b630cafbb75da4d2
2021-07-13 09:08:02 -07:00
svcscm svcscm
2c108cf958 Updating submodules
Summary:
GitHub commits:

1e060254d8
28c672a066
7e21bff545
64acec5145

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: ef7577e65e8457b26867600ecc66138aaa1917fc
2021-07-13 07:36:35 -07:00
svcscm svcscm
c0f0599fa2 Updating submodules
Summary:
GitHub commits:

5a46041b1e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: cbdf3e08580e1088beb042d02be8e6a43224b2f3
2021-07-13 07:07:31 -07:00
svcscm svcscm
8e8bb0eef1 Updating submodules
Summary:
GitHub commits:

33e96c799c
2e18d49c88
36412a0571
8c6ea40bc4

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 1436f8b8ae07f813bd30c4483818b0a09522caaf
2021-07-13 05:36:25 -07:00
svcscm svcscm
620d5d67db Updating submodules
Summary:
GitHub commits:

c1c2a25913
535265bc32
47a04c817b
b5db5cf463
39de8ffd20
33e5161069

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 87f7791415d1166834eb78ff75a67bb454d8191e
2021-07-13 04:59:19 -07:00
svcscm svcscm
547ff2dab1 Updating submodules
Summary:
GitHub commits:

7574956d26
99cb8f23bb
63abc6f33b
0d2654fcd0
7ffaa6b17d
5a99327ce7
8f967f3eb9
0673989d7c
2c860b4529

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 04b57fffc48fd12c3a1c6d0f8a603c803d68a524
2021-07-13 04:23:27 -07:00
svcscm svcscm
820b62cba8 Updating submodules
Summary:
GitHub commits:

fb75d7e3a9
c085589d88
34b5b7d63c
23551073aa
c5b3731f7f
1c821b28fc
a30a01f248
1cc97a2938
00445107e3
7bbfc63916

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e6ca496d7b208a9503fefd995ae20f4add86960f
2021-07-13 03:57:28 -07:00
svcscm svcscm
3059b7178b Updating submodules
Summary:
GitHub commits:

7a18d18231

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e78c95eda6e856797585599a36dbaaa4ce674590
2021-07-13 03:21:47 -07:00
Liubov Dmitrieva
990a246aa8 Support exchange of mutation information during changesets uploads
Summary:
Support exchange of mutation information during changesets uploads

Add new api for mutation information.

Add implementation for this new api.

Add client side support.

Reviewed By: markbt

Differential Revision: D29661255

fbshipit-source-id: 1d8cfa356599c215460aee49dd0c78b11af987b8
2021-07-13 01:56:06 -07:00
Liubov Dmitrieva
33fe62fda7 mutation: Rename function entriesforbundle => entriesfornodes
Summary:
Rename function entriesforbundle => entriesfornodes.

This function will be used for edenapi uploads and not related to bundles

Reviewed By: markbt

Differential Revision: D29661256

fbshipit-source-id: b101c31d53f0f535db0b90804472c70b2f3b2c9e
2021-07-13 01:56:06 -07:00
svcscm svcscm
a6fac42116 Updating submodules
Summary:
GitHub commits:

933f790ebd
c15a9190b2
633847beae
40b8136eb2

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: dd1cfad60c0cb39906d03b1e92006ea816227257
2021-07-12 23:17:56 -07:00
svcscm svcscm
a6a51bacba Updating submodules
Summary:
GitHub commits:

38b5252baf

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 50eae54ad1d87d6209adb32fc54738471db65c43
2021-07-12 22:18:04 -07:00