Commit Graph

198 Commits

Author SHA1 Message Date
Mark Juggurnauth-Thomas
d5f0f7132f metaconfig: add configuration for hook implementation and json config
Summary: Sync definitions from configerator and add local definitions for new hook config.

Reviewed By: RajivTS

Differential Revision: D49094388

fbshipit-source-id: aeba2d69d1be6ebd2f52fe61fdbd4ef5415c9681
2023-09-29 11:49:25 -07:00
Sergey Anpilov
638716e59f adding deprecated_default_enum_min_i32: multi-liners [3/n]
Reviewed By: zertosh

Differential Revision: D49064137

fbshipit-source-id: d6738790c967d41410fb5cbec79e0af52f6fbf96
2023-09-07 12:53:33 -07:00
generatedunixname89002005287564
9e06b9b7c3 Sync fbcode/configerator/structs/scm/mononoke/blobimport/state.thrift
Differential Revision: D48601561

fbshipit-source-id: 10be15fc3ae4f8a7cf987cf49acb0000b6f87c72
2023-08-23 09:29:33 -07:00
Andres Suarez
0f2d71f115 Update serde from 1.0.176 to 1.0.185
Summary:
This release most notably removes the precompiled serde_derive:
https://github.com/serde-rs/serde/releases/tag/v1.0.184

Reviewed By: shayne-fletcher

Differential Revision: D48516549

fbshipit-source-id: 077f650094f9424982de9283d04ede59306947b0
2023-08-21 06:07:02 -07:00
Shayne Fletcher
573cd203c1 @nocommit send consts to -types crate
Summary: move thrift generated `consts.rs` files into -types crates

Reviewed By: zertosh

Differential Revision:
D48158513

Privacy Context Container: L1124100

fbshipit-source-id: bcf9a1193a855d90f4f2d899a2a3e3208b9e2c85
2023-08-15 11:29:19 -07:00
David Tolnay
96e88771fd Update serde from 1.0.167 to 1.0.176
Reviewed By: quark-zju

Differential Revision: D47811862

fbshipit-source-id: 03cefc52f3d024a2d0fb5580bed079ff2b4651e0
2023-07-26 21:23:58 -07:00
Shayne Fletcher
f2f02bf804 create a -types crate for Thrift-generated types
Summary:
picking up from D37112756.

given thrift library `foo`, where before we'd generate target `foo-rust`  (containing a `types.rs` module) we now generate two targets, `foo-rust` & `foo-rust-types` where the `types.rs` module is in the latter crate which is depended upon by the former. the motivation is to enable greater build parallelism (see D37112756 for more).

## buck

### files and symlinks in buck-out/.

single-file-thrift-library-foo multi-crate {F1041073024}
multi-file-thrift-library-foo multi-crate
{F1041073062}

## autocargo

### files in target/.

single-file-thrift-library-foo multi-crate {F1041073095}
multi-file-thrift-library-foo multi-crate {F1041073125}

## deployment plan

-  diff (1) land autocargo changes (D47342888)
      - will break autocargo workflows not using `arc`
-  diff (2) initiate an autocargo bump
      - https://www.internalfb.com/intern/msdk/bump/autocargo
-  diff (3) (D46573767 - this diff) rebase all remaining changes on (2) and land it
      - thrift compiler, compiler wrapper, rust thrift build defs
      - regenerated 'Cargo.toml', 'thrift_build.rs' and 'thrift_lib.rs' files
      - will break autocargo thrift builds (bad "thrift1"; invoking incompatible thrift compiler)
-  diff (4) initiate a thrift1 bump (now (3) has landed) and land it
      - https://www.internalfb.com/intern/msdk/bump/thrift1

Reviewed By: zertosh

Differential Revision: D46573767

fbshipit-source-id: b2db8e3bf307a6498f92cdb8a64c26b8871a0a1d
2023-07-12 07:12:07 -07:00
David Tolnay
4d0b498e21 Updates of dtolnay crate-o-matic universe
Reviewed By: zertosh

Differential Revision: D47316925

fbshipit-source-id: d6d374466693cff397a0358bb38c790575998a21
2023-07-08 14:36:37 -07:00
David Tolnay
c93c3b3ef8 Update serde and serde_json
Reviewed By: zertosh

Differential Revision: D47316922

fbshipit-source-id: bc9c0b407d27fee3d590e456d4ddba34e0228f34
2023-07-08 14:34:39 -07:00
Mateusz Kwapich
0ee50a92c3 pushrebase - allow exemptions from casefolding check
Summary:
The casefolding pushrebase check is blocking the sync of www commits causing
problems. Let's exempt www/ dir from it.

We'll also have to modify commit hooks - but that's a separate thing.

Reviewed By: markbt

Differential Revision: D46860559

fbshipit-source-id: 87db959e0d025c0c1fc5c6cfecbdcf96af9e0f81
2023-06-20 16:48:55 -07:00
Shayne Fletcher
ca860fbcef Update autocargo component on FBS:master
Reviewed By: zertosh

Differential Revision: D46811187

fbshipit-source-id: 5d4e3993ccbc3871bf56495822d15de8d73f832c
2023-06-16 14:06:54 -07:00
Youssef Ibrahim
8f1a4a8c38 add repo config for specifying preloaded commit graph blobstore key
Summary: We need a way to specify which repos will use a preloaded commit graph and the blobstore key of the commit graph blob in that case.

Reviewed By: RajivTS

Differential Revision: D45993558

fbshipit-source-id: 4cf2ea84b72e3a50187fab3ece86e623a754d571
2023-05-22 15:15:01 -07:00
Rajiv Sharma
7e23b7d515 Sharding non-oss work [3/N]
Differential Revision: D45909814

fbshipit-source-id: 3f2f7144ac0f97f0812b5f03764375a7a451f7c7
2023-05-17 07:12:52 -07:00
Jan Mazur
485d3b8bd2 deprecate tasks_per_content and threshold fields
Summary:
No need for this anymore.
Removing in configerator here: D45394588

Reviewed By: mitrandir77

Differential Revision: D45769295

fbshipit-source-id: c254cac81f931a02f075cf6b37dbf82257afd7eb
2023-05-12 03:36:30 -07:00
Egor Tkachenko
5e8b776ef2 Add support for new database in repo config
Summary:
Corresponding configerator diff - D45732232
This will allow to construct facet to connect to those sql databases.

Reviewed By: mitrandir77

Differential Revision: D45735055

fbshipit-source-id: 5a2bd81779f6118072b5b56e7b9365047987b9cc
2023-05-11 04:09:24 -07:00
Jan Mazur
f697307a97 tiered consistent routing code
Summary:
Seem summary on the previous diff.

This functionality should be a super set of the previous logic.

Reviewed By: mitrandir77

Differential Revision: D45395320

fbshipit-source-id: 2ebf08c6b8c3480ea30cd2bf4635fc116ecd65b6
2023-05-10 05:33:30 -07:00
Mark Juggurnauth-Thomas
4b610e1af9 sync configerator tunables.thrift
Reviewed By: RajivTS

Differential Revision: D45355071

fbshipit-source-id: 0fb92f1b9b590446dadad30f20465507ab47b2b8
2023-04-28 03:57:14 -07:00
David Tolnay
b5d3aab8ce Update ref-cast from 1.0.12 to 1.0.16
Reviewed By: zertosh

Differential Revision: D45278283

fbshipit-source-id: 85f83923f4a18e87b60a8ab68ab731fe74fd2a8c
2023-04-25 12:08:03 -07:00
Thomas Orozco
22e700ccf3 (reland) rust/third-party: update to futures 0.3.28
Summary:
Note: this is a re-land of D44623815, which was was reverted because of a land race with D44626072

In particular this fixes `FlattenUnordered` having a nasty deadlock, but also
some other  bugs:

```
# 0.3.28 - 2023-03-30

* Update to syn 2. This raises MSRV of utility crates to 1.56. (#2730, #2733)
* Fix bug in `FlattenUnordered` (#2726, #2728)

# 0.3.27 - 2023-03-11

* Add `TryFlattenUnordered` (#2577, #2590, #2606, #2607)
* Add `AbortHandle::is_aborted` (#2710)
* Add `AbortRegistration::handle` (#2712)
* Make `BiLock` strict-provenance compatible (#2716)

# 0.3.26 - 2023-01-30

* Add `Either::as_pin_mut` and `Either::as_pin_ref` (#2691)
* Add `Shared::ptr_eq` and `Shared::ptr_hash` (#2691)
* Implement `FusedStream` for `Buffered` (#2676)
* Implement `FusedStream` for all streams in `ReadyChunks` (#2693)
* Fix bug in `FuturesOrdered::push_front` (#2664)
* Remove `Fut::Output: Clone` bounds from some `Shared` methods (#2662)
* Remove `T: Debug` bounds from `Debug` implementations of `mpsc` and `oneshot` types (#2666, #2667)

# 0.3.25 - 2022-10-20

* Fix soundness issue in `join!` and `try_join!` macros (#2649)
* Implement `Clone` for `sink::Drain` (#2650)

# 0.3.24 - 2022-08-29

* Fix incorrect termination of `select_with_strategy` streams (#2635)

# 0.3.23 - 2022-08-14

* Work around MSRV increase due to a cargo bug.
```

Reviewed By: zertosh

Differential Revision: D44632588

fbshipit-source-id: bdd87cb02b3aef63a65b1f9b852579225adfedbd
2023-04-04 10:14:43 -07:00
Mark Isaacson
3463e3d61b Revert D44623815: rust/third-party: update to futures 0.3.28
Differential Revision:
D44623815

Original commit changeset: 343ddb9277e1

Original Phabricator Diff: D44623815

fbshipit-source-id: 2d99e8d24fd9b13343dfeb082788b0a6258fbe8c
2023-04-03 09:25:13 -07:00
Thomas Orozco
159cf5c5e6 rust/third-party: update to futures 0.3.28
Summary:
In particular this fixes `FlattenUnordered` having a nasty deadlock, but also
some other  bugs:

```
# 0.3.28 - 2023-03-30

* Update to syn 2. This raises MSRV of utility crates to 1.56. (#2730, #2733)
* Fix bug in `FlattenUnordered` (#2726, #2728)

# 0.3.27 - 2023-03-11

* Add `TryFlattenUnordered` (#2577, #2590, #2606, #2607)
* Add `AbortHandle::is_aborted` (#2710)
* Add `AbortRegistration::handle` (#2712)
* Make `BiLock` strict-provenance compatible (#2716)

# 0.3.26 - 2023-01-30

* Add `Either::as_pin_mut` and `Either::as_pin_ref` (#2691)
* Add `Shared::ptr_eq` and `Shared::ptr_hash` (#2691)
* Implement `FusedStream` for `Buffered` (#2676)
* Implement `FusedStream` for all streams in `ReadyChunks` (#2693)
* Fix bug in `FuturesOrdered::push_front` (#2664)
* Remove `Fut::Output: Clone` bounds from some `Shared` methods (#2662)
* Remove `T: Debug` bounds from `Debug` implementations of `mpsc` and `oneshot` types (#2666, #2667)

# 0.3.25 - 2022-10-20

* Fix soundness issue in `join!` and `try_join!` macros (#2649)
* Implement `Clone` for `sink::Drain` (#2650)

# 0.3.24 - 2022-08-29

* Fix incorrect termination of `select_with_strategy` streams (#2635)

# 0.3.23 - 2022-08-14

* Work around MSRV increase due to a cargo bug.
```

Reviewed By: zertosh

Differential Revision: D44623815

fbshipit-source-id: 343ddb9277e1703104e516d07fe0610b5020930a
2023-04-03 08:30:49 -07:00
Shai Szulanski
efbf33d9e7 Delete unowned thrift files synced from cfgr
Summary: These files don't have corresponding TARGETS so are presumably not used anywhere

Reviewed By: vitaut

Differential Revision: D44545218

fbshipit-source-id: a898bde46787d40cda8e78c6cc0b4bf2686c98a6
2023-03-31 15:16:01 -07:00
Manu Bretelle
6779125864 enable futures-03 feature
Summary:
Enable this feature so we can trace async-streams.
https://fb.workplace.com/groups/learningrust/posts/3419749284962599?comment_id=3419814948289366

Reviewed By: zertosh, davidbarsky

Differential Revision: D43899678

fbshipit-source-id: e1fb1110ec22684e318b851d8eef42dbcaca8491
2023-03-09 16:54:47 -08:00
Yan Soares Couto
4ee579966b Solution 4: Add globalrevs to all fbsource master commits
Summary: This is solution 4 from here: https://fb.quip.com/urHbAnAvRnlS#temp:C:XMW2e0953793a3e40e1b042f51e3

Reviewed By: mitrandir77

Differential Revision: D43701364

fbshipit-source-id: 28585fabcfca9a7100c51f57a8e569b12cb11b06
2023-03-09 07:47:14 -08:00
Emerson Ford
15d7db2ebc fix autocargo
Summary: title, ran `arc autocargo`

Reviewed By: edward-shen

Differential Revision: D43887113

fbshipit-source-id: 63c2ecf4a94973b3f560b52ea4eab18a68ce7fac
2023-03-07 13:59:20 -08:00
Rajiv Sharma
29a2e09916 Support deep sharding for background jobs
Summary: As in title. Corresponding configerator diff: D42999016

Reviewed By: mzr

Differential Revision: D42999723

fbshipit-source-id: b5e6f1e7d66259c4faccb849d6b866c92a5be527
2023-02-06 02:23:38 -08:00
Rajiv Sharma
350eb1003d Remove deep sharded flag
Summary:
Now that `deep_sharding` is expressed via `ShardingModeConfig`, the repo-level `deep_sharded` boolean flag can be removed.

Corresponding configerator diff: D42676137

Reviewed By: markbt

Differential Revision: D42676143

fbshipit-source-id: 09b87aab1718f828c3015930645ba58ca58bb1fd
2023-01-24 06:19:19 -08:00
Rajiv Sharma
db4b735b06 Add Deep Sharding Config to support service level sharding mode
Summary:
In D38786500, I introduced `deep-sharded` flag that controls whether a repo needs to execute in deep-sharded mode or shallow-sharded mode. However, the flag was universal (i.e. it was applicable to all services). Since we currently have a situation where certain services need to execute repos in deep sharded (e.g. `SCS`) while others need to execute in shallow-sharded mode (e.g. `Eden API`). This diff introduces `ShardingModeConfig` which determines if a repo is deep sharded for a particular service.

For now, the `deep_sharded` flag is kept as is. Once the config + code changes to use this new property are landed, I will delete the old `deep_sharded` flag.

Corresponding configerator diff: D42501648

Differential Revision: D42530372

fbshipit-source-id: 1bd46533ad18939da4465239dab1340a0e8219d2
2023-01-20 01:08:27 -08:00
Yan Soares Couto
7d78b51f2b (2/2) Rename write mostly to write only
Summary:
**Context**: The write-mostly name is confusing and out of date. We never read from write-mostly blobstores (only on scrub). Let's rename it to write only to make it less confusing.

See D41520772 for migration plan.

This diff is the step (3). It will only be landed after previous diff rolls out.

Reviewed By: mitrandir77

Differential Revision: D41520763

fbshipit-source-id: f3775ad13439a9326b7fdc4cba5b691d59af4770
2023-01-13 09:23:35 -08:00
Yan Soares Couto
98d09471e9 Support unsharded db on WAL
Summary: This makes WAL support unsharded DB, which makes MySQL integration tests work again.

Reviewed By: mzr

Differential Revision: D42430809

fbshipit-source-id: b6e2dce380a5c91700dc920fa0cdc993e00cb3e6
2023-01-10 04:56:33 -08:00
Yan Soares Couto
5d20ff88a1 Sync repo config from configerator
Summary: This syncs changes from D42145360 and deletes the category fields from thrift.

Reviewed By: mitrandir77

Differential Revision: D42145669

fbshipit-source-id: 1268308be11af86180709c2b46a407c41c731321
2023-01-09 07:52:06 -08:00
Mark Juggurnauth-Thomas
f09d263ad6 commit_graph: make scuba table a config option
Reviewed By: YousefSalama

Differential Revision: D42368178

fbshipit-source-id: 80aaaa2a72a593c5cf6ddc7f7683fcf214d2f5ba
2023-01-05 12:28:51 -08:00
Yan Soares Couto
c8cbb1d847 (1/2) Rename write mostly to write only
Summary:
**Context**: The write-mostly name is confusing and out of date. We never read from write-mostly blobstores (only on scrub). Let's rename it to write only to make it less confusing.

See D41520772 for migration plan.

This diff is the fbsource part of step (1): **Makes our code accept both configs as meaning write only** and does all the renames.

The most important change is file `eden/mononoke/metaconfig/parser/src/convert/storage.rs`, which starts accepting `write-only` config as well as `write-mostly`.

Reviewed By: mitrandir77

Differential Revision: D41520648

fbshipit-source-id: b0274c937ca7db10debb8c952a9a1867c0b431c1
2022-12-02 06:13:15 -08:00
Yan Soares Couto
96e85f9c8f Remove remote SCS mode to pushrebase
Summary: This syncs the config change from D41469348, and fully removes logic to do pushrebases remotely through SCS. Now everything should go through land service (and already does so in production).

Reviewed By: RajivTS

Differential Revision: D41469510

fbshipit-source-id: 0e41624a84b8cbefaf3793a5f98533f9abd2257a
2022-11-29 05:20:15 -08:00
Yan Soares Couto
9e86a2538d wal: Update scuba config, don't use multiplex scuba yet
Summary:
**Context**: We want to roll out the new WAL multiplexed blobstore and need final tweaks before doing that. See https://fb.quip.com/vyTWAgGZSA2Z

This sync configerator changes from D40754273, and updates our internal configs to load two types of scuba tables. But it continues doing the same as before, only logging to scuba on internal blobstore queries.

I also renamed `scuba` to `inner_blobstores_scuba` to make it clear, because that's confusing on the current multiplexed blobstore.

Note: the thrift compat error is fine to bypass because we're not using this thrift schema anywhere yet.

Differential Revision: D40720597

fbshipit-source-id: fceb9d72b20e298d52744dfd79798c36f34b07da
2022-11-08 16:22:48 -08:00
Yan Soares Couto
d12ebd7417 wal: Add sharded db config to queue
Summary:
**Context**: We want to roll out the new WAL multiplexed blobstore and need final tweaks before doing that. See https://fb.quip.com/vyTWAgGZSA2Z

This syncs configerator changes from D40677044 and updates our code so that WAL config now takes a sharded DB instead of unsharded. The code for dealing with sharded connections was already added on D40673033, this is just the config to enable it.

For now this is not enabled anywhere. The plan is to:
- Test it locally with locally built binaries
- Move a small-ish repo
- Move everything

This is once we have full feature parity, which is still not done (things like Scuba logging and scrub blobstores are missing)

Differential Revision: D40675512

fbshipit-source-id: 70f74a53dbf10eadc73ce9e210ec7719f866e30a
2022-11-03 15:12:55 -07:00
Mark Juggurnauth-Thomas
50d5431ac2 update repo configuration
Summary: Update repo configuration with latest format from configerator.

Reviewed By: yancouto

Differential Revision: D40600540

fbshipit-source-id: be725db2f96793f5a76d9caf5b4896c7c4fbfcae
2022-10-25 05:47:41 -07:00
Aida Getoeva
375e37a307 wal multiplex: define new config
Summary:
This diff declares a new config for the WAL multiplexed blobstore. It is different from the current multiplex in the way it defines write/read quorums.

The main reason for a separate config is ability to iteratively switch repos and different parts of the Mononoke tools from the old multiplex to the new one.

Reviewed By: yancouto

Differential Revision: D40108825

fbshipit-source-id: 9dae447557702474b6427ad247164a879da90861
2022-10-21 12:24:33 -07:00
David Tolnay
0be906fba0 Update to async-trait 0.1.58
Summary: This release makes async trait methods work better with rust-analyzer's "go to definition" and other IDE functionality.

Reviewed By: zertosh

Differential Revision: D40532047

fbshipit-source-id: 1871d1819ebe1aab0846b0135f051c45e6e8821b
2022-10-19 17:35:20 -07:00
David Tolnay
66d5a59ec1 Update ref-cast to 1.0.12
Summary:
Release notes:
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.7 (uninteresting)
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.8 (uninteresting)
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.9 (uninteresting)
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.10 (support for PhantomPinned)
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.11 (support for private inner types, private casts, and const casts)
- https://github.com/dtolnay/ref-cast/releases/tag/1.0.12 (bugfix)

Reviewed By: zertosh

Differential Revision: D40308777

fbshipit-source-id: 77debe6fa4b247749421e07363968f3fde798451
2022-10-12 14:46:30 -07:00
Mark Juggurnauth-Thomas
21f557f914 update config definition for update logging
Differential Revision: D40028571

fbshipit-source-id: c998eeaeb5d7a389e05dbf90aa0c0a687a05ce58
2022-10-10 05:52:17 -07:00
Andres Suarez
25bec96f4c update to rust 1.64.0
Summary: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html

Reviewed By: diliop, dtolnay

Differential Revision: D39825734

fbshipit-source-id: 4a789f2c24707fbc6a14b506448d405d5a60a53d
2022-09-27 15:18:58 -07:00
Gustavo Andrade Do Vale
dfc568ff36 Changing the config to make the land service client work
Summary:
It (1) adds the repo in the Land Service, (2) includes Remote Land Service and remote land service with local fallback, (2) get the address from tier or host and calls the client in the unbundle processing

The Static analysis failed in the FBTHRIFTCOMPAT1 because i added a new field in the land_changesets method in the impl LandService (land_service_impl.rs). It does not break anything since we do not have the server in production. I mean, changing the id does not influence on previous versions of the server since there is no land service server in production.

Reviewed By: yancouto

Differential Revision: D39553570

fbshipit-source-id: bb1f09c2ab2c111734b9026109fc39e14c514516
2022-09-22 04:28:36 -07:00
Jan Mazur
351cc8e31d add repo_info method
Summary: I will use this to correctly infer scm_type in Hack's scmquery-proxy client library.

Differential Revision: D39492898

fbshipit-source-id: 4d9aafcb88f75b20260d4212bae70495efca22d5
2022-09-21 07:56:02 -07:00
CodemodService Bot
4e2da41f81 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D39613155

fbshipit-source-id: beb05fafc92698470a75cb879520800bf76789ef
2022-09-19 03:05:52 -07:00
Clara Rull
e8515dcfe9 Delete leftover fastreplay bits
Summary: Most of fast replay was removed in D34073952 (a9eaa380fe) but I found some more code, so delete that

Reviewed By: HarveyHunt

Differential Revision: D39547680

fbshipit-source-id: b35850621b3d37b939a1a44db7926f52d583326a
2022-09-16 09:48:15 -07:00
CodemodService Bot
42a00c4c97 Daily common/rust/cargo_from_buck/bin/autocargo
Reviewed By: krallin

Differential Revision: D39569357

fbshipit-source-id: 2af1bd24c48207f904a2f6f0094348bddaa15d52
2022-09-16 02:38:22 -07:00
David Tolnay
e747fc4585 third-party/rust: Revert D39418421 "unpin thiserror"
Summary: D39418421 (a1593af094) prematurely upgraded `thiserror`. Various projects in fbcode use nightly features including std::backtrace but the current fbcode Rust toolchain is 1.63.0, in which the backtrace API is different from the API of the latest nightlies.

Reviewed By: quark-zju

Differential Revision: D39562441

fbshipit-source-id: d1f8a993ec776cf82b1736b242bd4466def21230
2022-09-15 17:20:40 -07:00
Yan Soares Couto
f943d1a985 Add WaitForReplication with configurable config
Summary: This adds a wrapper that knows how to wait for replication of xdb blobstore and sync queue, and for that uses the configerator config added on D39387517, so that this can be hot-reloaded.

Reviewed By: RajivTS

Differential Revision: D39387650

fbshipit-source-id: 548f99bc1b0b3634c8b8a6fb9ea7815edb41d3e4
2022-09-14 09:41:12 -07:00
Edwin Smith
a1593af094 unpin thiserror
Reviewed By: bolinfest, zertosh

Differential Revision: D39418421

fbshipit-source-id: 2f0246f190403a6f481e8803834174f229c0849a
2022-09-13 07:15:29 -07:00