Commit Graph

65192 Commits

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

0f2221029d
41a7c3345f
053c97df11
9a6224e7b4
69b6acca09
db731a47e2
0c84155137
5a52384eee
5590b9f573

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 8a4984c93b5c2218e7d81794c06f975728e5ed2f
2021-05-05 00:16:17 -07:00
svcscm svcscm
cad1ba4845 Updating submodules
Summary:
GitHub commits:

b90b5c8826
62e564b8cf
aea73272f4
5da1808062
be41385744
85afef14f8
d4ff960fd4
e984ced90e
e7c2e789d6
14277fa9a3
14f62e8891

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: b19e37879007b0737d1d6925d3230172d8b34443
2021-05-04 23:11:20 -07:00
svcscm svcscm
cce8013aef Updating submodules
Summary:
GitHub commits:

c37827680c
bc926fc44c
493e9fe9f2
62c4eb403a
3b081853c0
3b981eaa1d
0d729fe855
47a0d1b789
99a0f61671
57d6f7c489
2c6ece8a78
7cd34b8082
4636557505
73f0c8462e
2e9126ba9e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 4f582ccf8ab192cce986bfaa5fe331b818279119
2021-05-04 22:48:24 -07:00
svcscm svcscm
9dc5147ec8 Updating submodules
Summary:
GitHub commits:

2a310838a4
e1dc23b6e2
6513b09488
0383893a59
dd66ea563f
73584daa0c
08556f48ea
95946ae5d6

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 8e252fc37ed47c2dbf8590c229f5253cf2ffcb6f
2021-05-04 22:21:43 -07:00
Durham Goode
27d58bbd42 configs: delete applydynamicconfig
Summary: This is no longer used.

Reviewed By: quark-zju

Differential Revision: D26676518

fbshipit-source-id: 1cc9c32e2a95d6db78160f33ab5423338ea82e04
2021-05-04 22:18:55 -07:00
John Reese
9fd86a4fae apply upgraded black 21.4b2 formatting to fbsource
Summary:
This applies the formatting changes from black v21.4b2 to all covered
projects in fbsource. Most changes are to single line docstrings, as black
will now remove leading and trailing whitespace to match PEP8. Any other
formatting changes are likely due to files that landed without formatting,
or files that previously triggered errors in black.

Any changes to code should be AST identical. Any test failures are likely
due to bad tests, or testing against the output of pyfmt.

Reviewed By: thatch

Differential Revision: D28204910

fbshipit-source-id: 804725bcd14f763e90c5ddff1d0418117c15809a
2021-05-04 22:16:51 -07:00
Zeyi (Rice) Fan
9bee308885 cli: disable edenfsctl fsck on Windows
Summary:
Context: https://fb.workplace.com/groups/edenfswindows/permalink/828914994691047/

Even with D27872753 it doesn't really make sense to have `eden fsck` running on Windows since it requires EdenFS repository to **be unmounted**.

This diff changes it to generate a warning to redirect users to run `eden doctor` instead (which is likely what they need).

Reviewed By: kmancini

Differential Revision: D28203778

fbshipit-source-id: ae105678876903bcf6514252bf07189775f9b187
2021-05-04 21:25:00 -07:00
svcscm svcscm
ae96a9645e Updating submodules
Summary:
GitHub commits:

000cad571b
64eb5991e3

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 61d8000d33938f6f3f9ea4cfbb955db82dd7d5b5
2021-05-04 20:04:18 -07:00
Jun Wu
2400e5c960 pydag: add importclonedata
Summary:
This will consume `CloneData` from EdenApi and write to the graph.

Note `CloneData<Vertex>` and `CloneData<HgId>` has the same mincode
serialization result so there is no need to do extra type conversion.

This can be used like:

  In [1]: v=api.clonedata('fbsource');
  In [6]: d=bindings.dag.commits.openhybrid(None, '/tmp/seg', '/tmp/msg', repo
     ...: .edenapi, repo.name, lazyhash=True)

  In [7]: d.importclonedata(v)

Reviewed By: kulshrax

Differential Revision: D27971125

fbshipit-source-id: 4d420c6ff0495dc184e7c9618b866a69f0a00002
2021-05-04 18:28:45 -07:00
Jun Wu
f1d1862e70 hgcommits: expose import_clone_data API
Summary:
Expose NameDag's `import_clone_data` API so this can be then exposed via
`pydag`.

Reviewed By: kulshrax

Differential Revision: D27971118

fbshipit-source-id: c9d869ffbbc8ba5a7a6ae98d17a2b7ea713bc675
2021-05-04 18:28:45 -07:00
Jun Wu
1b4f6be538 pyedenapi: add clonedata endpoint
Summary: The `CloneData` is currently only exposed in Rust. Expose it in Python too.

Reviewed By: kulshrax

Differential Revision: D27971124

fbshipit-source-id: 1a9c63274b6e2d78a176869b6810acbc191ba314
2021-05-04 18:28:45 -07:00
Jun Wu
fa7ba86bad exchange: skip pull phase if narrow-heads is on
Summary: We skip it in other places but missed this one. Skip it too.

Reviewed By: kulshrax

Differential Revision: D27957853

fbshipit-source-id: 429d25e8b692218c9bae6c10ad76d08495a4bc66
2021-05-04 18:28:45 -07:00
Jun Wu
ae81c8fd34 edenapi: force use edenapi if ui.ssh is false
Summary: If ui.ssh is "false", then ssh cannot be used at all. Force using edenapi.

Reviewed By: kulshrax

Differential Revision: D27957312

fbshipit-source-id: 9860344779e6a6bab557d3f953ee38e40fadb78b
2021-05-04 18:28:45 -07:00
Jun Wu
032f5e5158 eagerepo: add tracing messages
Summary: Make it easier to check whether APIs in EagerRepo is called or not.

Reviewed By: andll

Differential Revision: D27955426

fbshipit-source-id: 27ca505c63596368cff98642de010b5b5717454c
2021-05-04 18:28:45 -07:00
Jun Wu
66c0778db7 treemanifest: enable useruststore by default
Summary: It has been enabled for a long time in our production config.

Reviewed By: kulshrax

Differential Revision: D27953636

fbshipit-source-id: 428f6e8a3e7eae6d44c61970624a75d7d1ab3e36
2021-05-04 18:28:45 -07:00
svcscm svcscm
ba734e0a37 Updating submodules
Summary:
GitHub commits:

813ae82f1e
362f3a3cf4
fd0a6e647a
e11df2e9bc

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 84a0b2f8073ef8c6a180cc75267e60468ce8d244
2021-05-04 17:02:20 -07:00
Jun Wu
37404e7f64 treemanifest: enable ondemandfetch by default
Summary: It has been enabled for a long time in our production config.

Reviewed By: kulshrax

Differential Revision: D27953635

fbshipit-source-id: a351342fbc8cffccd16967bd0e7032ac3e4f35cf
2021-05-04 17:00:56 -07:00
Jun Wu
49e8c82d07 exchange: pull from EagerRepo without getbundle
Summary:
Add "getbundle" alternative "commitgraph" for pulling from a EagerRepo.
This avoids tech-debt like bundle2 or linkrev. It depends on a lazy
(text) changelog backend.

Reviewed By: kulshrax

Differential Revision: D27951620

fbshipit-source-id: f21119d37da6505e68c6c5f3b33b9bd1f65e4d9a
2021-05-04 17:00:56 -07:00
Jun Wu
afe31ecd00 hgcommits: make resolve_names_to_relative_paths accept empty heads
Summary: It's not an error case. It just means all nodes are unknown to the repo.

Reviewed By: kulshrax

Differential Revision: D27951619

fbshipit-source-id: 672932af3a54ffa5adfa5cccbfff7edbf4f24022
2021-05-04 17:00:56 -07:00
Jun Wu
199fba304a changelog2: allow migrating to lazy backend from an empty repo
Summary: It's okay to migrate to any backend if the repo is empty.

Reviewed By: kulshrax

Differential Revision: D27951626

fbshipit-source-id: 27c00c853bf73fa3c696d74f3c05eb620f35db0e
2021-05-04 17:00:56 -07:00
Jun Wu
494309f22a exchange: push to EagerRepo without unbundle
Summary:
Add "unbundle" alternative "addblobs" for pushing to a EagerRepo.
This avoids tech-debt like bundle2 and linkrev.

Reviewed By: kulshrax

Differential Revision: D27951628

fbshipit-source-id: 3315e0653ee12928993e4e9325fbe8e2c369307b
2021-05-04 17:00:56 -07:00
Jun Wu
bf409c27d4 edenapi: build EagerRepo on demand
Summary:
Now EdenApi trait is moved to a separate crate, we can inline the EdenApi
backed by EagerRepo without using dynamic registration functions.

Reviewed By: andll

Differential Revision: D28006553

fbshipit-source-id: 427513da94db228745b1a7e90af0e62296056128
2021-05-04 17:00:56 -07:00
Jun Wu
abe4222df9 eagerepo: move url handling to Rust
Summary: So that we don't duplicate the URL handling in Python.

Reviewed By: andll

Differential Revision: D28006552

fbshipit-source-id: 2efda622fe86787373fa4ec5978537588defec28
2021-05-04 17:00:55 -07:00
Jun Wu
917e8f3e67 eagerpeer: add a new peer type backed by EagerRepo
Summary:
`peer` is the interface in hg to support push/pull. Implement it for EagerRepo.
Note: `getbundle` and `unbundle` are not implemented yet. Push / Pull are not
working yet. They will be made work later.

Reviewed By: kulshrax

Differential Revision: D27951621

fbshipit-source-id: 71f9c26713a532a0712460fa2aa34125b2b67e35
2021-05-04 17:00:55 -07:00
svcscm svcscm
c78ec9982b Updating submodules
Summary:
GitHub commits:

eab6dd1583
786e8bc96f
a6c1b07a9f
c5951d8280
26fdbffa97
6153b238c0

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 3c7a0e9221cc7eb6dcbe4201652f5fb8c056ab7d
2021-05-04 16:34:16 -07:00
svcscm svcscm
8cff6f5ae8 Updating submodules
Summary:
GitHub commits:

41dff515e3
32698dade0
f05160f874
5a25738d23
f021a96f31
8bcac73ba4
651eb39ffe
e66d46094a
93a5ffa5da

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: d60b262898954b75adfcc01c415b77413fb8d316
2021-05-04 15:52:08 -07:00
Pyre Bot Jr
99f17e57ed suppress errors in fbcode/eden - batch 1
Differential Revision: D28190108

fbshipit-source-id: 6d67de1cb21f6ec4400adae2f42811f1f3e5d155
2021-05-04 15:25:14 -07:00
svcscm svcscm
72bb1e7531 Updating submodules
Summary:
GitHub commits:

b8ea26146b
6d47c89bbf
5b20921f74
4fee69f053
2bf47de986
411fb3c35c
e639e31c3f
9c2d222947
238cd68320
d0d4b422d2
a587949bb4

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: ce4c5da28f60db7cb04b929a53534c6e83317b5c
2021-05-04 15:22:36 -07:00
Durham Goode
7469868f65 make: avoid fb python for make builds
Summary:
Our BigSur mactest machines have python3 defaulting to some internal
fbprojects python install. This is breaking our OSS builds. Let's change
pick_python to avoid that install.

Note, sys.stdout was changed to print because during my manual testing on Mac,
sys.stdout did not actually print the value, despite the flush.  Using print()
did work.

Reviewed By: quark-zju

Differential Revision: D28101632

fbshipit-source-id: 2907d644b2baa8a53a9a2d7da176d33cd83dfbd5
2021-05-04 14:43:32 -07:00
svcscm svcscm
8d7e6e90b3 Updating submodules
Summary:
GitHub commits:

d6afdff4fe
445f649828
6b72fcdaba
eca7d67b59
0d86ba95e5
cf35b4109a
1e773ac265
83d40d555a
1a2bc93714
7a0f161fc3

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 75f7a0c3c216be9c6d20803bc35ede0301971c33
2021-05-04 13:34:35 -07:00
Alex Hornby
058448b022 mononoke: make manual_scrub success file optional when checkpointing
Summary: Manual scrub success file can be very large and have fairly high IO rate.  When checkpointing keys to a file its not really needed, so make it optional.

Reviewed By: farnz

Differential Revision: D28199084

fbshipit-source-id: 83d946f7ab8dc6f5f17f94b6a1c3818d9af7b0b0
2021-05-04 13:32:00 -07:00
svcscm svcscm
ed830dd806 Updating submodules
Summary:
GitHub commits:

c411c1dccf
4a1ef63be1
9454bc4556
c0c05bf1a2
89af78b014
7864cf6a04

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 833b734fddd2694b626c75a3cecdbc387517f0d0
2021-05-04 13:08:37 -07:00
svcscm svcscm
b5a166a1b3 Updating submodules
Summary:
GitHub commits:

ce7196dade
4dfa69deee
124fff2e66
31d927e48a
c2a3424de5
21f0ba8303
8dc5853781
87c0872997
ec9c10f635

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 722bc531cdeb2ac5c1659b5f17e9c77d05368190
2021-05-04 11:45:15 -07:00
svcscm svcscm
6deb94b168 Updating submodules
Summary:
GitHub commits:

c75f154a15
fed52e0887
d5fbe2bd2c
582b8e82cd
ba3e3f483a
f68d0188f9
d902b973e3

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: a6d9c07b72b94edaa77ccfa9049f03cda33b7e66
2021-05-04 10:12:10 -07:00
Diego Elio Pettenò
d0a4406f1c Make the eden restart --force command explicit.
Summary: This just makes it more obvious _where_ `--force` should be passed.

Reviewed By: genevievehelsel

Differential Revision: D28119590

fbshipit-source-id: 1fbdb4428e9b89e7b66c959f874067485a91d534
2021-05-04 09:51:40 -07:00
svcscm svcscm
40bf953c58 Updating submodules
Summary:
GitHub commits:

329e4f268c
dcd063c958
7490684971
1c0d76d733
5ae57da9a4
0523a2080b
58eb02e8df
70634a0dcf
afe8b73d47
0678b41ebb

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: e5cfe15b789730d38d9d2b8f40037eb4bab779db
2021-05-04 09:37:03 -07:00
svcscm svcscm
884aee529e Updating submodules
Summary:
GitHub commits:

49ee997aad
f6f2731689
855aa1746f
3ce10db1ba
18e94a36d7
b403394b5a
741d688acd
e9d2ee7352
f04b99f92b
b2d0426a11

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 2471813e6796a9fb6ca37e9c38bc569bd49c4211
2021-05-04 09:00:47 -07:00
svcscm svcscm
2d611ed9ab Updating submodules
Summary:
GitHub commits:

9df572aa8a
fcc7a90629
0ff4306d01
1830f83e6f
b7b03c4ad1
2ed85c2f79

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 89e9d40c30920345de2e322a3e3e0e07870bda47
2021-05-04 08:38:32 -07:00
svcscm svcscm
b5a5fe533a Updating submodules
Summary:
GitHub commits:

da132b5fc2

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0319ea706b8c005bc51cfa31cb1f60d3c39464e5
2021-05-04 06:55:44 -07:00
Thomas Orozco
b27c31d172 mononoke/backfill_derived_data: limit concurrency of unodes warmup
Summary:
Right now, if your batch size is 1K we prefetch 1K unodes in parallel. This
tends to result in e.g. timeouts as various things get starved for CPU as
a result.

Let's stop doing that.

Reviewed By: StanislavGlebik

Differential Revision: D28183685

fbshipit-source-id: d8353ae8e36921a485b982a1043b81f443258098
2021-05-04 05:32:07 -07:00
Thomas Orozco
606332500a mononoke: backfill_derived_data: lower batch sizes (a lot)
Summary:
Our batch sizes are a bit crazy here and causing the backfiller to OOM if there
actually is that many commits to derive. Lower them, a lot.

Reviewed By: StanislavGlebik

Differential Revision: D28183686

fbshipit-source-id: 54b546c4507f65c34a264df283516b5d62408a66
2021-05-04 05:32:07 -07:00
svcscm svcscm
9e7ae09ffd Updating submodules
Summary:
GitHub commits:

6543396bea
b8faec634d
13e755a60b
1fadc7c9d6

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: f697f8b09de95b76a64a498ae4b3c1ec0af5ee29
2021-05-04 04:50:51 -07:00
Alex Hornby
c2419d91e8 mononoke: remove repo prefix from pack key in packer
Summary: The packer was adding repo prefix as part of the pack key, which would mean that same content for different repos had different binary form. This change fixes the prefix.

Reviewed By: farnz

Differential Revision: D28119422

fbshipit-source-id: 338e17885abd8cfca12d5bb399244039dbf22e63
2021-05-04 04:31:17 -07:00
Alex Hornby
e19e4625cf mononoke: make pack hash order independent
Summary:
Our packs no longer require strict order on write to be readable, so let's hash the list of sorted keys as the pack identity. i.e. pack will have same identity if if contains same keys, regardless of order.

This makes the packer easier to work with in general

Reviewed By: farnz

Differential Revision: D28119423

fbshipit-source-id: 71c8d4ed351bde63065047c706311a869b2beeda
2021-05-04 04:31:17 -07:00
svcscm svcscm
c3bd595b4c Updating submodules
Summary:
GitHub commits:

a0f7845f4e
2f3871588a
5db6dfe7ba
a135f2935b
4df664c0b4
d7b7717bd7

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 86f998c0d81689b76631ddc47808290a3c07c5f7
2021-05-04 04:16:28 -07:00
Jan Mazur
b9820ec1b7 mononoke/server: include individual wireproto commands as qps before command execution
Summary:
Wireproto session multiplexes wireproto commands. Counting them individually is most likely a better metric for QPS even though we wouldn't be able to offload them to a different server/region one by one.

It makes the cost of a query more even across wireproto and edenapi.

Reviewed By: krallin

Differential Revision: D28058054

fbshipit-source-id: 5d606841e07816ec8808a3b9aba4b7c0614b9cb6
2021-05-04 03:41:05 -07:00
svcscm svcscm
91a738d5be Updating submodules
Summary:
GitHub commits:

badb0810bd
6ebeb7d0fb
649895be11
d1c6951038
baa4f11b76
5cea6f221e
054a617ff6
827c637ceb
c802cde0c9

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 9bfb7e260816533ca602d9631795f74cc636acff
2021-05-04 03:37:42 -07:00
svcscm svcscm
2f732578f1 Updating submodules
Summary:
GitHub commits:

e5d95a1e98
c56a81b021
195cee2641
f27c265417
12eb6a9253
f187ca9572
8e6ef7c9cb
dd6b9cdd7e
f57b79ebc3
91822b8abb
8f81b5864e

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: caa951b90ffc7fb79ecc2d9dc2e2d612d2500bc1
2021-05-04 03:00:33 -07:00
svcscm svcscm
8e428e8e5b Updating submodules
Summary:
GitHub commits:

30d433306a
63f88502d7
770ed154da
6cd060f183
f47141f6fe
4b729f5264
af37b03e61
87c7bf81f0
0c696ca1b7
634b8f411c
cd74d8c5fc

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 8b90b9073244ff4adfe4512ff4356431aa7a3a31
2021-05-04 02:28:20 -07:00
CodemodService Bot
f6d847723f Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D28178444

fbshipit-source-id: 1e785c38938fe19400bea178bc442b2b9aa76585
2021-05-04 02:08:42 -07:00