Commit Graph

67686 Commits

Author SHA1 Message Date
Adam Simpkins
11c086abe0 update the branch name for the fb303-source manifest
Summary:
The primary branch in the fb303 github repository was renamed from `master` to
`main`.  Update the `fb303-source` manifest to reflect this.

The main `fb303` manifest was already updated in D30700180 (d84d56c04c).  The
`fb303-source` manifest is a separate manifest that only fetches the fb303
source code without building it.  This is only used by the `eden_scm`
manifest.

Reviewed By: fanzeyi

Differential Revision: D30794650

fbshipit-source-id: 0e7790f8ceb737ce2f26ab213e1f0f94c5b3f045
2021-09-07 18:58:23 -07:00
svcscm svcscm
34af948026 Updating submodules
Summary:
GitHub commits:

9151aa177a
601114721e
22c2a8960f
30a7887d85
c44b07665e

Reviewed By: jurajh-fb

fbshipit-source-id: 1e812cd6a19e86efba1ce0f99ceede57b93ed963
2021-09-07 18:19:45 -07:00
svcscm svcscm
4e442e0b49 Updating submodules
Summary:
GitHub commits:

b454a6ede6
ae427ecab6
55089fd03f
af058ced7a
6119c22911
92b8234782

Reviewed By: jurajh-fb

fbshipit-source-id: 279738231a54b1381acade0ef110f07605ba8c7b
2021-09-07 17:53:42 -07:00
svcscm svcscm
aea4536af2 Updating submodules
Summary:
GitHub commits:

c33aac0904
0ddcd5ba22
c1d792b488
ed0a4db7d7
6cca9fab7c
72bc84f2a4
ff753cd1fd
6b42c708a3
e1d6d6e0bd
0a6349ee35

Reviewed By: jurajh-fb

fbshipit-source-id: 0ac1552f961d2df0085858f3fe2ed6ecc5a5567a
2021-09-07 16:16:21 -07:00
svcscm svcscm
2ccf6dbebf Updating submodules
Summary:
GitHub commits:

05566f3376
0ed5d5d96e
34b863641c
5f41e4f9a4
8d44b5691d
266b121c8a
5d9ec14c90
21934ccbdd
8fc35c3053
5c1c68296f
331cbee3b8

Reviewed By: jurajh-fb

fbshipit-source-id: dfabc0ac2049c1b03880ee1d0d640f57f1210a8c
2021-09-07 15:46:19 -07:00
Adam Simpkins
6c8e4f2224 Remove rsocket-cpp github_hashes file
Summary:
eden depended on the rsocket-cpp repository via fbthrift, but fbthrift
removed its rsocket-cpp dependency last year.  Remove the github_hashes
file for this repository since it is no longer necessary.
2021-09-07 15:43:19 -07:00
svcscm svcscm
01a7a318c4 Updating submodules
Summary:
GitHub commits:

2dad8e8420
d2643855f3
6d50342319
941543721d
0180fa4aca
cf5bf2feb2

Reviewed By: jurajh-fb

fbshipit-source-id: 4bad2c20056cf18758596ee42641644478fd805d
2021-09-07 15:19:33 -07:00
Xavier Deguillard
2bc4cf33db backingstore: on exit, flush the store to disk
Summary:
Not flushing the data to disk makes studying performance almost impossible due
to not being able to avoid fetching from the network. By forcing a flush to
disk, we can ensure that data will always be on disk, making performance
measurement easier. This will also prevent users from re-fetching the same data
multiple times.

Reviewed By: fanzeyi

Differential Revision: D30784399

fbshipit-source-id: 0250c209b5f49f95cf2f43873573cacc661a4989
2021-09-07 14:34:43 -07:00
Xavier Deguillard
17b9e71972 store: add HgQueuedBackingStore::periodicManagementTask
Summary:
Since this method wasn't overriden, EdenFS would never periodically flush data
to disk.

Reviewed By: fanzeyi

Differential Revision: D30784400

fbshipit-source-id: d88e535250a476582868dd82e57137a0ac38f921
2021-09-07 14:34:43 -07:00
Arun Kulshreshtha
d88406e38a edenapi: simplify ConfigError
Summary: Previously, there were special variants for missing and invalid URLs (since the server URL is presently the only required config option). In order to support other required config options, let's simplify the enum to just have variants for missing and invalid config fields respectively.

Reviewed By: yancouto

Differential Revision: D30745971

fbshipit-source-id: e414ec2fadc5d04e9c788bf290a70f6cf52dbe58
2021-09-07 14:13:25 -07:00
Jun Wu
eaafe1f723 indexedlog: fix a typo in comment
Summary: Saw this when reading related code.

Reviewed By: kulshrax

Differential Revision: D30783665

fbshipit-source-id: f9b598b9301619346972bd0abf893f089d902022
2021-09-07 14:06:22 -07:00
Zeyi (Rice) Fan
5704ad51f6 edenfs-client: switch to tokio 1.x
Reviewed By: andll

Differential Revision: D30704344

fbshipit-source-id: c09f8dad1bba78329b0b97bff85c08b19fe1e0f4
2021-09-07 13:31:02 -07:00
Zeyi (Rice) Fan
8616cd90b1 switch to new fbthrift_ext
Reviewed By: xavierd

Differential Revision: D30703434

fbshipit-source-id: 74c1c577a330913e411b58d3a128a28cfed621a2
2021-09-07 13:31:02 -07:00
svcscm svcscm
34346ce9b8 Updating submodules
Summary:
GitHub commits:

46f408a14b
6fe4f06010
4750421ece
18ca26fc43
b5810b10fe

Reviewed By: jurajh-fb

fbshipit-source-id: 602e263acb89d2b1277df4d963883580ed49510a
2021-09-07 11:54:17 -07:00
Robert Grosse
ad2731099b Remove checkcodeglobpats from test runner
Summary:
I'm not sure what this was for, but it doesn't seem necessary, and removing it simplifies the code a lot, enabling us to make other improvements later.

This is an alternate, less ambitious version of https://www.internalfb.com/diff/D30620443.

Reviewed By: DurhamG

Differential Revision: D30674016

fbshipit-source-id: 17dee50b82c78d31e45492dc23826d8c3fe838e5
2021-09-07 11:43:18 -07:00
Durham Goode
443be3727d tests: condition test-advice-header.t on buck tests
Summary:
This test relies on Mononoke, so it fails for make local build/test,
which breaks hgbuild. Let's only enable it for buck tests.

Reviewed By: quark-zju

Differential Revision: D30782799

fbshipit-source-id: 4b543beeb248715702b9072d84cdb8211dcd4a9b
2021-09-07 11:37:56 -07:00
Mateusz Kwapich
27830555a1 allow recreating targets without removing the configs
Summary:
Currently there are two things preventing us from running add_sync_target
on existing target:
 * already existing bookmark
 * already existing config

Both need to be deleted to create new target. This diff removes the second
one to simplify code and make it easier to recreate the target (it's easy to
forget about manually removing the config as they otherwise don't need
human interventions).

Reviewed By: StanislavGlebik

Differential Revision: D30767613

fbshipit-source-id: f951c0e1ef9bde69d805dc911331fcdb220123f2
2021-09-07 11:33:18 -07:00
svcscm svcscm
e8e9213502 Updating submodules
Summary:
GitHub commits:

4c340ca46b
ae4aa7f760
538e8c0ec6
3ce04fc664

Reviewed By: jurajh-fb

fbshipit-source-id: 68aa5532e7b93b66a3a2d9ce4f52a9c19ef51ada
2021-09-07 11:19:58 -07:00
Durham Goode
f26bb33cd1 graft: remove large changelog scan
Summary:
This logic scans all the ancestors of the working copy that are not
ancestor of the graft source and checks their extras. With lazy changelog this
is extremely expensive. Let's just drop this logic.

Reviewed By: quark-zju

Differential Revision: D30734017

fbshipit-source-id: ca5606cea08efe10f29847970379d6bff4eb4aee
2021-09-07 11:00:56 -07:00
Mark Juggurnauth-Thomas
26cc4c4471 filenodes: store repo_id and update to new futures
Summary:
Update the `Filenodes` trait so that it doesn't require the repository id to be
passed in every method invocation.  In practice a filenodes instance can only
be used for a single repo, so it is safer for the implementation to store the
repository id.

At the same time, update the trait to use new futures and async-trait.

Reviewed By: yancouto

Differential Revision: D30729630

fbshipit-source-id: a1f80a299d9b0a99ddb267d1f7093f27cf21f1af
2021-09-07 07:44:28 -07:00
Mark Juggurnauth-Thomas
8e1f8affad mercurial_derived_data: make derivation not depend on BlobRepo
Summary:
Make the derivation process for mercurial changesets and manifests not depend
on `BlobRepo`, but instead use the repo attribute (`RepoBlobstore`) directly.
This will allow us to migrate to using `DerivedDataManager` in preparation
for removing `BlobRepo` from derivation entirely.

Reviewed By: yancouto

Differential Revision: D30729629

fbshipit-source-id: cf478ffb97a919c78c7e6e574580218539eb0fdf
2021-09-07 07:44:28 -07:00
Mark Juggurnauth-Thomas
5de3581a10 blame/deleted_files_manifest: make derivation not depend on BlobRepo
Summary:
Make the derivation process for blame and deleted files manifest not depend
on `BlobRepo`, but instead use the repo attribute (`RepoBlobstore`) directly.
This will allow us to migrate to using `DerivedDataManager` in preparation
for removing `BlobRepo` from derivation entirely.

A `BlobRepo` reference is still needed at the moment for derivation of the
unodes that these depend on.  That will be removed when `DerivedDataManager`
takes over co-ordination of derivation.

Reviewed By: yancouto

Differential Revision: D30729628

fbshipit-source-id: 4504abbe63c9bf036d69cb4341c75b13061fae18
2021-09-07 07:44:27 -07:00
Mark Juggurnauth-Thomas
49a8e9b323 fsnodes/skeleton_manifest: make derivation not depend on BlobRepo
Summary:
Make the derivation process for fsnodes and skeleton manifests not depend on
`BlobRepo`, but instead take the `DerivedDataManager` from the `BlobRepo` and
use that instead.  This is in preparation for removing `BlobRepo` from
derivation entirely.

Reviewed By: yancouto

Differential Revision: D30301855

fbshipit-source-id: a2ed1639526aad9ddbe8429988043f0499f7629c
2021-09-07 07:44:27 -07:00
Mark Juggurnauth-Thomas
7304cc49d3 unodes: make derivation not depend on BlobRepo
Summary:
Make the derivation process for unodes not depend on `BlobRepo`, but instead
take the `DerivedDataManager` from the `BlobRepo` and use that instead.  This
is in preparation for removing `BlobRepo` from derivation entirely.

Reviewed By: yancouto

Differential Revision: D30300408

fbshipit-source-id: c35e9e21366de74338f453aaf6be476e7305556d
2021-09-07 07:44:27 -07:00
Mark Juggurnauth-Thomas
81364c16e1 dangerous_override: override blobstore in derived data manager
Summary:
The derived data manager also has a reference to the repo blobstore.  This must
also be overridden when we override the blobstore.

Reviewed By: yancouto

Differential Revision: D30738354

fbshipit-source-id: b0e16ef810c5244cd056a3c9e5b9ceaaddb5ecea
2021-09-07 07:44:27 -07:00
Liubov Dmitrieva
4ad0258a94 modernise tests (removing disabling treemanifest)
Summary:
modernise tests (removing disabling treemanifest)

treemanifest is the default now, so it shouldn't be disabled unless absolutely necessary.

Also, if we would like to switch some of the tests to Mononoke, it shouldn't be disabled.

Only two tests left with it in commitcloud. Those two a bit harder to fix.

```
devvm1006.cln0 {emoji:1f440}   ~/fbsource/fbcode/eden/scm/tests
 [139] → rg 'disable treemanifest' | grep cloud
test-commitcloud-backup-bundlestore-short-hash.t:  $ disable treemanifest
test-commitcloud-backup.t:  $ disable treemanifest
```

Reviewed By: kulshrax

Differential Revision: D30278754

fbshipit-source-id: cf450084669c2b6b361cd34952bf986e913de1a8
2021-09-07 04:54:28 -07:00
CodemodService Bot
34fef0116f Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D30771609

fbshipit-source-id: efd5474b1f189df318ef6f9323a66c18593f7323
2021-09-07 01:43:29 -07:00
Michael Samoylenko
e156bbd676 Allow more read-connection-types when creating SqlConnections
Summary:
I want to use `ReplicaFirst` read connection type since `ReplicaOnly` is a bit too restrictive.

We've had 2 MySQL SEVs this year when all the replicas went down crashing our services despite the primary instance working normally.
There was also a case when I've deleted too much rows at once and all replicas went down due to replication lag (I know better now)

RFC
- Yay or Nay?
- Should I expand `ReadConnectionType` to mirror all options of `InstanceRequirement`?
- Perhaps it's worth moving it into the `common/rust/shed/sql` crate?

I kept cleaning up all the usages out of this diff to keep the changes minimal for RFC

Differential Revision: D30574326

fbshipit-source-id: 1462b238305d47557372afe7763096c53df55f10
2021-09-06 14:40:47 -07:00
Stanislau Hlebik
4f8f705ae1 mononoke: allow using prefetched commits in segmented_changelog_seeder
Summary:
Segmented changelog seeder spends a significant chunk of time fetching
changesets. By saving them to file we can make reseeding significantly faster.

Reviewed By: farnz

Differential Revision: D30765374

fbshipit-source-id: 0e6adf12e334ad70486145173ae87c810880988a
2021-09-06 11:32:17 -07:00
Stanislau Hlebik
6eec03046b mononoke: introduce dump_public_changeset_entries
Summary:
In backfill_derived_data we had a way to prefetch a lot of commits at once, so
that backfill_derived_data doesn't have to do it on every startup.

I'd like to use the same functionality in segmented changelog seeder, so let's
move it to the separate binary.

Reviewed By: mitrandir77, farnz

Differential Revision: D30765375

fbshipit-source-id: f6930965b270cbaae95c3ac4390b3d367eaab338
2021-09-06 11:11:44 -07:00
Jan Mazur
5268cedad5 use X-FB-Validated-X2PAuth-Advice header when APE provides it
Summary: Let's print advice when request fails.

Reviewed By: krallin

Differential Revision: D30702879

fbshipit-source-id: 6fb907e6c57dc8383151116619ca894b9b3ea5bb
2021-09-06 08:42:36 -07:00
svcscm svcscm
eebf672c83 Updating submodules
Summary:
GitHub commits:

98c0f0ce77
0f1ed0d252
61f4586b2e
5e2e2f058c

Reviewed By: yns88

fbshipit-source-id: 9fcab00037c4323fb08314a8473ab7fc68cc460a
2021-09-05 14:19:51 -07:00
svcscm svcscm
6422a5907f Updating submodules
Summary:
GitHub commits:

3569010b61

Reviewed By: yns88

fbshipit-source-id: 9d486ec113eab1be33b5d0a7fbad21e1b3369b20
2021-09-05 13:38:49 -07:00
svcscm svcscm
6d7b23044f Updating submodules
Summary:
GitHub commits:

10bb79d9ad
6a17d81bc7
de45c3e8f7
b415088305

Reviewed By: yns88

fbshipit-source-id: 47ac80c61bbc62766b15502257624b1e0ec60250
2021-09-05 12:59:20 -07:00
svcscm svcscm
5e421f0ddf Updating submodules
Summary:
GitHub commits:

75ebac8f1f

Reviewed By: yns88

fbshipit-source-id: c696d1b303cca98a4ed1b7e2e7bba48067923d42
2021-09-05 12:11:03 -07:00
svcscm svcscm
3786179439 Updating submodules
Summary:
GitHub commits:

938f0ff274
9cbd9a872b
d4c4e93690
a0d47d8197

Reviewed By: yns88

fbshipit-source-id: 7ea532894fd016a2271575a0a06cfeef30bd0544
2021-09-04 20:05:00 -07:00
svcscm svcscm
1f9af2f813 Updating submodules
Summary:
GitHub commits:

ebf38f398f
96de48189d
eea2e878c7
2fea4fbad9
fae3d8072c
385d5edf1f

Reviewed By: yns88

fbshipit-source-id: 0b0c99ce661b5640bda9d4ae4e1553d6a2893758
2021-09-04 19:36:21 -07:00
svcscm svcscm
beee896bca Updating submodules
Summary:
GitHub commits:

8227bb6610
3d17883f31
553f32328c
b15f4a624e
ce4d72b38d
571f0850e5
2de1b08ee8
43a2255888
87ea7640f8

Reviewed By: yns88

fbshipit-source-id: 02512aca4634c59ff6f0eeedca5a71933eaca371
2021-09-04 19:08:58 -07:00
svcscm svcscm
0358c2c373 Updating submodules
Summary:
GitHub commits:

7df7bee32e
57413a7405
5da39986ab
ac9fe49f04
18ffb17bb6
692bdc1619
fe15a81967
0e15c3e237
3c0e8e32de
d8682a6a55

Reviewed By: yns88

fbshipit-source-id: 0f7ef7a22e91ba74400a7f3d91b9db700dced121
2021-09-04 18:43:44 -07:00
svcscm svcscm
fb529a5c9a Updating submodules
Summary:
GitHub commits:

47844d9203
e8eb02145a

Reviewed By: yns88

fbshipit-source-id: b40f07683f71aa8ce412e851f2863fe91c4fd00d
2021-09-04 18:11:52 -07:00
svcscm svcscm
0d98748703 Updating submodules
Summary:
GitHub commits:

4cec3a79c5
0303763fda
916efb4cce
b7cc5e7169

Reviewed By: yns88

fbshipit-source-id: c545c3b949849b5cd3dab4221a65b6e0d5d46204
2021-09-04 12:20:35 -07:00
svcscm svcscm
2bceeddbb4 Updating submodules
Summary:
GitHub commits:

8d594ac191

Reviewed By: yns88

fbshipit-source-id: f9f62319889d8637ab8e5750e3657ab0e3ee345b
2021-09-04 11:55:04 -07:00
svcscm svcscm
ba90ff10a6 Updating submodules
Summary:
GitHub commits:

3d61344e3f
ac570c33dd
ddb232d074
c1dadf4b7e

Reviewed By: yns88

fbshipit-source-id: ae7eb736ceb4c0e757daabcca10516a0f48c05e8
2021-09-04 02:20:58 -07:00
svcscm svcscm
a884bc74b6 Updating submodules
Summary:
GitHub commits:

96acf70512
91622099e4
a56663cc4d
e4b30bd7b9
39fed26da6
74cb4873aa

Reviewed By: yns88

fbshipit-source-id: 18f6eea7fa3df497cc1fda7cd1422f9410e99ac0
2021-09-04 01:51:14 -07:00
svcscm svcscm
23fcf2ffcf Updating submodules
Summary:
GitHub commits:

575638697d
2229814e87
729c9f7566
2a376df1f6
de330ee5d1
543b7a3cb7
d272356877
c932ea48f5
dcc2c0989e

Reviewed By: yns88

fbshipit-source-id: 88fa4a628728dadb519110e02a11eff9335054fc
2021-09-04 00:49:00 -07:00
svcscm svcscm
b83fdd8796 Updating submodules
Summary:
GitHub commits:

499e2b21ce
bb6fa249be
aaa1eeebd3
78dd540742
4887e317dc
924039f12e
4317928e55
b01e1db5d6
9e07f7ac92
fa640dfe27
6e1a471488

Reviewed By: yns88

fbshipit-source-id: 7e294c86a38022dfabf54b2e4780a36ada952c00
2021-09-04 00:21:01 -07:00
svcscm svcscm
44f03d124e Updating submodules
Summary:
GitHub commits:

343d3ce5bc
49c1d652c9
c12f1cfa26
691006953b
5b05b42cea
8b4e1adde6
3b7350cd3c
52d2644d80
04942410b3
1761f27de3

Reviewed By: yns88

fbshipit-source-id: 2ac47b421690bd13bcb1b09a5aa93d2cbdd835d9
2021-09-03 23:46:10 -07:00
svcscm svcscm
e4676e0d06 Updating submodules
Summary:
GitHub commits:

d687d17b6c
ef38ae6501
f6d9095af9
0e9e3c675b
8a28b974e6
8a60e880ae
9e482cfe62
4248315672
9d3c71dfe4
9fd1800347

Reviewed By: yns88

fbshipit-source-id: 3bfa73acc85189cb18e38f5643087fc7ca816221
2021-09-03 23:23:17 -07:00
svcscm svcscm
c5d383fbf7 Updating submodules
Summary:
GitHub commits:

490b287ca3

Reviewed By: yns88

fbshipit-source-id: 53f8a1c80bb30582d22b584b102eff4e232f3c36
2021-09-03 22:58:00 -07:00
svcscm svcscm
a0351e81b5 Updating submodules
Summary:
GitHub commits:

c0dad04b13
50ba490cbc
4762a6db5b
7d76df4f75

Reviewed By: yns88

fbshipit-source-id: 41eb60dae624efd3221ab8b68b2fe16e3cf4a2af
2021-09-03 11:07:17 -07:00