Commit Graph

84865 Commits

Author SHA1 Message Date
Jun Wu
828384adfa config: further rename dynamicconfig to internalconfig
Summary:
See the previous change for context. This diff updates the rest of the internal
functions, modules to use the internalconfig name.

Reviewed By: muirdm

Differential Revision: D49881848

fbshipit-source-id: 439fc82f7c9345a79d7c6d32d0d0610556901505
2023-10-03 22:38:36 -07:00
Jun Wu
64700cefc2 hgcommands: rename {,dump}dynamicconfig to {refresh,dumpinternal}config
Summary:
Per discussion on Aug 28, we'd like to rename dynamicconfig to internalconfig
to better reflect its actual features (Meta-internal static + dynamic + remote
configs). See also the `mode.rs` in D48042830.

The `dynamicconfig` command has effects writing files. Rename it to
`refreshconfig` to emphasize the effects.

The `dumpdynamicconfig` command only writes to stdout. So keep its "dump"
name but rename "dynamic" to "internal".

Reviewed By: muirdm

Differential Revision: D49881549

fbshipit-source-id: 0c3bb9caf6ea91ae7fe624e199cd3355244489e0
2023-10-03 22:38:36 -07:00
Open Source Bot
e8fb75f7d5 Updating submodules
Summary:
GitHub commits:

311e326ec3
5639861ff9
06e8bc10c7

Reviewed By: zpao

fbshipit-source-id: 2b8e4c19aeb28d0b523d7c7da9f4dd4552eb5f5b
2023-10-03 19:32:42 -07:00
Jun Wu
b7302632be alias: mark some common aliases non-legacy
Summary:
People with muscle memories would be a bit surprised that certain commands no
longer work with `sl`. By moving them back from `legacyaliases` to `aliases` the
migration from `hg` to `sl` could be more smooth.

Reviewed By: zzl0

Differential Revision: D49879280

fbshipit-source-id: 20c747d7c44c1c53a89fc425187eb2280134a62d
2023-10-03 18:32:08 -07:00
John Elliott
fbc906b3cc Refactor HgDatapackStore batch fetch code
Summary: In previous diffs the amount of code that was duplicative grew. This diff, refactors that duplicative code into a single method.

Reviewed By: kmancini

Differential Revision: D49753337

fbshipit-source-id: 34e5c5f132fcb4fa36754bad96b4277fcce9c08e
2023-10-03 18:16:39 -07:00
John Elliott
9c6dcd6233 Update HgDatapackStore to handle duplicate blob metadata requests
Summary:
As part of the project to remove HgImporter (aka `hg debugedenimporthelper`) it was discovered that we present duplicate keys to the EdenAPI when making batched requests - https://fburl.com/scuba/edenfs_events/owb8b65e. This reults in the requests being failed in the `backingstore` library (to avoid being failed by Mononoke). When these batched requests fail - they fall back to using HgImporter and fetch each object one at a time.

This diff addresses the batching of blob metadata. It creates a map of unique object ids to vectors of requests. In most cases the vector is size 1.

With the help of chadaustin, we were able to root cause why duplicate requests are submitted to  EdenAPI. From Eden's POV, each individual file and directory are different and identified by a different hash. From Mononoke's POV, content (tree or blob) that contain the exact same bytes are the same regardless of where they are in a repo. For this reason, it is possible (somewhat common) to create a batch of requests that contain the same proxy hash to be submitted to EdenAPI and the solution put in place here is the correct one - identifying a set of duplicates, submitting only one hash for the set, and fulfilling all the set's promises when completed.

This diff and subsequent diffs also are increasing the amount of duplicate code between getBobBatch, getBlobMetadataBatch and getTreeBatch. This will be address in subsequent diffs - see T165043385.

Reviewed By: kmancini

Differential Revision: D49717032

fbshipit-source-id: cb1d18dc038dd2c4672313eb1433dd94d5bdd506
2023-10-03 18:16:39 -07:00
John Elliott
6abee9e9bb Update HgDatapackStore to handle duplicate tree requests
Summary:
As part of the project to remove HgImporter (aka `hg debugedenimporthelper`) it was discovered that we present duplicate keys to the EdenAPI when making batched requests - https://fburl.com/scuba/edenfs_events/owb8b65e. This reults in the requests being failed in the `backingstore` library (to avoid being failed by Mononoke). When these batched requests fail - they fall back to using HgImporter and fetch each object one at a time.

This diff addresses the batching of trees. It creates a map of unique object ids to vectors of requests. In most cases the vector is size 1.

With the help of chadaustin, we were able to root cause why duplicate requests are submitted to  EdenAPI. From Eden's POV, each individual file and directory are different and identified by a different hash. From Mononoke's POV, content (tree or blob) that contain the exact same bytes are the same regardless of where they are in a repo. For this reason, it is possible (somewhat common) to create a batch of requests that contain the same proxy hash to be submitted to EdenAPI and the solution put in place here is the correct one - identifying a set of duplicates, submitting only one hash for the set, and fulfilling all the set's promises when completed.

This diff and subsequent diffs also are increasing the amount of duplicate code between getBobBatch, getBlobMetadataBatch and getTreeBatch. This will be address in subsequent diffs - see T165043385.

Reviewed By: kmancini

Differential Revision: D49707255

fbshipit-source-id: f176b785e74e71a2d13865397e9023ce538e928c
2023-10-03 18:16:39 -07:00
John Elliott
18a8aec9d7 Update HgDatapackStore to handle duplicate blob requests
Summary:
As part of the project to remove HgImporter (aka `hg debugedenimporthelper`) it was discovered that we present duplicate keys to the EdenAPI when making batched requests - https://fburl.com/scuba/edenfs_events/owb8b65e. This reults in the requests being failed in the `backingstore` library (to avoid being failed by Mononoke). When these batched requests fail - they fall back to using HgImporter and fetch each object one at a time.

This diff addresses the batching of blobs. It creates a map of unique object ids to vectors of requests. In most cases the vector is size 1.

With the help of chadaustin, we were able to root cause why duplicate requests are submitted to  EdenAPI. From Eden's POV, each individual file and directory are different and identified by a different hash. From Mononoke's POV, content (tree or blob) that contain the exact same bytes are the same regardless of where they are in a repo. For this reason, it is possible (somewhat common) to create a batch of requests that contain the same proxy hash to be submitted to EdenAPI and the solution put in place here is the correct one - identifying a set of duplicates, submitting only one hash for the set, and fulfilling all the set's promises when completed.

This diff and subsequent diffs also are increasing the amount of duplicate code between getBobBatch, getBlobMetadataBatch and getTreeBatch. This will be address in subsequent diffs - see T165043385.

Reviewed By: kmancini

Differential Revision: D49663711

fbshipit-source-id: 8f08b1e577c791550f446f86ddf301721b9587bf
2023-10-03 18:16:39 -07:00
Zhaolong Zhu
dde8296cfd makefile: set 'HGNAME' env variable when running 'make oss'
Summary:
before

```
$ make oss
...
rm -f sl
cp build/scripts-3*/sl sl
cp: build/scripts-3*/sl: No such file or directory
make: *** [local] Error 1
```
after

```
...
rm -f sl
cp build/scripts-3*/sl sl
```

Reviewed By: muirdm

Differential Revision: D49871832

fbshipit-source-id: ecbd083f5187b6fb0f0c4e640d732f336ef2cb30
2023-10-03 17:33:41 -07:00
Open Source Bot
d78dea6466 Updating submodules
Summary:
GitHub commits:

c4306fde3e
2d301c8e7f
40b618f234
6844f13da7
af0d9618d7
6fa43cd360
181762aa3b

Reviewed By: zpao

fbshipit-source-id: 408a38a2440daa95cb4845efdbd382ef5833703b
2023-10-03 16:47:01 -07:00
Genevieve (Genna) Helsel
73935d5a54 thread ObjectFetchContext to HgDatapackStore
Summary: In order to pass the requestInfo map to deeper layers, thread the Thrift layer `ObjectFetchContext` to `HgDatapackStore`. This is not consumed anywhere yet, but will passed to the sapling_backing_store in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (sapling and edenfs to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49795940

fbshipit-source-id: 67b2f703caae403f9d93fcb010b810a61437017d
2023-10-03 15:50:14 -07:00
Genevieve (Genna) Helsel
9e31c077e1 thread ObjectFetchContext through importTreeManifestImpl
Summary: In order to pass the `requestInfo` map to deeper layers, thread the Thrift layer `ObjectFetchContext` in to `HgBackingStore` to `importTreeManifestImpl()` . This is not consumed anywhere yet, but will passed to the `sapling_backing_store` in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (`sapling` and `edenfs` to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49718778

fbshipit-source-id: 7296319b220cf75cee5ca820c5cc4ce1efacfae2
2023-10-03 14:57:19 -07:00
Genevieve (Genna) Helsel
05a74852b3 thread ObjectFetchContext through importManifestForRoot
Summary: In order to pass the `requestInfo` map to deeper layers, thread the Thrift layer `ObjectFetchContext` to `BackingStore::importManifestForRoot`. This is not consumed anywhere yet, but will passed to the `sapling_backing_store` in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (`sapling` and `edenfs` to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49718772

fbshipit-source-id: 0249afe827da68f2916976c180844e52a0d3df0b
2023-10-03 14:57:19 -07:00
Open Source Bot
eb0be1a156 Updating submodules
Summary:
GitHub commits:

72f3014baa
68f12569f4
260fe10714
37797670d1
ef025990f9

Reviewed By: zpao

fbshipit-source-id: 61f58b50d71f42981c7701f4e1f36ca06ea7674f
2023-10-03 14:50:49 -07:00
Genevieve (Genna) Helsel
51670c5bfa thread ObjectFetchContext to StatsFetchContext via DiffContext
Summary: In order to pass the `requestInfo` map to deeper layers, thread the Thrift layer `ObjectFetchContext` to `DiffContext` and `StatsFetchContext`. This is not consumed anywhere yet, but will passed to the `sapling_backing_store` in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (`sapling` and `edenfs` to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49716042

fbshipit-source-id: b5df9754058e1f1585954ff6c25bbafa9aa820c1
2023-10-03 14:02:07 -07:00
Chad Austin
c8718fc11b remove the dead HgProxyHash::sha1
Summary: This was a remnant of the old HgProxyHash scheme.

Reviewed By: kmancini

Differential Revision: D49753911

fbshipit-source-id: 9883c2015f0c9d660122ff3bfdf2efff88aa00f3
2023-10-03 12:24:41 -07:00
Genevieve (Genna) Helsel
d6a9c0b3fe thread ObjectFetchContext to CheckoutContext
Summary: In order to pass the `requestInfo` map to deeper layers, thread the Thrift layer `ObjectFetchContext` to `CheckoutContext`. This is not consumed anywhere yet, but will passed to the `sapling_backing_store` in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (`sapling` and `edenfs` to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49716030

fbshipit-source-id: 7b079e554711ec610dd919243c7e459b2737fa48
2023-10-03 12:10:14 -07:00
Mark Juggurnauth-Thomas
2d2b62ba29 request_info: use Rust naming conventions for ClientEntryPoint
Summary: Rust is [opinionated](https://rust-lang.github.io/api-guidelines/naming.html) about the case of enum values.  Change this type so that its values match.

Reviewed By: quark-zju

Differential Revision: D49782706

fbshipit-source-id: 4906729a7fe0fcd6e4618cd4b6c139a30ec2078a
2023-10-03 11:55:38 -07:00
Mark Juggurnauth-Thomas
ef37767b4b derivation_worker: log client request info to scuba
Summary: Add logging of client request info objects to scuba in the derviation worker.  This requires us to stop using a single context object, and instead construct a new one for each request.  For now we just create a new client info.  We will accept one from the derived data service in a later diff.

Reviewed By: RajivTS

Differential Revision: D49743404

fbshipit-source-id: 68b16b265593a8a4f487976f96e4d3e62904b543
2023-10-03 11:55:38 -07:00
Mark Juggurnauth-Thomas
6d968f6e6d clientinfo: derive more traits
Summary: Make client info objects comparable.

Reviewed By: zzl0

Differential Revision: D49743402

fbshipit-source-id: 9ec4e706d08f51d8ce0733b88c2b0251bae5f60a
2023-10-03 11:55:38 -07:00
Mark Juggurnauth-Thomas
483f4f7462 clientinfo: rename ClientInfo::into_json and add ::from_json
Summary:
The naming conventions for Rust are that `into_X` methods usually take `self` by value.  A method that takes `&self` and produces something else is usually termed `to_X`.  Make this change for `ClientInfo`.

Additionally add a `from_json` method so we can easily parse it, too.

Reviewed By: quark-zju

Differential Revision: D49743401

fbshipit-source-id: 1f40e123eb7c4945ab6cdd069c991f3b54aef130
2023-10-03 11:55:38 -07:00
Mark Juggurnauth-Thomas
43c32f5751 derivation_queue: add enqueue time and log time spent in queue
Summary:
Now that we can pass additional information from the derived data service to the derivation workers, start by passing the enqueue time and logging the approximate time spent on the queue.

Note that this is approximate as we rely on the clocks on the derived data service and derivation workers being in sync.

Reviewed By: mitrandir77

Differential Revision: D49689667

fbshipit-source-id: 86c09bc8c8800f10cb25c73831619bb7f5ee3bfe
2023-10-03 11:55:38 -07:00
Zhaolong Zhu
990bbdfea6 debugger: catch more generic ImportError instead of ModuleNotFoundError
Summary:
'ipdb' is a nice to have feature, import related errors should not
break the system.

Reviewed By: quark-zju

Differential Revision: D49868343

fbshipit-source-id: caa7767352f1412b7e0531416e0778dcea03f0bf
2023-10-03 11:14:20 -07:00
Xavier Deguillard
045b006b84 store: deduplicate BackingStore operations in ObjectStore
Summary:
One surprising behavior of the ObjectStore is that it leaves deduplication of
get operations to the BackingStore, the side effect is that all the work
performed between the ObjectStore to the deduplication logic might get
duplicated.

For instance, the LocalStoreCachedBackingStore will call into the underlying
BackingStore and then cache the result to the LocalStore. In the case where
concurrent operations are done for the same ObjectId, the result will be stored
several times to the LocalStore.

Taking an extreme example, calling the Thrift API `getSHA1` with the same path
10k times will force the all the Trees all the way to the final path to be
written potentially 10k times to the LocalStore.

Several solutions can be taken to fix this. An obvious one would be to let the
underlying BackingStore bubble up when the operation was deduplicated and not
perform LocalStore caching, but unfortunately this ignores the case where data
was available in local caches and thus not duplicated. Another potential
solution would be to do some deduplication at the `getSHA1` level, this would
unfortunately be a very ad-hoc solution that would need to be done for
getBlake3 and other Thrift calls.

The solution taken in this diff is to simply deduplicate the BackingStore
operations. The main downsides being the overhead of the deduplication map as
well as the inability to priority boost fetches.

Another benefit of this diff has to do with performance and memory. Let's
consider the case where `getSHA1` is called on 1M paths, all of which under a
common directory P. The Tree for P is neither present in Mercurial's caches,
nor in the LocalStore. In that scenario, the `getSHA1` Thrift handler will
trigger the fetch of P which will quickly complete and thus be present in
Mercurial's caches, but due to the use of `deferValue` in the
LocalStoreCachedBackingStore, the Tree for P will not be cached in the
LocalStore until the `getSHA1` Thrift call returns. At this point, all the
subsequent paths will hit the Mercurial cache, allocate a new Tree, and get
blocked in the deferValue mentioned above: the Tree for P may end up being
duplicated in memory many thousands of time, and depending on how big that Tree
is, EdenFS may need to allocate several GB of memory to hold these.

Switching the deferValue to use ImmediateFuture will be done in a subsequent
diff.

Reviewed By: jdelliot

Differential Revision: D48925204

fbshipit-source-id: ab2f6cce1e868b0d80b27328d99a62dae04ec3dd
2023-10-03 10:34:56 -07:00
Max 👨🏽‍💻 Coplan
b5afbbef0b fix(build): correctly set target-specific variable values (#741)
Summary:
fix(build): correctly set target-specific variable values
Previously, the `HGNAME` and `OSS` variables were not being set correctly when
building with `make oss`.  In my version of GNU Make on Ubuntu 22.04:
```
GNU Make 4.3
Built for x86_64-pc-linux-gnu
```
instead of the `OSS` variable being set to `true` and `HGNAME` being set to
`sl`, the `OSS` variable was being set to `true HGNAME=sl`. This was causing
the eden binary to be built with the default `HGNAME` value of `hg`.

Here is a minimal example of the issue:

```makefile
HG_NAME = hg
oss: OSS=true HG_NAME=sl
oss: local

local:
	fuzic "OSS is $(OSS)"
	fuzic "Building for $(HG_NAME)"
```

On my machine `make oss` prints

```
OSS is true HG_NAME=sl
Building for hg
```

However,

```makefile
HG_NAME = hg
oss: OSS=true
oss: HG_NAME=sl
oss: local

local:
	fuzic "OSS is $(OSS)"
	fuzic "Building for $(HG_NAME)"
```

prints

```
OSS is true
Building for sl
```

Pull Request resolved: https://github.com/facebook/sapling/pull/741

Test Plan:
1. On Ubuntu 22.04 and GNU Make 4.3, build sapling with `make oss`
2. should see an error like

```bash
running build_mo
rm -f hg
cp build/scripts-3*/hg hg
cp: cannot stat 'build/scripts-3*/hg': No such file or directory
make: *** [Makefile:85: local] Error 1
```

3. apply this patch and repeat step 1
4. `sl` should build successfully

Reviewed By: quark-zju

Differential Revision: D49870741

Pulled By: zzl0

fbshipit-source-id: f31017fc647167a17871d46712f91355b4ce5a68
2023-10-03 10:08:42 -07:00
Haitao Mei
3902258646 GC - Log total storage footprint
Summary: This diff allows the GC to log the total storage footprint for each run. This allows us to find out the storage footprint changes along with the time easier.

Reviewed By: YousefSalama

Differential Revision: D49864056

fbshipit-source-id: c5a9117f8883e0ac696d3bd9646dc3a0958799e2
2023-10-03 08:16:21 -07:00
Gustavo Galvao Avena
dd6ae668f0 Change log from info to debug
Summary:
I noticed a lot of these logs when running gitexport for larger directories...
This can be printed `O(# of commits)`, so I think it should probably be a `debug` instead of `info`.

Differential Revision: D49772392

fbshipit-source-id: e52c6e1be5fea0140e292656844a0e5b310c7291
2023-10-03 08:15:18 -07:00
Youssef Ibrahim
eae84fb344 fix clippy lint
Summary: shyteletubbies

Reviewed By: RajivTS

Differential Revision: D49865811

fbshipit-source-id: 3d4de17f18ce5aa0d86385c9d71e3086bc8b5725
2023-10-03 06:58:28 -07:00
Rajiv Sharma
9df07ceabb Add tag hash support in gitimport
Summary: This diff implements the necessary changes to ensure that when direct-`gitimport`ing a repo, the imported tags are recorded along with the tag hash of the Git object ID of the tag. Note that this just applies for direct `gitimport`. Support for `remote-gitimport` would be added in a follow up diff.

Reviewed By: mzr

Differential Revision: D49805885

fbshipit-source-id: 18502476298acaf9f04ab76c9de9f395018b9247
2023-10-03 03:08:36 -07:00
Rajiv Sharma
b14fd5c04b Update create_git_tag endpoint to allow for tag hash
Summary: `remote-gitimport` makes use of `scs` to record git tags at Mononoke end. This diff updates the parameter type for the `create_git_tag` endpoint to allow for specifying the hash of the git tag being created. It is optional since the callers will be updated later to provide the tag hash and meanwhile a none value will be used.

Differential Revision: D49805555

fbshipit-source-id: 25c295183cdfdd2259add84a79518a106f210e5b
2023-10-03 02:55:43 -07:00
Rajiv Sharma
c15ec048e2 Update BonsaiTagMapping facet to handle tag hash
Summary: In the previous diff, the schema of the `bonsai_tag_mapping` table was modified to accomodate the hash of the Git tag object. This diff updates the logic in the `bonsai_tag_mapping` crate to handle the hash while inserting and retrieving entries. It also changes the `add` behavior to `add_or_update` behavior to ensure that the object corresponding to the tag-name can be modified since at the Git end the user can delete and recreate the same name tag but with different properties.

Differential Revision: D49804791

fbshipit-source-id: 8b6776d538dabea9ada1ad26d7c9269010b35652
2023-10-03 02:55:43 -07:00
Mark Juggurnauth-Thomas
b1b3a33c71 scsc: use client factory macros for faster compile times
Summary: The client factory macros for servicerouter, thrift and x2p clients compile faster.  Switch to them instead.

Differential Revision: D49741990

fbshipit-source-id: d0c6873b67c818369b5cfc68b65d8db2de2dbc02
2023-10-03 02:41:18 -07:00
Open Source Bot
a1969d2ac6 Updating submodules
Summary:
GitHub commits:

460fc81b51
89f7da894d
978f82dd75

Reviewed By: zpao

fbshipit-source-id: f5449fc880e58b0512ae1810029c7d462bc10fab
2023-10-02 22:56:08 -07:00
Open Source Bot
58c25bf45c Updating submodules
Summary:
GitHub commits:

01c7ded6e8
1c16cb2aca
97f6f475bc
3b70b0f419

Reviewed By: zpao

fbshipit-source-id: efdd72c28fb25b0b02c561325f7ade31c9a3e0dc
2023-10-02 19:34:49 -07:00
Genevieve (Genna) Helsel
db469177f0 set ClientRequestInfo in ObjectFetchContext requestInfo
Summary: If set and non-empty, sets the `ClientRequestInfo` fields in `ObjectFetchContext`'s requestInfo map. This is not consumed anywhere yet, but will passed to the `sapling_backing_store` in follow up diffs. This is part of a broader effort to thread a common client identifier from scm clients (`sapling` and `edenfs` to Mononoke)

Reviewed By: jdelliot

Differential Revision: D49716011

fbshipit-source-id: 1de0044f9c516c9deb4ef82ff269a3909d87a347
2023-10-02 18:40:09 -07:00
Jun Wu
21e03dc4b3 revlog2: raise on large repos
Summary:
The revlog2 code path is for legacy revlog compatibility. It does not scale to
large repos. So let's detect a large repo and just give up instead of sending
super massive requests to the server that never completes practically.

Reviewed By: sggutier

Differential Revision: D49847248

fbshipit-source-id: f8e110523a3d17c0f5ea8b485af98f06991919a4
2023-10-02 18:33:43 -07:00
Open Source Bot
ab93fa205e Updating submodules
Summary:
GitHub commits:

465eef597a
7bebd3036d
f49afe2833

Reviewed By: zpao

fbshipit-source-id: 1e96a66679ef07da2d8048927d3a4b048fd18c08
2023-10-02 17:31:50 -07:00
Saul Gutierrez
d01b8bf675 telemetry: log Rust commands backtrace
Summary: When there is an error with Python commands, we log the error trace as part of the telemetry data. This was not the case for Rust commands before this diff.

Reviewed By: quark-zju

Differential Revision: D49596872

fbshipit-source-id: 0a988a31e17d59914374c9426524420a12e0b274
2023-10-02 16:37:37 -07:00
Open Source Bot
9d42812c48 Updating submodules
Summary:
GitHub commits:

adce3c4920
582f952f17
7575b69554
eb1636f3c1
c4076ac4fb
93e1ebd224
f43ccfbecc
f4aaeec19e
7306ec915d
8f7d35fd64

Reviewed By: zpao

fbshipit-source-id: ead9c52c0acb336794d0da2a9600c5e29703d03f
2023-10-02 16:14:49 -07:00
Genevieve (Genna) Helsel
7f55482ece move ReCasBackingStore keys to ObjectFetchContext.h
Summary: I'm introducing more keys to `requestInfo`, so it would be beneficial if we could keep the currently used keys in a central place

Reviewed By: jdelliot

Differential Revision: D49792957

fbshipit-source-id: 833e244256c3264a3998a564d43e600bda689fca
2023-10-02 16:08:24 -07:00
Muir Manders
a5629bd787 Back out "config: show invalid/dropped config values"
Summary:
This change is unsound with the presence of config values in the "secondary" ConfigSet field.

Original commit changeset: c2b078718b7b

Original Phabricator Diff: D49274810

Reviewed By: sggutier

Differential Revision: D49841562

fbshipit-source-id: bc20538ab63e5c13b5b6fe1022eaa8a7e3f4d398
2023-10-02 13:56:57 -07:00
Open Source Bot
4b889537e1 Updating submodules
Summary:
GitHub commits:

7e1c9d0b82
8e8c2ae73b
ccac35c4f2
e2ffe82a64

Reviewed By: zpao

fbshipit-source-id: 7925d13944922e0024734afefe670e92ab05be07
2023-10-02 13:20:41 -07:00
Xinyi Wang
739fe72b23 add thrift definition
Summary: Add thrift definition as discussed in https://docs.google.com/document/d/1v7o7i7TZ9EUHCacofR1wvPvgvPGd6dkONlU7NRgLwxA/edit

Reviewed By: MichaelCuevas

Differential Revision: D49753843

fbshipit-source-id: b7089754d5a7ad581e3c5e2c7df5b085912b50a2
2023-10-02 12:06:39 -07:00
Jun Wu
911cc62108 buck: support long path on Windows
Summary:
By embedding the long path manifest (*and* set `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled` to `1`),
the buck built main binary can support long path on Windows.

Reviewed By: sggutier

Differential Revision: D49830369

fbshipit-source-id: 6c02244715f7e203c5d509dcdacfccc0ee6dd646
2023-10-02 11:22:36 -07:00
Saul Gutierrez
3a5cb457e8 ui: make crecord work on Windows again
Summary: The current Python hg builds against with Buck does not have the `curses` library, which makes the build fail. This diff adds an additional workaround to that, since it's actually possible to import `curses`, although it doesn't contain `curses.error`

Reviewed By: muirdm

Differential Revision: D49175651

fbshipit-source-id: 2485e362763463735caeace21bd53a24c3d5b4da
2023-10-02 11:11:27 -07:00
Muir Manders
d369a80c65 restack: fix SRC placeholder interaction w/ titles namespace
Summary:
Restack uses the "SRC" placeholder internally as a template variable to be expanded for each commit being rebased. This was colliding with the "titles" namespace if any draft commits contained "src" in their titles.

Do a quick fix to avoid fast-path scmutil.revsingle if the "dest" revset contains "SRC". Maybe a better fix is to keep user-specified and restack-specified revsets separate, but this fix seemed easier for now.

Reviewed By: quark-zju

Differential Revision: D49754265

fbshipit-source-id: f0440d85e0baa83b3639d848d094fc41a1b37922
2023-10-02 10:34:51 -07:00
Muir Manders
3ce839fbc0 config: show invalid/dropped config values
Summary:
If config values aren't in configs.allowedconfigs and their containing file isn't in configs.allowedlocations, we drop the config values. Previously there was no way to see them using "sl config", but now they will show up with an "(invalid - dropped)" source.

We achieve this by not actually deleting the config values. If the values are before the active value, we leave them since they will have no effect. If they are after the config value, we scooch them before the active value so they have no effect. If there is no active value, we append a dummy "unset" value so we can keep the invalid values.

Reviewed By: quark-zju

Differential Revision: D49274810

fbshipit-source-id: c2b078718b7bdebec825dc4c382e2b7f8c962988
2023-10-02 09:57:50 -07:00
Andres Suarez
e156551598 Remove unused once_cell dep
Reviewed By: diliop

Differential Revision: D49828821

fbshipit-source-id: c1c346dfe2fa0d19d2194796d21e194bb5502881
2023-10-02 09:51:18 -07:00
Open Source Bot
a46b7aa581 Updating submodules
Summary:
GitHub commits:

08f8e4243e
5e07a684c3

Reviewed By: zpao

fbshipit-source-id: f4fe940ca2f36ea2b9eb5c701ae30d693688ca07
2023-10-02 07:42:01 -07:00
Andres Suarez
81c3cc0068 Run autocargo
Summary:
Out-of-sync because of D49823397 and some recent codemods. Can't pin
point the exact blame right now. Got other things to do.

overriding_review_checks_triggers_an_audit_and_retroactive_review
Oncall Short Name: rust_foundation

Differential Revision: D49827056

fbshipit-source-id: 38d3949ee0c14e7c5388ee66efbda3940d7e0b52
2023-10-02 07:06:16 -07:00