Commit Graph

65238 Commits

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

f35142b483
de250d6522
342db746ec
6865bb446f
3880cd3786
549bfe55a5
4796d0eb58
033e40d76e
9039a6c67b
b4d1b4c5df
bde8e34474

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: fc51330610c41041f9d2973b16be4025e7711724
2021-05-05 21:46:57 -07:00
svcscm svcscm
b69cb5b365 Updating submodules
Summary:
GitHub commits:

2fad6225c1
0160eb7a87
d6804f2a67
a8a754aa1e
dd27f371df
1036621c0a
25e04dd78f
7e1bff5807
0ba0003382
0fe7a21c8a

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 55f404c86ea2ba034037cbc47b97b289f0a5a862
2021-05-05 21:12:06 -07:00
svcscm svcscm
0c6d1612bf Updating submodules
Summary:
GitHub commits:

598174dfec
c85d007708
e0e4c51c39
e382d3d807
66e7f0e18e
cd7e064739
6c5dd0d4d9
a435c43b9c
795fc129ca
ce709889de
fa1b165506

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: bbf35c9728ff3c95e004dd576b348b0e2f2726ad
2021-05-05 20:43:17 -07:00
svcscm svcscm
94a02857b3 Updating submodules
Summary:
GitHub commits:

b0b5dd8b47
7263834f05
3df1e50716
7605607e9f
b2c248afa3
c97dab45b7
2c6dca506f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 53da1024d62076ff7b2d71cd3c3d2fb00818214b
2021-05-05 20:15:52 -07:00
svcscm svcscm
fddac8f592 Updating submodules
Summary:
GitHub commits:

fd733a322c
a435d49358
4de29a64cc
411ba81b49
d0de96294b
7284903aa4
ae93ce486f
d8075c6080
9cd4c6d40f

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 34d49880203a0644b552aa97f3ed41bf96e1beb6
2021-05-05 19:42:19 -07:00
svcscm svcscm
2e146a0157 Updating submodules
Summary:
GitHub commits:

564aeaa175
56b55bb0d0
e1231573f0
3c3b0834d6
d87b737709
9bac120102
4815847893
3461dab4da
c8394c8173
3aaea24478
585d0a6695

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 94c195705dbc686df8868abbffcc6b9bade52e2b
2021-05-05 19:15:47 -07:00
svcscm svcscm
529de69654 Updating submodules
Summary:
GitHub commits:

2c3abf8336
4ba903d6d8
fec5e26278
0b29ff6560
5b60f81a76
b71b4597e7
aea71bcc0a
3fc935f1a7
c19814900f
d9f42f914d
40b8def013

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 6c18674b336efcddf7aafe960028f3dc483b0776
2021-05-05 18:38:55 -07:00
Zeyi (Rice) Fan
dfc5480620 cli: disable edenfsctl top for Windows
Summary:
Currently running `edenfsctl top` will crash on Windows:

```
Traceback (most recent call last):
  File "C:\Python38\Lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python38\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\tools\eden\bin\edenfsctl.exe\__main__.py", line 3, in <module>
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2253, in zipapp_main
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2236, in main
  File "C:\Python38\Lib\asyncio\runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "C:\Python38\Lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 2212, in async_main
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\main.py", line 1059, in run
  File "C:\tools\eden\bin\edenfsctl.exe\eden\fs\cli\top.py", line 395, in __init__
  File "C:\Python38\Lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'
```

This diff will let it prints an error message.

Reviewed By: xavierd

Differential Revision: D28207330

fbshipit-source-id: a465fe5941b469f4a1ef964f1d4dc8a593639e7c
2021-05-05 18:24:12 -07:00
Zeyi (Rice) Fan
bd08aac957 cli: parse command line args outside asyncio
Summary:
It looks like argparse's exit was not able to handle asyncio event loop well,
causing edenfsctl to generate a long ugly stack trace when the command line
flag does not parse.

Let's just move the arguments parsing outside the asyncio runloop to avoid this
problem as a whole. In theory it should improve our `--help` time a little bit.

Reviewed By: chadaustin

Differential Revision: D28206622

fbshipit-source-id: 881eefaea73b244eadff0165965085e64dad935f
2021-05-05 18:24:12 -07:00
Zeyi (Rice) Fan
70f7b5151b cli: do not call os.getuid on Windows
Summary:
Some user reported to see `edenfsctl restart` crashes due to this call to
os.getuid() since it does not available on Windows. P410914264

https://docs.python.org/3.9/library/os.html#os.getuid

Reviewed By: chadaustin

Differential Revision: D28204262

fbshipit-source-id: 077bf207d8b1b6c014fface63ea93e66057629cd
2021-05-05 18:24:12 -07:00
Jun Wu
7a0765ab25 edenapi: do not dependent on eagerepo
Summary:
eagerepo -> metalog -> git2 -> libgit2-sys -> libgit2 conflicts with edenfs'
non-Rust libgit2 dependency. Rust git2 crate does not seem to provide a way to
depend on specified libgit2.

Quote https://github.com/rust-lang/git2-rs/issues/263#issuecomment-450934287:

> It's expected that git2-rs builds its own copy of libgit2 and doesn't use the
> system version, as the system version is likely incompatible

It also seems non-trivial to make buck C++ use the libgit2 frm `libgit2-sys` crate.

Let's just avoid depending on eagerepo from edenapi directly for now to solve the
issue. This basically revives D27948369 and D27951632.

Reviewed By: xavierd

Differential Revision: D28243784

fbshipit-source-id: 0c38c20c2d3a80c550732129da572fe26a229799
2021-05-05 18:21:00 -07:00
Jun Wu
2cf4957de0 runtests: expand $TESTTMP in hgrc
Summary:
This makes it easier to use `--keep` to investigate tests by using
`--configfile`.

Reviewed By: kulshrax

Differential Revision: D27971122

fbshipit-source-id: 8adcbeab825155858499c24ca74c2979049adeda
2021-05-05 17:53:39 -07:00
svcscm svcscm
1f15cf3b18 Updating submodules
Summary:
GitHub commits:

f803887df1
5b8c5c0715
16833bb599
6b44cc3c69
64224c7d14
bda6e2761e
5bd6e118b1
581f776223
c7a8edad83
ec45d65965
4d78414a26

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: dbd2f7923088baecf5bc4581bf27904d8932b6ad
2021-05-05 17:42:15 -07:00
svcscm svcscm
8af82e5fa2 Updating submodules
Summary:
GitHub commits:

54390806d3
cad4e8eb91
c724ca0028
e2ca17cb61
2b2acdd544
b38c082d9c
7f3a0f5bc6
2a573471e8
3c20752357
839a334e05
62f1e1f31d
9f0712af2f
87c2a839b6

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 4e5bfb200d619748154f5ca4f18cccc9c5878d65
2021-05-05 17:11:36 -07:00
svcscm svcscm
46f76341e0 Updating submodules
Summary:
GitHub commits:

58d9455f6d
f5d4543107
ac755fc5cc
960eca25fa
6ece04fde9
72c0edf6a8
455fe52d4d
3adb30d439
6cd1e8f174
569b057adc
4e53a4fd83

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 9e3717c566071a3f20dfd38c13c0131f662f157b
2021-05-05 15:57:07 -07:00
Stefan Filip
f6c588a7a0 context: rename CoreContext's base constructor
Summary:
Rename `new_with_containers` to `new`. `new` the standard name for
what the fuction does.

Reviewed By: krallin

Differential Revision: D28210005

fbshipit-source-id: 9ad0dad5e8afd89d7538fd32d93de10837e26f9d
2021-05-05 15:29:26 -07:00
Stefan Filip
0eabd94e5f context: remove CoreContext::test_mock_class
Summary:
Refactoring the construction logic for CoreContext.
`test_mock_class` is used in only one place. That usage can be replaced with
`test_mock_session`.

Reviewed By: krallin

Differential Revision: D28210007

fbshipit-source-id: c81ca31cb7255ef640fe641e9b38f239cfb69267
2021-05-05 15:29:26 -07:00
Stefan Filip
86ef0755d4 context: rename CoreContext contructor for bulk processing
Summary:
Refactoring CoreContext construction to express purpose. We will have
a constructor for request processing, for background processing.
Bulk processing is another category that has it's own constructor
already. Renaming it to make it more prominent.

Reviewed By: krallin

Differential Revision: D28210006

fbshipit-source-id: 2bb74d97e2f3588aa539e58c3d6dd6842f898121
2021-05-05 15:29:26 -07:00
svcscm svcscm
b6bab5db73 Updating submodules
Summary:
GitHub commits:

99339ebd35
70e6fa2788
e299825f74
4e46fb838b
72d7ddc39a
8948dc8524
8ceb9ecab0
312d1b4da7
2417f0bc3f
b97400224a
af95c3ff7b
1a545ad0a3
eb47d7a79e
dae9f8ffa0

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 5e409a1171eeaea55a0ddb4458aa94d7d61f4a77
2021-05-05 15:22:30 -07:00
Zeyi (Rice) Fan
9d64cd399d backingstore: fix winhttp linkage issue
Summary:
We have a linker issue on Windows when building EdenFS with CMake:

```
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpSetStatusCallback referenced in function winhttp_connect
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpOpen referenced in function winhttp_connect
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpCloseHandle referenced in function winhttp_close_connection
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpConnect referenced in function winhttp_connect
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpReadData referenced in function winhttp_stream_read
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpWriteData referenced in function winhttp_stream_read
backingstore.lib(winhttp.o) : error LNK2019: unresolved external symbol __imp_WinHttpQueryOption referenced in function certificate_check
```

This fixes that.

Reviewed By: xavierd

Differential Revision: D28230163

fbshipit-source-id: f74e42ee30ec8f3b81c1f80b7cf63a21ea97732c
2021-05-05 15:01:01 -07:00
Zeyi (Rice) Fan
a500f985d3 integration: fix test failure on Windows
Summary: This should fix the test failure introduced in D28203778 (9bee308885) where fsck tests were not skipped on Windows.

Reviewed By: genevievehelsel

Differential Revision: D28227230

fbshipit-source-id: 97ef5717fbda567b48f02a60e1906e374fdc6766
2021-05-05 15:01:01 -07:00
Pedro Eugenio Rocha Pedreira
1648be1bcf Add re2 as a dependency on getpdeps
Summary: Add re2 as a dependency on getpdeps

Reviewed By: funrollloops

Differential Revision: D28208007

fbshipit-source-id: 7e6ab7a0a01f4b2fe264780e09befc34a030a896
2021-05-05 14:37:17 -07:00
Jun Wu
f347dc94f9 remotefilelog: do not use f strings
Summary: The syntax is not supported by Python 2.

Reviewed By: DurhamG

Differential Revision: D28233280

fbshipit-source-id: 9f882827b1357cb339e60180acadb38842c3cf8d
2021-05-05 13:30:11 -07:00
Jun Wu
2e07267f2d remotefilelog: do not use **kwargs,
Summary: The syntax is not supported by Python 2.

Reviewed By: DurhamG

Differential Revision: D28232995

fbshipit-source-id: 62058751b4f00b78a2bd56908100a7bb7a3adfde
2021-05-05 13:22:30 -07:00
Alex Hornby
da5dac311b rust: remove patch for async-compression
Summary: Upstream crate has landed my PR for zstd 1.4.9 support and made a release, so can remove this patch now.

Reviewed By: ikostia

Differential Revision: D28221163

fbshipit-source-id: b95a6bee4f0c8d11f495dc17b2737c9ac9142b36
2021-05-05 12:20:34 -07:00
svcscm svcscm
e119872673 Updating submodules
Summary:
GitHub commits:

ded931f417
9b006866d0
7c92e59f53
62b0d8b879
2980997517

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 0fc300d0a3422d43e695ca7ddfd49cbd1ecd0625
2021-05-05 12:03:14 -07:00
Jun Wu
60e240b17e eagerepo: fix Windows compatibility
Summary: Windows path like `eagerepo:///C:\foo\bar` needs special handling.

Reviewed By: kulshrax

Differential Revision: D27971119

fbshipit-source-id: 9d4b87782eca2734b708565f0ee22a7495253cff
2021-05-05 12:01:50 -07:00
Stanislau Hlebik
bc9fefff5b mononoke: remove tunables for skeleton manifest create changeset rollout
Summary: We needed only for the initial rollout, we can delete it now

Reviewed By: krallin

Differential Revision: D28226715

fbshipit-source-id: 20349e9775b71292604a4054162f026087511db8
2021-05-05 11:58:06 -07:00
Genevieve Helsel
100fccc193 retire hg gc
Summary: `hg gc` does not do anything anymore, so in order to reduce confusion, let's just print a message that says it is no longer supported and provide a manual remediation.

Reviewed By: xavierd

Differential Revision: D28164614

fbshipit-source-id: 7ed2392cdb0091cd604a15b4c2382632706981f2
2021-05-05 11:48:58 -07:00
Thomas Orozco
16fa5d1bdf mononoke: sample logging from Quicksand
Summary:
Quicksand is about 60% of our logging, but we don't really need to log
everything it does because the workload is pretty much the same across all
hosts.

Reviewed By: HarveyHunt

Differential Revision: D28225416

fbshipit-source-id: 68c0f68c4da73e0f7543754c917d7efa4bbf374e
2021-05-05 11:02:50 -07:00
Toan Mai
410f7c5c61 Imported a mysql_common patch to support FromRow for tuples up to arity 16 (#23)
Summary:
Pull Request resolved: https://github.com/facebookexperimental/rust-shed/pull/23

Pull Request resolved: https://github.com/facebookincubator/resctl/pull/8081

Pull Request resolved: https://github.com/facebookexperimental/eden/pull/82

Imported a mysql_common patch to support FromRow for tuples upto arity 16
Context: https://fburl.com/zfnw7r86

Followed the guide: https://www.internalfb.com/intern/wiki/Rust-at-facebook/Managing_fbsource_third-party_with_Reindeer/#maintaining-local-change

Reviewed By: marcelogomez

Differential Revision: D28094262

fbshipit-source-id: fed48e3950e8a3ba3d7a15407522167e5ae41a98
2021-05-05 10:32:48 -07:00
Alex Hornby
394ff15823 mononoke: make phases take iterator get_public_raw
Summary: It was requesting a slice but always converted it to an Iterator anyway.  Receiving an iterator saves constructing a temporary Vec both here and later in the stack

Reviewed By: krallin

Differential Revision: D28127582

fbshipit-source-id: 625c1f17f1ded973f8b2aa13566928af0df83aec
2021-05-05 09:52:36 -07:00
Jun Wu
c793852fba treemanifest: do not bundle trees present on server
Summary:
This avoids issues where the tree is stored without p1, p2. It is similar to
what we do for public commits (in createtreepackpart):

  if sendtrees == shallowbundle.AllTrees or ctx.phase() != phases.public:
      ...

Note: the trees API actually provides p1, p2, but p1, p2 are dropped when
writing to the current data store implementation.

Reviewed By: liubov-dmitrieva

Differential Revision: D28200388

fbshipit-source-id: e1fe93d8ae8576e691077d6db432d55f7b9d498d
2021-05-05 09:48:29 -07:00
Jun Wu
e0f02950ea pyedenapi: add trees API unrelated to store
Summary: Add a way to fetch tree content without going through store.

Reviewed By: liubov-dmitrieva

Differential Revision: D28200387

fbshipit-source-id: 8f5b2214aafba39c7674f0f6b27af0c985f0ea72
2021-05-05 09:48:29 -07:00
Jun Wu
e687a92d10 pyedenapi: rename trees to storetrees
Summary:
The `trees` API is coupled with a store. We're going to add another API that is
not coupled with a store so let's rename `trees` to `storetrees`.

Reviewed By: liubov-dmitrieva

Differential Revision: D28200389

fbshipit-source-id: 826116f0b461873b2f5df07e7fd35e6d1018f929
2021-05-05 09:48:29 -07:00
Andrey Chursin
eec8e784f5 tests: do not test native checkout debug output in test-update-reverse.t
Summary:
This output is non-determenistic, and it does not seem to be important in this test
We could replace HashMap with BTreeMap to make it deterministic, as an alternative, but it is probably not justified for this test

Reviewed By: quark-zju

Differential Revision: D28204050

fbshipit-source-id: 50000671520e3bbf41849dc53c420ccab496dca0
2021-05-05 09:40:29 -07:00
Alex Hornby
74f5e21506 mononoke: add a cmdlib option for manifold weak consistency
Reviewed By: farnz

Differential Revision: D28217480

fbshipit-source-id: c520650cbf0a34bc042e711ddb7e09063e0eea47
2021-05-05 05:51:03 -07:00
Filipe Mourao Leite
4f0890d93c Remove unused import
Summary: This import is not used anywhere (since D28007850 (bb3d207e33)) and could be removed (currently it throws a warning whenever someone attempts to do a cargo check)

Reviewed By: sandeepkumarpani888

Differential Revision: D28220436

fbshipit-source-id: a7fc0fe84d485d37fe86476011a853df57a6bc03
2021-05-05 04:45:39 -07:00
CodemodService Bot
b4afda3890 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D28216338

fbshipit-source-id: 2384a332505881bbc8cd621694496cf9f37c3bea
2021-05-05 04:03:47 -07:00
svcscm svcscm
056e241323 Updating submodules
Summary:
GitHub commits:

67769a5ab0
d50588135d
0565eb3d8f
18682f9551

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 4f37167aea4e8af2f9e030ed41c7a95461e99784
2021-05-05 03:24:21 -07:00
Stanislau Hlebik
f4c799dffa mononoke: record how long saving the raw bundle took
Reviewed By: krallin

Differential Revision: D28215994

fbshipit-source-id: 5be23dd10eeb483cd17926cb064ecfe9f566cad4
2021-05-05 03:03:47 -07:00
svcscm svcscm
1c8132b902 Updating submodules
Summary:
GitHub commits:

a536052cf3

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 4400add878e73aedd9a49f50ebab498d7edfa049
2021-05-05 02:50:36 -07:00
Liubov Dmitrieva
b506eeea0c do not perform syncing for public commits
Summary: we display incorrectly 'local changes' for public commits

Reviewed By: DurhamG

Differential Revision: D28000088

fbshipit-source-id: 81bb8926dd7e96bf283eabe2b0aca84a9155fea3
2021-05-05 02:48:19 -07:00
Liubov Dmitrieva
f74c212472 remove dead code
Summary: the option has been deprecated and is not used anywhere

Reviewed By: krallin

Differential Revision: D28191314

fbshipit-source-id: f5f092b93a9644c8249628520d8d707b60854aac
2021-05-05 02:45:45 -07:00
svcscm svcscm
9c823f54d0 Updating submodules
Summary:
GitHub commits:

8723a0a9f2
38e0dc3585
c2f777cc7f
ba64e20054

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 9e7e90c09cb4e4ab822033bb98a809bbf11b98c1
2021-05-05 01:34:41 -07:00
svcscm svcscm
d8d0e0e9f8 Updating submodules
Summary:
GitHub commits:

39b741dfbd
33a808584b
1049a9f5b9
5a4450911b
29163950ec
71c0fc1ccd
d629261bfc

Reviewed By: 2d2d2d2d2d

fbshipit-source-id: 39a46bf0b0b11b4207d1bbb5b0f487de9f3a3181
2021-05-05 00:44:11 -07:00
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