Commit Graph

67030 Commits

Author SHA1 Message Date
Mark Juggurnauth-Thomas
676ac14070 mononoke_api: remove dependency on futures-old
Summary: This no longer depends on old-style futures, so we can remove the dependency.

Reviewed By: quark-zju

Differential Revision: D27708962

fbshipit-source-id: fd66fb2934ff631abe0bfcdae843fcc9b10d5fdc
2021-08-02 14:14:19 -07:00
svcscm svcscm
fe5e4e7ffa Updating submodules
Summary:
GitHub commits:

dfcd34c389

Reviewed By: jurajh-fb

fbshipit-source-id: c74b891a3d9567cc7e8d8f6d75c9c350a0911111
2021-08-02 14:06:31 -07:00
Jun Wu
0d4f544fbf pullcreatemarkers: set check-local-versions to false by default
Summary:
There are recent user complaints about the new behavior. Partially because
`arc land` might amend the commit message, producing a different commit
hash. Let's disable it until we figure out a better solution.

Context:
https://fb.workplace.com/groups/sourcecontroloncall/posts/2978573212422423/
https://fb.workplace.com/groups/scm/posts/4061690657213857/?comment_id=4070943596288563&reply_comment_id=4072909576091965

Reviewed By: DurhamG

Differential Revision: D30004959

fbshipit-source-id: 658ab0a07599df58b80bb940c61ed0c9804c8121
2021-08-02 13:56:52 -07:00
Simon Farnsworth
370a536f4a Provide a way to write Megarepo configs to disk for testing
Summary:
In integration tests, we want to be able to run through the megarepo processing, and then check that configs have persisted correctly, so that we can start async workers after sending a config change down, and see the change be picked up.

Make it possible

Reviewed By: StanislavGlebik

Differential Revision: D30012106

fbshipit-source-id: f944165e7b93451180a78d8287db8a59d71bbe13
2021-08-02 13:53:04 -07:00
svcscm svcscm
edc67a826a Updating submodules
Summary:
GitHub commits:

0a6ea31823
6d1cc2fd4d
98c055725b
cd49830227

Reviewed By: jurajh-fb

fbshipit-source-id: 536de02a52bc84787dfb4602224f2a44de70babd
2021-08-02 13:31:22 -07:00
Jun Wu
fd10938296 hgcommands: avoid deadlock setting up fail points
Summary:
FailScenario nested in a single thread can cause deadlock on a Mutex, confirmed
by gdb backtrace. Fix that by avoiding nested FailScenario in a single thread.

Reviewed By: kulshrax

Differential Revision: D30052693

fbshipit-source-id: 8d38b2e40ec30c8024e563f079d2595d76bbae1b
2021-08-02 13:27:21 -07:00
Jun Wu
cb48ca1326 pyedenapi: fix cargo build
Summary: Left over of D29989181 (ab8d843ebd).

Reviewed By: kulshrax

Differential Revision: D30052695

fbshipit-source-id: 3e126055c76f9d9e48566708abe1407bd2fecaa3
2021-08-02 13:27:21 -07:00
Alex Hornby
e389e2a151 mononoke: remove chashmap usage from blobrepo_utils
Summary: Switch from chashmap to dashmap as dashmap upstream is more responsive.

Reviewed By: StanislavGlebik

Differential Revision: D30044510

fbshipit-source-id: 8003ecba2f9c5d16e9cb6dced28f3785a062870d
2021-08-02 13:02:29 -07:00
svcscm svcscm
7013f77ede Updating submodules
Summary:
GitHub commits:

e1082d128f
697de69fdc
a32fea7099
c0df070ca3
565a076c99

Reviewed By: jurajh-fb

fbshipit-source-id: 35bd16b5e70d577d912b1bd0914bf960f3de4978
2021-08-02 12:53:23 -07:00
svcscm svcscm
72523de38f Updating submodules
Summary:
GitHub commits:

def02124f1
daa3c56ea0
ead68602ac
600a4c3d39
5ae0014b43
50713c76ae

Reviewed By: jurajh-fb

fbshipit-source-id: 32b1971179ef77253c86918d9d2f4e703d96d048
2021-08-02 12:29:45 -07:00
Xavier Deguillard
4cad13be75 integration: enable the add_test on Windows
Summary: 2 of the disabled are passing, and the last one just needed a simple tweak.

Reviewed By: fanzeyi

Differential Revision: D30029260

fbshipit-source-id: ad386632e8b6fbf9c76530c8ce2df7d38990bbbd
2021-08-02 12:04:34 -07:00
Xavier Deguillard
bcef8b148f integration: enable symlink_test on Windows
Summary: The test pass.

Reviewed By: fanzeyi

Differential Revision: D30029165

fbshipit-source-id: 7fe841402ae622cbe7265a94eb82e65d9c3531c8
2021-08-02 12:04:34 -07:00
Xavier Deguillard
6a8b9a31f8 integration: enable move_test on Windows
Summary: They all pass.

Reviewed By: chadaustin

Differential Revision: D30028934

fbshipit-source-id: 642475c65b05c7b727e6483583a43b91d75c36e8
2021-08-02 12:04:34 -07:00
Xavier Deguillard
f8481e9a7e integration: enable post_clone test on Windows
Summary:
The mode bits don't make a lot of sense on Windows, so let's use the plain
0o777 as that's what they will look like on Windows.

Reviewed By: chadaustin

Differential Revision: D30028892

fbshipit-source-id: ced737f1290438708536b732095cee18e1b1c073
2021-08-02 12:04:34 -07:00
Xavier Deguillard
dde44f8d72 integration: enable pull_test on Windows
Summary: The test is passing, enable it.

Reviewed By: chadaustin

Differential Revision: D30028894

fbshipit-source-id: b268fc63220704466c72c688a1f0f04a47573641
2021-08-02 12:04:34 -07:00
Xavier Deguillard
0e0d74762d integration: enable fold tests on Windows
Summary:
The create_editor_that_writes_commit_messages function uses bash which is not
available on Windows. Instead, we can simply pass --message to Mercurial for
the same effect.

Reviewed By: chadaustin

Differential Revision: D30028893

fbshipit-source-id: 0a588c37bd4da85176546568126893192b29a574
2021-08-02 12:04:33 -07:00
svcscm svcscm
c8b78e85eb Updating submodules
Summary:
GitHub commits:

781a01c47e
8b7919f36d
a5814b31f8
c677587ec9
63a65a4608
2b312742a4
9607ee4564
8eac7d6af2
6bff7c0008

Reviewed By: jurajh-fb

fbshipit-source-id: 554c6b0959eb7d1306928a2b5f5be307d1759745
2021-08-02 11:52:19 -07:00
svcscm svcscm
01bfe7b91e Updating submodules
Summary:
GitHub commits:

d0a8c9da19
07bac10e98
22e1769d5a
a109e45586
c2d663223b
c5e22369ee
9d52da098a
136aeea202
e25ae7bfa6
6d4549e5ab
0d83cba0ac
952124fa96

Reviewed By: jurajh-fb

fbshipit-source-id: d6210a027085e736c4e038767dd32abaec83398c
2021-08-02 11:16:07 -07:00
Xavier Deguillard
3ac1b336cb inodes: remove unused UnloadedInodeData
Summary: This is unused, no need to keep it around.

Reviewed By: genevievehelsel

Differential Revision: D30046503

fbshipit-source-id: 1d20d9b4ce672d5d79410203807dbc93b4bce31a
2021-08-02 11:10:24 -07:00
svcscm svcscm
0b9ba42dc8 Updating submodules
Summary:
GitHub commits:

451819f6cb
acf6713a7d

Reviewed By: jurajh-fb

fbshipit-source-id: 8522408d00bdd1fc70ddda9578759177edbfa3fd
2021-08-02 10:46:35 -07:00
Stanislau Hlebik
5e8e82fba8 mononoke: add "tag" to streaming_changelog_chunks
Reviewed By: krallin

Differential Revision: D30015700

fbshipit-source-id: df8b61a69d781e1e8d7ab2e2cbaa148c4859cb97
2021-08-02 10:33:44 -07:00
Andrey Chursin
37bc911497 fsprobe: move main.rs outof bin
Summary:
In current location cargo build generates binary file with name 'main'.
Moving main.rs up makes it generate proper binary name 'fsprobe'

Reviewed By: DurhamG

Differential Revision: D29998232

fbshipit-source-id: b33ffb3ca7209a7e19ec15705ba03a31c0449447
2021-08-02 10:30:44 -07:00
Andrey Chursin
331b3d81f7 fsprobe: add --parallel
Summary:
This option allows to perfrom operations in parallel to test throughput
Using fairly simple approach of sending to first available worker to build parallelism. There is probably some crate that provides multi-consumer queue, but current implementation is likely sufficient for our purposes

Reviewed By: DurhamG

Differential Revision: D29997918

fbshipit-source-id: fe90b88b9c19546fefbb7643c5a8cd5ea8c565aa
2021-08-02 10:30:44 -07:00
Andrey Chursin
dc30a70bdd backingstore: add instrumentation to backingstore
Reviewed By: DurhamG

Differential Revision: D29997670

fbshipit-source-id: 71b226b45079bf05ff486dbe7bea1323b77eb711
2021-08-02 10:22:45 -07:00
svcscm svcscm
3be72d09c9 Updating submodules
Summary:
GitHub commits:

f1f277a79d
8836e1a389
61f901a77c
920635c5f1

Reviewed By: yns88

fbshipit-source-id: eb4dac3d7e341ecb661e7c1ddc3321a672a7d270
2021-08-02 08:34:53 -07:00
svcscm svcscm
9eaad11a21 Updating submodules
Summary:
GitHub commits:

f00c3877b2
9791fa9062
d65540530f
4371c66728
7f024715a0
49e5831200

Reviewed By: yns88

fbshipit-source-id: 20c786fd53cabd94e452122ed1c49e685e0ad31a
2021-08-02 08:04:01 -07:00
svcscm svcscm
696e14558b Updating submodules
Summary:
GitHub commits:

9148e44208
4c390e4c77
b866894c24
44ac259603
16b8ee4046
0b9710032e
ee417db656
9e430758ff
a758b9f5d3

Reviewed By: yns88

fbshipit-source-id: e7bf8925e68288296e0e129364a4dcbfa4bc7e87
2021-08-02 07:43:23 -07:00
svcscm svcscm
302b07bda5 Updating submodules
Summary:
GitHub commits:

ae3259ba52
26906a2d4c
4e034f6ab4
7aaf275265
e562c83489
1d16da3e5f
c33cb029d1
26d075332e
3ebdddf317
d5dbedc5ca
ed316b3b73

Reviewed By: yns88

fbshipit-source-id: c468e762a9d561aaf251ef096f8ba1c36253724f
2021-08-02 07:26:49 -07:00
svcscm svcscm
fb4ce7ef38 Updating submodules
Summary:
GitHub commits:

a66a35a47e
460e85a545
0a5cc34bbe
3e84bbd64b
686c12b037
856b78f82f
15c3bdc467
c39fade100
35c58f76c9
4f14225358
cacc473b28
205c74b708

Reviewed By: yns88

fbshipit-source-id: 79776a15326eb4c4c82b5b4f178e24a392757e12
2021-08-02 07:03:05 -07:00
Stanislau Hlebik
9a0d8a1019 mononoke: start logging repo name to scribe commit queue
Summary:
Let's log repo name since it's clearer for people than repo ids. And in my mind logging
repo ids was a mistake - repo id is an implementation detail (we use repo ids
because they are more efficient to store in xdb table than strings), and
Mononoke users shouldn't need to care about repo ids. So let's start loggin
repo names.

Reviewed By: krallin

Differential Revision: D30040409

fbshipit-source-id: 71c2794d8122e616850662cda27c8092d382de7a
2021-08-02 06:48:48 -07:00
Jan Mazur
d53aa8f2ed adding copyright header
Summary: as in the title

Reviewed By: Croohand

Differential Revision: D30041822

fbshipit-source-id: 923158fcba241f5cd2ace8f87fa12083fd22356c
2021-08-02 05:55:58 -07:00
Yan Soares Couto
7ab65b4e64 Common implementation for all wire hash types
Summary: Same as previous diff, but for wire equivalents. Code was also very duplicated. Now it should be easy to create a new strongly typed hash for edenapi.

Reviewed By: liubov-dmitrieva

Differential Revision: D29994118

fbshipit-source-id: 304c9500ba2aa35cc975612815dc40689845ba93
2021-08-02 05:37:20 -07:00
Yan Soares Couto
c7f872602c Common implementation for all hash types
Summary:
Code was very duplicated between ContentId, Sha1, Sha256. And in this stack I plan to implement even more hashes, so I made this macro which makes it really easy to do so.

I took the opportunity to make the inner field not public, and only accessible via from/into.

Reviewed By: liubov-dmitrieva

Differential Revision: D29992279

fbshipit-source-id: c0b7225a3634071a1b1513119ec516d14bd8fd9e
2021-08-02 05:37:20 -07:00
Yan Soares Couto
cbde50c591 Create simple bonsai commit
Summary:
On `createremote`, create a changeset using the create_bonsai_changesets method created earlier.

For now, this changeset is create with a bunch of placeholders, but I added todo for all of those things and will tackle them over the next diffs, otherwise this would be a massive diff and hard to review.

Reviewed By: liubov-dmitrieva

Differential Revision: D29990295

fbshipit-source-id: 6b4c97887c0b4c017c586bf0ea06f12df9d07d23
2021-08-02 05:37:20 -07:00
Yan Soares Couto
ab8d843ebd Upload modified files
Summary: This makes the `createremote` command also upload modified files to Mononoke, which will later be used to populate the snapshot.

Reviewed By: liubov-dmitrieva

Differential Revision: D29989181

fbshipit-source-id: 5a3b8d7133d6b27ea291ca01d14432a38d92f866
2021-08-02 05:37:20 -07:00
Yan Soares Couto
715a04f253 Create ephemeral bubble from createremote command
Summary:
This starts adding very basic behaviour to the createremote command.

- Added a `uploadsnapshot` method to the python/rust api. This will be used by the `createremote` command. It will create a bubble, and upload a snapshot to it. For now it just creates a bubble. The request/response objects are still subject to change.
- Added basic code to `createremote` that calls `uploadsnapshot`. It gets the modified files, but for now does nothing with them. I believe I'll have to read their content on rust code, as they are not in the "hg filestore" I believe, as they're not commited.

Reviewed By: StanislavGlebik

Differential Revision: D29987594

fbshipit-source-id: d1e332bb6d1baf9e90efdd2173474e8f3ebcc0e7
2021-08-02 05:37:20 -07:00
Yan Soares Couto
32b8d7fe07 Add ephemeral prepare call to EdenApi trait
Summary: Add ephemeral_prepare to EdenApi, which allows calling the `/ephemeral/prepare` endpoint. This will be used when creating snapshots.

Reviewed By: liubov-dmitrieva

Differential Revision: D29987593

fbshipit-source-id: 2af2d9e051a8b4c124adf023ea4fd1bf2ec69e7c
2021-08-02 05:37:20 -07:00
svcscm svcscm
d578bd9000 Updating submodules
Summary:
GitHub commits:

7c334c1200
6c39e2d7de
5451f6f54f
29b4eec640

Reviewed By: yns88

fbshipit-source-id: bf5cd082fe7097336c362d73cdd66337a0faae8f
2021-08-01 21:32:35 -07:00
svcscm svcscm
7d2c116a7f Updating submodules
Summary:
GitHub commits:

0a853849a5
a34f164969
83590cbe20
686d858d2f
04a2b1e2ff
7d38c5c307

Reviewed By: yns88

fbshipit-source-id: a7ecaf1f56fb571739324d7765e154694c1f6f3f
2021-08-01 21:05:28 -07:00
svcscm svcscm
cb6f010de8 Updating submodules
Summary:
GitHub commits:

5bd50a28ee
b899d53875
1b178291a5
3b611ffceb
ea083d97f7
4b9f4b568d
81ba7e8877
c643e630e3
2ddfae9611

Reviewed By: yns88

fbshipit-source-id: f07a06624a8c8b7c9fb47ac645ff53a79f6bdb23
2021-08-01 20:30:08 -07:00
svcscm svcscm
9da9f8a3f5 Updating submodules
Summary:
GitHub commits:

555123f049
9c9ef24754
1773015d57
cdae8de384
95a8ed0191
5e97694a77
d3a721b744
e3c88f51f8
e747f76f59
343023fbf0

Reviewed By: yns88

fbshipit-source-id: 9b0f163218fb05cfaceb0daffc4c3699c7e14570
2021-08-01 19:59:20 -07:00
svcscm svcscm
25d0d4e568 Updating submodules
Summary:
GitHub commits:

f4c8e8337b

Reviewed By: yns88

fbshipit-source-id: 1b6ed0aaecdce42e894c57a760b6e119ef4d72c8
2021-08-01 19:18:29 -07:00
svcscm svcscm
ae341fcd38 Updating submodules
Summary:
GitHub commits:

4a5736d58c
00dc1502a4
6fce8d0106
deb625f71d

Reviewed By: yns88

fbshipit-source-id: 779433c30f78a45ebc2361cf6564862b1d3c39e4
2021-08-01 18:44:13 -07:00
svcscm svcscm
599949d072 Updating submodules
Summary:
GitHub commits:

acdb26d993

Reviewed By: yns88

fbshipit-source-id: d40072ce3fde2be229b0bbcd86fd6c458b8b1a31
2021-08-01 17:50:10 -07:00
svcscm svcscm
7b5de280db Updating submodules
Summary:
GitHub commits:

fdbe94d376
e711fdd43d
5028eab7fd
89087db1aa
652d8d8858

Reviewed By: yns88

fbshipit-source-id: ed81011cf53437d63ef5708e99af3bc9bbef9f49
2021-07-30 22:25:52 -07:00
svcscm svcscm
ca2215e416 Updating submodules
Summary:
GitHub commits:

b8c82252a1
1e86ef4658
eb7e1338a2
249076a9fa
b04c8cc584
eedc5ffe38

Reviewed By: yns88

fbshipit-source-id: 0a745f8acf54a468eac74088fdb155da6a4670f8
2021-07-30 21:13:35 -07:00
svcscm svcscm
79d4032e16 Updating submodules
Summary:
GitHub commits:

5bae12c5c6
e3ed7f3c6b
a97dcdf973
b6682ada95
8428db29e1
efb0cdd1e7
f7404b8796
e609991eda
fd6757b6b8

Reviewed By: yns88

fbshipit-source-id: e4ece7ab395e55c67b214c8f177064d50404f016
2021-07-30 20:47:43 -07:00
svcscm svcscm
a1b8152581 Updating submodules
Summary:
GitHub commits:

fab2a2fbb9
b419ddb829
d69a4665bf
89368f1593
8213aafd3e
faa6abc0dd
781ecb2d38
53ffa99cb2
6184899bc0
2a4aa36744

Reviewed By: yns88

fbshipit-source-id: ddd66ed86f62e28a8e0b0e715740f0065d4fa755
2021-07-30 20:12:04 -07:00
svcscm svcscm
6bc4a28575 Updating submodules
Summary:
GitHub commits:

331e3a2c6f
9d18fdf5e4
d0edf4c66c
75986258a7
8fbbe53dd2
674bfe48d0
e8277f0945
150cba7e07
71d9f2866a
37643c16d0

Reviewed By: yns88

fbshipit-source-id: 9fb378602bed304212d18657cd09aed45470a24f
2021-07-30 19:37:22 -07:00
svcscm svcscm
932546a2ea Updating submodules
Summary:
GitHub commits:

b9e0429b78
180084fae8
48a883d94e
722c770f83
c93d411817
ce95b3db53
25b89fbe21
3798fbec49

Reviewed By: yns88

fbshipit-source-id: 2ea1a89008182901694a2c29a145ff11040e2beb
2021-07-30 17:12:51 -07:00