Commit Graph

66657 Commits

Author SHA1 Message Date
svcscm svcscm
e0975c7e63 Updating submodules
Summary:
GitHub commits:

dfe8e6a7ee
5cd7f3615a
b54adcf727
8c4b699d61
c00b3ab6c7
cfb5c77f7a

Reviewed By: wittgenst

fbshipit-source-id: 62cbd93527a7bea63b3220a42f2872397ab6ee78
2021-07-19 15:49:21 -07:00
svcscm svcscm
11c0137f0d Updating submodules
Summary:
GitHub commits:

8664a02e0c
630a5a43a2

Reviewed By: wittgenst

fbshipit-source-id: a7cc7e57e5a6ce35ca3e14f64ed27ca4e0dfa395
2021-07-19 15:15:31 -07:00
svcscm svcscm
2ee85906e2 Updating submodules
Summary:
GitHub commits:

453cdbdd62
b93eb90666
8cbdb6edc9
d80aa78d21
6603032327

Reviewed By: wittgenst

fbshipit-source-id: 1bc815c03baae7fc494f2d8714ea705fe98682bb
2021-07-19 10:06:34 -07:00
Yan Soares Couto
a47540a494 Add /ephemeral/prepare endpoint
Summary:
Using all the preparations added in the stack, this diff adds the `/:repo/ephemeral/prepare` endpoint to eden api.

It simply creates an ephemeral bubble and returns its id via the call.

Reviewed By: markbt

Differential Revision: D29698714

fbshipit-source-id: 5bc289cad97657db850b151849784e50a17a9da6
2021-07-19 09:53:04 -07:00
Yan Soares Couto
58448b16d5 Add ephemeral blobstore to inner repo
Summary: This allows ephemeral blobstore to be used in places that have a Repo context, like in the eden api, which will be used on the next diff to implement a new endpoint on eden api to create a bubble.

Reviewed By: markbt

Differential Revision: D29697657

fbshipit-source-id: b7e83c5c7c5e77243f0dba29c024d9f66ca4b2f9
2021-07-19 09:53:04 -07:00
Yan Soares Couto
e20022a088 Build ephemeral blobstore on repo factory
Summary:
Config for ephemeral blobstore and some code for creating ephemeral blobstores was already added, this diff ties them both together by making the ephemeral blobstore be build using the default config on RepoFactory, so it can be used as a Repo attribute easily in other places.

I was able to do this easily because I stopped using `BackingBlostore` and started simply using `dyn Blobstore` in the ephemeral blobstore. Using BackingBlobstore would require some significant changes, because:
1. Building of blobstores is not ergonomic, it is quite hard and requires a bunch of manual code to be able to build some subtrait of Blobstore.
2. A lot of the blobstores "wrappers" do not implement things like BlobstoreKeySource, which would need to be implemented individually (example: D29678881 (817948ca75) would be just the start).

Reviewed By: markbt

Differential Revision: D29677545

fbshipit-source-id: 0f5cffe6bdfece1aaa74339ef40376d1ff27e6c2
2021-07-19 09:53:04 -07:00
svcscm svcscm
8969231359 Updating submodules
Summary:
GitHub commits:

49162e4b97
d5f3b77f23

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 29b409327eb84b2213a7ca15e2615ccf7ef89033
2021-07-19 09:11:05 -07:00
svcscm svcscm
b6dc24f060 Updating submodules
Summary:
GitHub commits:

9dc335f73d
9adfaae0a1
48d84359ce
4644aa2fc8

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 9fbb3bc1e3454ca9661d4e1876947dad5e3ba317
2021-07-19 07:07:03 -07:00
Liubov Dmitrieva
2c7e60f30a commit cloud: improve handling of failed commits for cloud upload
Summary: Improve handling of failed commits for `hg cloud upload` and `hg cloud sync` (upload mode)

Reviewed By: markbt

Differential Revision: D29734169

fbshipit-source-id: c995f700ea23ff2898f27780c39f2bd1c58c1a02
2021-07-19 06:51:23 -07:00
svcscm svcscm
2e7f9e5e13 Updating submodules
Summary:
GitHub commits:

81657eec53
cea1dc0fb5
2e276bbc67
dc2cd81346
fb09d0250b
56edaa253c

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 2909a125006ca44c30f54b0193199b8a15e58a71
2021-07-19 06:24:06 -07:00
Yan Soares Couto
eccda5507b Use Reloader on segmented changelog periodic reloader
Summary:
Use the class added on previous diff on segmented changelog periodic reloader as well.

To do this, I needed to add some changes to reloader:
- Add auto implementation of `Loader` trait for functions
- Add a tokio notify, as that was used on tests in segmented changelog

Reviewed By: markbt

Differential Revision: D29524220

fbshipit-source-id: 957f21db91f410fcdabb0d1c16d5c4f615892ab6
2021-07-19 05:17:50 -07:00
svcscm svcscm
30edd6a5fd Updating submodules
Summary:
GitHub commits:

fbe1e6f467

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b0128312508b667e894aa86f5befcddf23468081
2021-07-19 05:08:16 -07:00
Yan Soares Couto
817948ca75 Implement BlobstoreKeySource for Prefixer and Counting blobstores
Summary: If we ever want to start using things like BlobstoreKeySource more extensively, we'll need to implement it for a lot of blobstores. This starts that, though it's not used for now.

Reviewed By: ahornby

Differential Revision: D29678881

fbshipit-source-id: 918a169b8b934c6f5e1eefaba7d11dc220eb7c59
2021-07-19 05:04:34 -07:00
Aida Getoeva
0619e705ef mononoke/multiplex: put sync-queue lookup for get under the tunable
Summary: This is needed to disable sync-queue lookups and second blobstores lookups later on.

Reviewed By: StanislavGlebik

Differential Revision: D29663435

fbshipit-source-id: abb5109de6063158a7ff0a116a5c1d336bfdb43f
2021-07-17 17:00:16 -07:00
Aida Getoeva
008c99e5fa mononoke/multiplex: remove fail_if_unsure where possible
Summary: This just helps to understand where we definitely have to fail in case of "ProbablyNotPresent" and work on those in the future.

Reviewed By: StanislavGlebik

Differential Revision: D29663436

fbshipit-source-id: c8428115f3c9637114e3964c948123d473207d53
2021-07-17 17:00:16 -07:00
svcscm svcscm
b885f3afe7 Updating submodules
Summary:
GitHub commits:

b6c23f08b2
f8c789bebc
f4fac1c499
c2bf09d951

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e10f770a04489f33bb37b744379a9bb020025c2e
2021-07-17 16:54:08 -07:00
svcscm svcscm
354882e837 Updating submodules
Summary:
GitHub commits:

0729042dc3

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e2ddb2b2e8bff125f395ac10d907d2e6135c68fd
2021-07-17 16:18:54 -07:00
svcscm svcscm
3a5d69580a Updating submodules
Summary:
GitHub commits:

8ffa1a4454
0cfdc66beb
efce41e52f
73e09e67be

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 6bad6cc6ba67a8e15e42055775116cb8b32f2d9a
2021-07-16 21:48:15 -07:00
svcscm svcscm
d0e9ae049d Updating submodules
Summary:
GitHub commits:

d327ce838c

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b2b235246ef8cc6eac130fd4c1b3b5293be0e0d7
2021-07-16 21:23:45 -07:00
svcscm svcscm
76d0ee25f4 Updating submodules
Summary:
GitHub commits:

1a16581902
667306b679
9e885939a3
4e9b9da8b8
c4de78c045

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 3e7fb18913663ea92101765f4a492b2442255fe6
2021-07-16 20:24:23 -07:00
svcscm svcscm
045a4b6916 Updating submodules
Summary:
GitHub commits:

1df2f2b282
7c03ce7781
7441dc286a
2083599ecc
e25cd1cf22
b7d1f44cd2
9d7cfe4425

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 02706e85ffd906e9e804e19cfde047dddd8dac98
2021-07-16 19:18:46 -07:00
svcscm svcscm
bde87f0b2a Updating submodules
Summary:
GitHub commits:

e33de4d1e3
00eed2c501
18fb31216b
c407a6368a
629e45417a
f620a352fd
3c8d8a519f
fb9cc2f9d7
d80248f577

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 1b9634f154c68c111567563995f4c8bfbcfd6a18
2021-07-16 18:54:09 -07:00
svcscm svcscm
56e49f011c Updating submodules
Summary:
GitHub commits:

314b640b48
a7c7c9c0f1
8ba6d12c5c
803b636e61
c04a86a0e9
243894b5dc
aed0d0da2b
15cb9b3f1a
64fb0b968c
c05ff65aae
89b1bd0849

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 5626b50f197a0de8136d04da1fed3329823eb83f
2021-07-16 18:09:50 -07:00
svcscm svcscm
cb473734c9 Updating submodules
Summary:
GitHub commits:

8a845377ba
27b0f51ff4
b8fdbc94a7
3455ab0e2b
1d34af89f9
8519192653

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e7141ae4a3c7ed8f4c4598f085914f0710143697
2021-07-16 17:48:04 -07:00
Durham Goode
195d166b0f memcache: don't use memcache for short commands in legacy store
Summary:
The memcache client has a 2+s setup time, so let's avoid it for short
commands.

Reviewed By: quark-zju

Differential Revision: D29627225

fbshipit-source-id: c755fbaadd35e423b6dafe772ffbed82fe41abce
2021-07-16 17:11:50 -07:00
Durham Goode
48939a54bf memcachestore: remove direct usage of MemcacheStore
Summary:
Previously we could add a MemcacheStore to the store hierarchy in two
ways: directly as MemcacheStore and through the MemcacheHgIdData/HistoryStore
wrappers.

In a future diff we'll want to track how long since the store was created and
not call the inner MemcacheStore in certain situations. To do this, we want all
accesses to go through the MemcacheHgId*Store abstraction.

Reviewed By: quark-zju

Differential Revision: D29627226

fbshipit-source-id: 9e979281fbb2eec123577d99a8879bcf80578136
2021-07-16 17:11:50 -07:00
Durham Goode
7e76b7dc29 memcache: don't use memcache for short commands in scmstore
Summary:
The memcache client takes 2 seconds to set up, so let's not use it for
short commands.

Reviewed By: quark-zju

Differential Revision: D29627229

fbshipit-source-id: bbefcd362e215a3b0f8a0f07c39b7ef00c71379e
2021-07-16 17:11:50 -07:00
svcscm svcscm
08a6b10cc0 Updating submodules
Summary:
GitHub commits:

28338c5a1b
2b0a9d404c
5a5b4abd09
a379dae4f7
6aca7aea15
4b971828fc
ea94540348

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0631b10783bf598e525bd53f75e728aca810d0bd
2021-07-16 16:19:27 -07:00
svcscm svcscm
a9477ce72a Updating submodules
Summary:
GitHub commits:

f4578c94a3
213c693131
577fe813b7
8738bcff36
ac37bfded0
6ed5f4aff9

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 28f71dde19432ee01849a571e8209e0df5af0a79
2021-07-16 15:24:26 -07:00
Zhengchao Liu
17f9251909 allow separate batch sizes in HgImportRequestQueue
Summary: We want to support different batch sizes for blob or tree. This diff moves the batch size read logic into `HgImportRequestQueue`, adds a new config `import-batch-size-tree` (added in D29714772), and updates tests accordingly.

Reviewed By: kmancini

Differential Revision: D29703450

fbshipit-source-id: b85666838a0a8c1857b9d1de4f6c47128063633a
2021-07-16 15:01:58 -07:00
svcscm svcscm
ea04743986 Updating submodules
Summary:
GitHub commits:

bd8c4f2db7
84fd151403
40884e8564
69e064f678
965efa806f
92840487c3
32077a97c4
f8e0a5ec24

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: ffef915beb8c2f31ac3d65c775f5be88a34d727b
2021-07-16 14:57:17 -07:00
svcscm svcscm
65e293dd89 Updating submodules
Summary:
GitHub commits:

02984da3ba
99a16225cf
1ce7d818ec
508f3d1a65
df5dc73bec
d717ae0f57
22567a4d56
380dc4abe1

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b22d1d2f8cd6d5f635fdc6a076204b4ee7a7f210
2021-07-16 14:37:15 -07:00
svcscm svcscm
e72d58b868 Updating submodules
Summary:
GitHub commits:

f2ba5f4a3f
ef6bfa6d4b
a2ddd0afc1
25233cf5d0
2a0ab306bd
74534743cf
0998b712ae
33faec5967
02c50615a4

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 822a09b75a7ba779e42acdae3857bccfb18b87c4
2021-07-16 14:05:24 -07:00
Durham Goode
5077128101 tests: actually fix test-import-t.py on Windows
Summary:
My previous attempt at fixing it chose the wrong hash. Let's just
delete these lines entirely.

Reviewed By: singhsrb

Differential Revision: D29742490

fbshipit-source-id: 72a174e0e2d59aec4de35d7eb3fcc43939be8ea1
2021-07-16 13:50:19 -07:00
svcscm svcscm
0aa3db6c03 Updating submodules
Summary:
GitHub commits:

bb4fe81caa
bbdc820e71
7593a582db
8578922355
1e5b631e51
14f71cf724
e2b6c4ba3e
34ac4721e7
10ec7903f9
2a886ba9d9
4c15d66422

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: f11889bb30b9b6f4d8c2b561e0bbc95554a023a3
2021-07-16 13:07:10 -07:00
svcscm svcscm
b9d1fc25dd Updating submodules
Summary:
GitHub commits:

ed87810e6e
39bf875ce9
653703a385
e3b65c816f
ddee971093

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: c0e323a7dc3cc4ded79837f00da5ab275b79b2d5
2021-07-16 12:41:37 -07:00
svcscm svcscm
e79857077e Updating submodules
Summary:
GitHub commits:

4faf65a439
b157feff61
b2be36349d
9f2590d97f
7131795277
c680a45466
48de6d7d22
3d33c46549

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e35969e2d5fe300c995d0149f5ba4cb5d1f3e7b8
2021-07-16 12:07:12 -07:00
svcscm svcscm
b1f8a7b020 Updating submodules
Summary:
GitHub commits:

7438946720
59a9ea8490
d6b6f6f27e
b28b172337
c76ab87f33
1127360530
d935fea9ac
2a3704ce8a
fb6644a161

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b09cf3b5e62a16954d8aa6d68507ff334c1cab8b
2021-07-16 11:27:05 -07:00
Stanislau Hlebik
5ce118e1c2 mononoke: remove segmented changelog from BlobRepo
Summary:
Segmented changelog is initialized in every BlobRepo, and that's quite annoying
- there's a lot of spam goes to stderr in jobs like hg sync job which don't use
segmented changelog at all.

At the same time segmented changelog is only used in mononoke api, so we can
just initialize segmented changelog in InnerRepo, and remove from BlobRepo
completely.

Reviewed By: markbt

Differential Revision: D29735623

fbshipit-source-id: 9137c9266169b7ef16b1c6c0b80cae896214203b
2021-07-16 11:10:00 -07:00
svcscm svcscm
9794ec161e Updating submodules
Summary:
GitHub commits:

ca12dd0aa7
db9a72cadc
70efd0d393
41c4de8db9
a80b775804
0229a88dfe
6554b542ee
6294ebbde4
04855aa8ac
9fe8434175
27e007357b
381315afb7

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: a13e6e1fa4af6d7458b13ff8fbbc916399bc6ac7
2021-07-16 11:02:45 -07:00
svcscm svcscm
4b4edae2bf Updating submodules
Summary:
GitHub commits:

ca7ce442f9

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 674723b7a7993da61e9bb3083c540928b9c47f98
2021-07-16 10:35:02 -07:00
Jun Wu
ff66f7deed undo: do not crash other commands if undo revlog is corrupted
Summary:
Undo revlog corruption should not affect other commands.
There were multiple user reports. This should not need a reclone.

Reviewed By: markbt

Differential Revision: D29723869

fbshipit-source-id: 8f48f45c1e25478ac9ff713fbcf69eaa08f464a8
2021-07-16 10:06:52 -07:00
svcscm svcscm
cc8ebc850b Updating submodules
Summary:
GitHub commits:

54fa255631
8fbe2bc3bc
f6f18c7a09
53a7a45be2
ba869784c6

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 00114ccf1889025f4ae5b6f6edb394d49a1fd775
2021-07-16 09:55:53 -07:00
svcscm svcscm
957be9125b Updating submodules
Summary:
GitHub commits:

8f5e83be07

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: f2f84f1e6566aa2f3abb5c0693853b7cf80cf7c4
2021-07-16 09:17:28 -07:00
Genevieve Helsel
ffc55511ea remove windows check for eden du --deep-clean
Summary: This can be used on windows since it uses `shutil.rmtree` instead of `fm -rf`

Differential Revision: D29723916

fbshipit-source-id: 7d12ce8d265661698c1f5ecd17271d1c2e950a55
2021-07-16 09:05:56 -07:00
svcscm svcscm
a6149a4551 Updating submodules
Summary:
GitHub commits:

735de1b793
5f8033f309
0dfee2adce
5446a5a79f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: cee33fd965b18cc2dc286feff609581c463b6e27
2021-07-16 08:00:12 -07:00
Stanislau Hlebik
e5f8b1588e mononoke: read just written sync target config
Reviewed By: markbt

Differential Revision: D29728973

fbshipit-source-id: b1d9020222c9d4494b206dabeb7e92c9c45d35b7
2021-07-16 07:43:08 -07:00
svcscm svcscm
99963d05af Updating submodules
Summary:
GitHub commits:

abe0b43f01

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 12033af1e91b6e00c4bb89117ec488f687d9e46c
2021-07-16 07:12:48 -07:00
Liubov Dmitrieva
ffbf880734 add option for using EdenApi Uploads for cloud sync command
Summary:
add option for using EdenApi Uploads for `cloud sync` command

This option could be used for early testing of the new protocol within the team.

The only different is that the upload function doesn't use the local backup state to filter initially.

TBD if we need it.

Reviewed By: quark-zju

Differential Revision: D29696175

fbshipit-source-id: 2261930f1f01bf2957b418cc24f31ef61d536e77
2021-07-16 02:23:34 -07:00
Liubov Dmitrieva
fe23153c23 Clean Up. Removed old tests
Summary:
These tests are broken and they are always skipped.
They are relared to old pullbackup/restorebackup.
Let's remove them.

Reviewed By: quark-zju

Differential Revision: D29695847

fbshipit-source-id: 9fc6babe70710ea1ba5f143a2203997945f1ccff
2021-07-16 02:23:34 -07:00