Commit Graph

66457 Commits

Author SHA1 Message Date
Yan Soares Couto
86292afd15 Add command to add RedactionKeyList to RedactionConfigBlobstore on mononoke_admin
Summary:
This diff adds two subsubcommands to mononoke admin:
```
- admin redaction create-key-list
- admin redaction create-key-list-from-ids
```

The first works similar to `admin redaction add`, but instead of inserting it to XDB, it instead creates a RedactionKeyList object, inserts it into the blobstore and prints its content.

The second just takes a list of keys as a raw input. Usually, the first one should be used. The second will **only** be used to migrate the current setup to be in configerator.

Reviewed By: markbt

Differential Revision: D29033598

fbshipit-source-id: 4d181d2b5c7701c7e88114a26d9219cada86c618
2021-06-30 08:57:30 -07:00
Yan Soares Couto
7e2a209bdb Create RedactionConfigBlobstore
Summary:
This diff adds a class RedactionConfigBlobstore, which can be built using `RepoFactory`.

It is a prefix blobstore (with prefix "redactionconfig") that's created independent to all other repo blobstores. And it's where we'll store the blobs related to redaction key lists.

I created this because AFAICT using RepoFactory we can only build RepoBlobstore, which are partitioned by repo, which we don't want for redaction as it is generic for all repos.

It's not used in this diff, will be used in the future, I split it mostly to make it easier to review.

Reviewed By: markbt

Differential Revision: D29033599

fbshipit-source-id: 5c44a73e2097c0de3abad038f45166f42a14a70b
2021-06-30 08:57:30 -07:00
Yan Soares Couto
b4f3a36802 Sync changes from D29360425 to fbcode
Summary: Syncing configerator changes from D29360425, and fixing all tests. Not used yet.

Reviewed By: markbt

Differential Revision: D29363416

fbshipit-source-id: d2de13d32bcec2e7fbff20204be8d9a8d65c0efe
2021-06-30 08:57:30 -07:00
Yan Soares Couto
1bcae1ae65 Add redaction config to common config, don't use it yet
Summary:
This reads the config added on D29305462. It populates it into `CommonConfig` struct, and also adds it to `RepoFactory`, but doesn't yet use it anywhere, this will be done on the next diff.

There is a single behaviour change in this diff, which I believe should be harmless but is noted in the comments in case it isn't.

Reviewed By: markbt

Differential Revision: D29272581

fbshipit-source-id: 62cd7dc78478c1d8cb212eafdd789527ead50ef6
2021-06-30 08:57:30 -07:00
svcscm svcscm
07e4dcd56b Updating submodules
Summary:
GitHub commits:

94a4dcebdd
bdbd291199

Reviewed By: yns88

fbshipit-source-id: c35025e4e1ff710428af8919eb0a08519583b757
2021-06-30 08:34:10 -07:00
svcscm svcscm
e1148ef1bf Updating submodules
Summary:
GitHub commits:

2a67e49bfb
9cde921048
5eec498f5c
4b8cdea14c
d5b95af839

Reviewed By: yns88

fbshipit-source-id: e1cd0ec932e3ef5e69ae0478861548b6dd19ba64
2021-06-30 07:01:53 -07:00
Stanislau Hlebik
9e98685fff mononoke: add --logview-additional-level-filter
Summary:
While debugging T94402830 I noticed that logview category was using quite a lot
of scribe quota, however we don't really use it much. The reason it was using a
lot of scribe quota is because we were logging all stderr messages to logview,
even "DEBUG" ones. That might also be the reason why we didn't use logview - it
was too spammy.

Let's make it possible to add an additional log level filter for logview, so
that we could log only e.g. warn log messages and above.

Reviewed By: Croohand

Differential Revision: D29456888

fbshipit-source-id: 8cc66773ca8d82b00c3337937f519f6140fc8c9d
2021-06-30 06:44:51 -07:00
svcscm svcscm
a55ae93401 Updating submodules
Summary:
GitHub commits:

90d3024477

Reviewed By: yns88

fbshipit-source-id: a37d714338fd5545c16ff27965be86d0a1f3570b
2021-06-30 06:19:43 -07:00
svcscm svcscm
809d8f835b Updating submodules
Summary:
GitHub commits:

82eb7874a8
0ee7ea99ab
bec7f30069
739b60bbf8
07d57d7711

Reviewed By: yns88

fbshipit-source-id: 376aab544a9f49d2f0b0dd5c32bc9dfa983db68d
2021-06-30 05:55:08 -07:00
Stanislau Hlebik
8a7211c8e8 mononoke: fix GetGlobalrev sql query
Summary:
The type of "value" field is char, and so GetGlobalrevCounter was failing with

```
 MySQL Value Error: Expected row field to be RowField::Long, but got
 RowField::Bytes
```

The reason we haven't seen it before is because this query is called only when
IncreaseGlobalrevCounter didn't change a single row, and that's usually not the
case.

Reviewed By: HarveyHunt

Differential Revision: D29482685

fbshipit-source-id: 32073edcf5d57d7dad275a65c2e0f67b7321cef2
2021-06-30 03:57:02 -07:00
svcscm svcscm
bd0a9f82e2 Updating submodules
Summary:
GitHub commits:

f6dd221174
580e1c7989
88fb88ceb0
3441e493a4
888be7fffa
d07231a50e
f92e4031b6

Reviewed By: yns88

fbshipit-source-id: 97bba8cf36424b71ccd6a10bce0e66f5f16a0649
2021-06-30 03:48:41 -07:00
svcscm svcscm
7457984220 Updating submodules
Summary:
GitHub commits:

fb9fc410d4
c75c1f6eeb
ed86caeca5
4375c4a3ca
4eb0086623
535d77c849
67aa8e2c21
d64a471d9f
c31ce62950

Reviewed By: yns88

fbshipit-source-id: c219dd8616917b9fedfad87349e58e97deb23b84
2021-06-30 03:11:00 -07:00
svcscm svcscm
3c3e2ede0a Updating submodules
Summary:
GitHub commits:

ab9bd3a958
4b1e82144c
27f49a1388
7187d5cfc3
d68caa3a69
e062e97f6e
12c62b40b7
40bf79df6d
ab43cfbc95
a10ef77672

Reviewed By: yns88

fbshipit-source-id: 2a178b7336985671e8d96aa2664becff81781d01
2021-06-30 02:46:04 -07:00
svcscm svcscm
e0cc7398ee Updating submodules
Summary:
GitHub commits:

9a69685505
4e87d9e876
af0a489dbc
f48cd19638
8fcc2122e2

Reviewed By: yns88

fbshipit-source-id: 431fe584eb357491f3572b2a225ebdbecda17613
2021-06-30 02:19:55 -07:00
svcscm svcscm
788cca3edb Updating submodules
Summary:
GitHub commits:

4a71095154
68631c2a7b
e9be1ba288
61c242f8cf
f34946eb09
c53c8689c4

Reviewed By: yns88

fbshipit-source-id: eee974de4647c998eecc9772f249fa3926887fff
2021-06-30 01:38:47 -07:00
svcscm svcscm
d4b3e4091d Updating submodules
Summary:
GitHub commits:

706c85cf48
bb66f58638
2b1b48295a
a17703f0fc
2adf895f94
7ef62b5c16
f50c12dbf4
e0ae1a810d
4882f4ebd6
0cb7453664

Reviewed By: yns88

fbshipit-source-id: 64a9ce6b4fa0770920417a1b21f9d61c89b684d3
2021-06-30 01:16:12 -07:00
Stanislau Hlebik
5ae7ef3a4b mononoke: make mononoke_api stderr output less spammy
Summary:
scs server is full of messages that tell us that everything it ok. They are not
particularly useful and noisy - let's log only if we have a non-zero lag

Reviewed By: farnz

Differential Revision: D29457065

fbshipit-source-id: ab759745455f3b560e6230ade9f8a9095a3d961e
2021-06-30 00:52:10 -07:00
svcscm svcscm
968080ec6e Updating submodules
Summary:
GitHub commits:

04c6d9f120
dbbd4e322b
27a76093af
c6be98dcbb
bd9bff1396
b20b1bd591
48f85f9c2c
a71afe5b8a
ffbdb72915
f0990b2980

Reviewed By: yns88

fbshipit-source-id: 098acfbba340f59c503365f528668525d3041e6b
2021-06-30 00:34:21 -07:00
svcscm svcscm
d0af6bbb4d Updating submodules
Summary:
GitHub commits:

1f106643af

Reviewed By: yns88

fbshipit-source-id: daeba1349c706fcb69ca7722fc8f7e2ed320682b
2021-06-30 00:03:33 -07:00
svcscm svcscm
d9e0cda8d1 Updating submodules
Summary:
GitHub commits:

1b91dae203
2d672aaa73
90b998fbad
f239a6af05

Reviewed By: yns88

fbshipit-source-id: cd07172efc0000b375b5affaa24e944c845cc347
2021-06-29 23:57:29 -07:00
svcscm svcscm
4fd707040f Updating submodules
Summary:
GitHub commits:

8351c6ae42
08b4d371d1
cc28e4f36f
95f8aed821
33c1a418cb

Reviewed By: yns88

fbshipit-source-id: f2ac89da96ba5b64caaa482a98cee1e95950c5ec
2021-06-29 23:14:59 -07:00
svcscm svcscm
a4d54dac56 Updating submodules
Summary:
GitHub commits:

4f8552a88d
c10ca7ef5b
2a573e4bf4
1706fa1dbd
7a1cb7c511
32150de766

Reviewed By: yns88

fbshipit-source-id: fe27416408fc78ea2d607f982e5b5dbd9ed08050
2021-06-29 22:55:12 -07:00
svcscm svcscm
88f892cd2e Updating submodules
Summary:
GitHub commits:

3e82c5fbfb
5da20e8743
a938599272
f42e03e6ce
150d64c2fe
bef37d400c
91da8f835d

Reviewed By: yns88

fbshipit-source-id: 657fb598ef3733fb3f878131a868b41835c375ba
2021-06-29 22:34:52 -07:00
svcscm svcscm
506db55b7a Updating submodules
Summary:
GitHub commits:

0a8c0f8e1a
36ee30d92b
884b66cc07
f590dbbdb9
bb74fefd96
9b8222d5f5

Reviewed By: yns88

fbshipit-source-id: 253f164655926cb06db91424ac7738d790fe7e6a
2021-06-29 21:37:28 -07:00
svcscm svcscm
d6224a8697 Updating submodules
Summary:
GitHub commits:

490056871c
eacd8e8360
ea24105447
0cb63dbbdd
0182b1ce89
b4fbb62a94
1187b1e4ef
677439c906
348d61a6ed

Reviewed By: yns88

fbshipit-source-id: f0fe2c557248c1273ca63190d7ba7cf265daed81
2021-06-29 21:13:21 -07:00
svcscm svcscm
50f9ccfe31 Updating submodules
Summary:
GitHub commits:

1401a769c5
cd99ecf324
e85b30991d
710ce22613
2fde4fde11
3c7cfddd3f
96b3aa198d
6527c0ce87
31e86d615a
c1b8cb9576

Reviewed By: yns88

fbshipit-source-id: 9c23f89e1c5881334370dcdd0e8a562efb642918
2021-06-29 20:39:34 -07:00
svcscm svcscm
715d2bb539 Updating submodules
Summary:
GitHub commits:

b72b192b70
1898bc5cf2
d7ba07915d
00fd6dff61
5e2d9dd963

Reviewed By: yns88

fbshipit-source-id: ca5f058e615155f7d21b2a5feb130a273b92ac1d
2021-06-29 20:08:53 -07:00
svcscm svcscm
0f60df87e9 Updating submodules
Summary:
GitHub commits:

c7d6089b77
19d5d91cd5
9b618a9292
21095c3c54
655d49653d
a605b9fcef
6f2ce1afb2

Reviewed By: yns88

fbshipit-source-id: c5aedcc748710da983410f7685c239a181f42168
2021-06-29 19:36:14 -07:00
Andrey Chursin
4aa1a1653c Print number of commits and segments during pull
Reviewed By: quark-zju

Differential Revision: D29467412

fbshipit-source-id: 65cc0b3a44fc832b16f3d25fbb608c7ab1245c0c
2021-06-29 19:32:53 -07:00
Andrey Chursin
3a52389401 pydag: expose commits and segments in pullfastforwardmaster
Reviewed By: quark-zju

Differential Revision: D29467413

fbshipit-source-id: 4e7609b23111230fa771a91f7d2d9c27dd12f15c
2021-06-29 19:32:53 -07:00
Andrey Chursin
3880c74621 dag: expose number of commits and segments in PreparedFlatSegments
Reviewed By: quark-zju

Differential Revision: D29467414

fbshipit-source-id: b361ed27ac34be6de4f543057f90d05afb9ab3a6
2021-06-29 19:32:53 -07:00
Liubov Dmitrieva
04aa0405e8 add 'upload/filenodes' request
Summary:
add 'upload/filenodes' request

This API must be called after file content has been uploaded. It requires a valid upload token for already uploaded file content.

The token can contain file content id of different types (canonical, sha1, sha256). It may or may not contain content size.

Reviewed By: StanislavGlebik

Differential Revision: D29197219

fbshipit-source-id: 3de31831ab06265675617a5c43cbd4be91f5cbe2
2021-06-29 19:28:45 -07:00
svcscm svcscm
6f181aa027 Updating submodules
Summary:
GitHub commits:

d5921d4b05
25196a4d66
cd9f47af4b
0cd7902fae
6f2eae55dd
2b1a6092a5
dba6c10cc2
8797223153
cfaa0da4d8

Reviewed By: yns88

fbshipit-source-id: 8ee41e641c614e478f355651afb80d600aefdd37
2021-06-29 19:04:34 -07:00
svcscm svcscm
7d864a2439 Updating submodules
Summary:
GitHub commits:

f49b246a32
c7831a316b
f56d2ab174
de52c9437a
3207c57cbb
a45d289c0d
89980b45f4
90b4b108b6
ad0f202e6b
f35ac5b584
f033910875

Reviewed By: yns88

fbshipit-source-id: 019401f4fec457f20ddff006f1927e764986fe7b
2021-06-29 18:38:19 -07:00
svcscm svcscm
e441167206 Updating submodules
Summary:
GitHub commits:

6e58005f44
d0a2e1b9c1
93d95b41f7
aa605f8e95
09705873ed
656e188c3f
657c469a83
3eaffdd92d
d877734b28
0a322e12b8

Reviewed By: yns88

fbshipit-source-id: d0f56611a1c64ad53da884496483419cd856726c
2021-06-29 18:10:12 -07:00
Zhengchao Liu
17ada866bb add edenfsctl trace fs support for nfs
Summary: This diff connects the trace bus with trace fs command.

Reviewed By: chadaustin

Differential Revision: D29367135

fbshipit-source-id: f9217b286c1a21805d70b21282c10d4ad722a391
2021-06-29 17:50:25 -07:00
Zhengchao Liu
d8abf544d2 add handle to publish finish event when exception thrown
Summary: If the handler throws without returning a future, the finish event will not be published. This diff adds the `LiveRequest` to publish finish event in its destructor.

Reviewed By: chadaustin

Differential Revision: D29332452

fbshipit-source-id: 880a4b67ba47b737063a3955c9f4bdbf605f1a43
2021-06-29 17:50:25 -07:00
Zhengchao Liu
d54083bd53 add tracing for nfs
Summary:
This diff adds tracking for nfs, based on the implementation of that of `FuseChannel`.
Also commented below few questions on the implementation before working on integrating to `strace`.

Reviewed By: chadaustin

Differential Revision: D29279126

fbshipit-source-id: de6bb36dfbe2f550a91f2bf254616bbc639c0c3d
2021-06-29 17:50:25 -07:00
svcscm svcscm
dd04dc0d95 Updating submodules
Summary:
GitHub commits:

0fdf0cdb82
784f64d7d2
0aa3cdab93
c514ec5f02
61001a346b
5860cab5e3
bdf262227a
3e17f198d3
c68f1d5566
2f95d1c8b1
277754265e

Reviewed By: yns88

fbshipit-source-id: 7a988f86ef7064e33795860a91ac5d91da46fee1
2021-06-29 17:30:01 -07:00
svcscm svcscm
6fd6acb317 Updating submodules
Summary:
GitHub commits:

3518b634ae
60a1a47774
8b38328a3f
6a6e02c2a3
3d28082a35
01e792670c
17bcf9adb6
f6b72a7423
b0a809444a
0be557b67c
9cd26b4012
a3acb86830

Reviewed By: yns88

fbshipit-source-id: ce19176f92fd8e98906d53059ce7b5f21fd93058
2021-06-29 17:02:05 -07:00
Jun Wu
3eb2eb2257 importhelper: request restart for non-lazy -> lazy changelog migration
Summary:
If the repo changelog was migrated to lazy, existing processes including the
import helpers might start failing to resolve commits. Detect that, and request
a restart of the import helper.

An example traceback:

  edenscm.mercurial.error.RepoLookupError: unknown revision 'ce48ccc4197b2066a8c7f2a930cee89e8aea6379'
  2021-06-29 12:33:12,738 error processing command 4
  Traceback (most recent call last):
    File "edenscm/mercurial/commands/eden.py", line 363, in process_request
      cmd_function(req)
    File "edenscm/mercurial/commands/eden.py", line 604, in cmd_manifest_node_for_commit
      node = self.get_manifest_node(rev_name)
    File "edenscm/mercurial/commands/eden.py", line 821, in get_manifest_node
      return self._get_manifest_node_impl(rev)
    File "edenscm/mercurial/commands/eden.py", line 790, in _get_manifest_node_impl
      node_hash = ctx.manifestnode()
    File "edenscm/mercurial/context.py", line 569, in manifestnode
      return self._changeset.manifest
    File "edenscm/mercurial/util.py", line 987, in __get__
      result = self.func(obj)
    File "edenscm/mercurial/context.py", line 540, in _changeset
      return self._repo.changelog.changelogrevision(self._node)
    File "edenscm/mercurial/changelog2.py", line 374, in changelogrevision
      return changelogrevision(self.revision(nodeorrev))
    File "edenscm/mercurial/changelog2.py", line 463, in revision
      p1, p2 = self.parents(node)[:2]
    File "edenscm/mercurial/changelog2.py", line 610, in parents
      parents = list(self.dag.parentnames(node))
  error.CommitLookupError: '<int> cannot be found'

Reviewed By: andll

Differential Revision: D29470181

fbshipit-source-id: 40ad6eebe1f656c63d3f96b2b70ad60b350eed21
2021-06-29 16:47:49 -07:00
Xavier Deguillard
0cc10bd188 testpilot: testpilot is broken on Sandcastle
Summary: Hack to use parexec and the par directly.

Reviewed By: chadaustin

Differential Revision: D29461444

fbshipit-source-id: 9ac6c1aa43728782b8de0a71446109f7fd5dab1d
2021-06-29 16:29:26 -07:00
svcscm svcscm
a63ade089b Updating submodules
Summary:
GitHub commits:

e43a926fd0
57f196647f
9773c660d5
80ab577aaa
06b51f9974
3bea1efb4f
5ee0c84e64
913394ca01
32d59ce5ee

Reviewed By: yns88

fbshipit-source-id: ed11d12f1769b1a90b8f4dd4c5aa09211336f052
2021-06-29 16:16:00 -07:00
svcscm svcscm
c983cc9e47 Updating submodules
Summary:
GitHub commits:

87fa51da8d
a6a6072016
f1e829afd8
ad508ef1d3
a0c5979d72
cba2266d84
229d3580e5
c063d7982c
5c1452ef4d
f12458690d

Reviewed By: yns88

fbshipit-source-id: c02a7a43d3dcaa6d81638ed9a87889efce05f129
2021-06-29 15:49:04 -07:00
Jun Wu
df7fc44718 localrepo: improve edenapi None error reporting
Summary:
Previously the None edenapi error isn't great for understanding what's going on:

  File "edenscm/mercurial/changelog2.py", line 123, in _openhybrid
    inner = bindings.dag.commits.openhybrid(
  TypeError: Expected type that converts to client but received NoneType

Let's make edenapi non-nullable by default, with nicer error messages, and make
places using the nullable edenapi opt-in explicitly.

Example errors:

  % lhg sl --config edenapi.url=
  abort: edenapi is required but disabled by missing edenapi.url config

  % lhg sl --config edenapi.enable=
  abort: edenapi is required but disabled by edenapi.enable being empty

  % lhg sl --config paths.default=/tmp
  abort: edenapi is required but disabled by paths.default being 'file:'

  % lhg sl --config paths.default=ssh://x --config ui.ssh=dummyssh
  abort: edenapi is required but disabled by paths.default being 'ssh:' and dummyssh in use

Reviewed By: kulshrax

Differential Revision: D29462258

fbshipit-source-id: 84fab5a7cce837c52ccb8108d1f4fe44ef2b6d1e
2021-06-29 15:46:00 -07:00
Jun Wu
d5cc8e6224 localrepo: enable edenapi more reliably
Summary:
D29372739 (ef79c2d811) caused issues that repo.edenapi becomes None due to scheme being ssh
(hit by markbt) or fb (hit by StanislavGlebik). Given that it's just legacy tests
that do not want EdenAPI, let's use a blacklist for legacy tests, instead of a
(fragile) whitelist for where EdenAPI should be enabled.

Reviewed By: kulshrax

Differential Revision: D29461305

fbshipit-source-id: 4a0317747d9ee3412ffdfdb25dc0d8383305a25c
2021-06-29 15:46:00 -07:00
svcscm svcscm
f17fd36c75 Updating submodules
Summary:
GitHub commits:

ec15ad3d4c

Reviewed By: yns88

fbshipit-source-id: 0c671a6c76d572725597b27baba18716a968a731
2021-06-29 14:51:51 -07:00
Jun Wu
23797a9437 doctor: fix compatibility with lazy changelog
Summary:
To construct a lazy changelog, the repo object needs to have `name` and `edenapi`. Implement them.
Besides, print why changelog fails to open with `--debug` or `--traceback`.

Reviewed By: andll

Differential Revision: D29468005

fbshipit-source-id: 5815e0d9313dac897f20fa32668cae05ba90c727
2021-06-29 13:16:05 -07:00
svcscm svcscm
194361994c Updating submodules
Summary:
GitHub commits:

5d4ae926f6
2c043d7635
93a7389442
041438b9a7
5c895d5b20

Reviewed By: yns88

fbshipit-source-id: 8c95b267446f1e514f88e6f358f26d0e3aca1835
2021-06-29 12:33:48 -07:00
Pyre Bot Jr
b0ad4f06b6 suppress errors in fbcode/eden - batch 1
Reviewed By: chadaustin

Differential Revision: D29457835

fbshipit-source-id: 6507be023601f42ada35f572ec5f21cb401cad2f
2021-06-29 12:29:06 -07:00