Commit Graph

89567 Commits

Author SHA1 Message Date
Evan Krause
872be9fc30 Ensure platform-specific server message handling always has a RepositoryContext
Summary:
If a platform has its own dedicated message handling, we previously might pass in a null RepositoryContext. However, we are always be able to create a RepositoryContext from the information we have.

Constructing one will make it easier to use platform-specific messages, for example to determine more info about the cwd.

Reviewed By: quark-zju

Differential Revision: D57083697

fbshipit-source-id: 6d3f3cfcca1ae76d7075156e462187891fceaa08
2024-05-08 11:56:41 -07:00
Eric Kuecks
1131aa3da1 Update version
Summary: Pull in https://github.com/facebookexperimental/cxx/pull/13

Reviewed By: shayne-fletcher

Differential Revision: D57071061

fbshipit-source-id: 55a5c1a3ae4a4a64a90adc4abbbd37632dc97430
2024-05-08 10:07:56 -07:00
Clara Rull
6c2a73fbf8 Increase SCS server start timeout for integration tests
Summary:
`test-gitbundle-mononoke-remote-gitimport.t` is currently failing:

```
JustKnobs Rule Source WHOAMI_DEVICE_RAM could not be loaded. Failure: Reason: Failed to find fbwhoami field 'DEVICE_RAM'
```
However, this was just a warning, the real erorr is SCS_Server taking slightly longer to start:
```
+  SCS server did not start in 120 seconds, took 131
```
So I've increased the timeout.

The causes for startup increase have not been investigated

Reviewed By: mitrandir77

Differential Revision: D57099503

fbshipit-source-id: 0c4146e55419b50347dd968a5d003abbc0ee91e7
2024-05-08 06:24:19 -07:00
Jeremy Fitzhardinge
265ddb1c6b third-party/rust: update strum to 0.26
Summary:
Also add to no-std universe

Codemod EnumVariantNames -> VariantNames

Reviewed By: dtolnay

Differential Revision: D57085098

fbshipit-source-id: ead1511915a0fd3c145f23e30deb3268866185f5
2024-05-08 00:44:26 -07:00
Robert Grosse
1822a7c304 Fix typos in comments
Reviewed By: cfsmp3, lmvasquezg

Differential Revision: D57073944

fbshipit-source-id: b34670ab6e0d65d4a5b3e595e01d9d659630056f
2024-05-07 17:06:06 -07:00
Saul Gutierrez
232b1545b2 tests: add a target for running run-tests.py with EdenFS
Summary:
It's sometimes annoying to run EdenFS .t tests without having autofix for them, which is why this diff was created.

In order for EdenFS .t tests to run properly, some env vars have to be set. Ideally we would modify the existing `run_tests_py_eden` target, but the problem with this is that Buck doesn't allow Python binary targets to take env vars as input.

Reviewed By: zzl0

Differential Revision: D57010488

fbshipit-source-id: 9155f39c2ba479bf763a24075316b439453ab6e1
2024-05-07 14:54:14 -07:00
Saul Gutierrez
a308c0a519 tests: delete all configure modernclient from debugruntest tests
Summary: As of D56766291 these lines are no longer necessary since that's turned on by default, so let's delete them

Reviewed By: zzl0

Differential Revision: D57005745

fbshipit-source-id: 639b689aaf6e9223c601d266166878169fca5079
2024-05-07 14:54:14 -07:00
Saul Gutierrez
2e6cfdaac7 tests: enable amend extension by default
Summary: This extension should have been added to D56766291, but was accidentally deleted

Reviewed By: muirdm

Differential Revision: D57021765

fbshipit-source-id: f260fa6d47b1386d36fa1b2aa6a88226c74dbcbd
2024-05-07 14:54:14 -07:00
Srikrishna Gopu
0896625bf9 remove picking default boost for centos9
Summary:
As titled, remove picking system boost for centos9 oss builds.

We are seeing the following error (https://tracker.ceph.com/issues/54265) when building qsfp service with c++20 and on CentOS9. We need boost 1.77 or more to build with c++20.

Discussion: https://fburl.com/workplace/4u3glapv

Reviewed By: chadaustin

Differential Revision: D55758008

fbshipit-source-id: dae0bb5a70de3de2988032412eaafbd1b6d4e53d
2024-05-07 14:34:38 -07:00
Andres Suarez
c8f26f9d35 prefetch: Read patterns from stdin when FILE is -
Summary:
`eden prefetch` does not in fact read patterns from stdin. This diff
corrects the help message and adds support for reading patterns from
stdin when the file is `-`.

Went with `--pattern-file -` rather than just reading from stdin because
that would box in the stdin API to just this.

Reviewed By: genevievehelsel

Differential Revision: D57064448

fbshipit-source-id: 03e61c7b44ec7d2cbcc979c016d5b19a7cf45f0f
2024-05-07 14:31:43 -07:00
Muir Manders
f3d6410482 megarepo: fix xrepo diff resolution when xrepo tailer is lagging
Differential Revision: D56954510

fbshipit-source-id: 01ad5ee5f58d7b28ccc295aa2278523b36b4646b
2024-05-07 14:27:43 -07:00
Muir Manders
1e6a87db80 util: improve lrucachefunc to work with kw args
Summary:
Sort and append `**kwargs` to `*args` so we can cache based on named args as well.

Note that we don't know what the default args are, so:

```
# If you have
util.lrucachefunc
def foo(a, b=123):
  ...

# Both of these will actually invoke foo():
foo(a)
foo(a, b=123)
```

Reviewed By: quark-zju

Differential Revision: D56954509

fbshipit-source-id: ecf9d7ab8d9e17766a52154454398f005609ee7c
2024-05-07 14:27:43 -07:00
Jon Oh
7754f984a8 Fix fetch command
Summary:
Small bug in the fetch command where adding the '-v' flag will fetch the predictive prefetch even when turned off.

Discovered when testing the end to end flow

Reviewed By: genevievehelsel

Differential Revision: D56794816

fbshipit-source-id: e2c1484e7d565689be126ee54f62c148c8a8b8bc
2024-05-07 10:22:13 -07:00
Evan Krause
e45c95e09d Add "Clear commit message" button in fill commit message context menu
Summary:
Next to the "fill commit message" section in the commit-mode commit info view, add a dropdown button that lets you choose to clear the commit message. This is useful if you use the fill commit message button but want to go back and not have all of the fields filled in.

in the future, I suspect we'll add more fill methods like filling from a task/diff, and if so we may need to move some fill methods to this context menu as well for space savings.

Note: we only show this for "commit" mode because amend mode alredy has a "cancel" button to go back to the original message. But "cancel" doesn't really work for commit mode.

Reviewed By: zzl0

Differential Revision: D57013039

fbshipit-source-id: 201c6e380defd2f53fc67b6ef0309bcba829e163
2024-05-07 09:59:03 -07:00
Yedidya Feldblum
0904046ab1 bump repo ci to ubuntu-22.04
Summary:
X-link: https://github.com/facebook/folly/pull/2189

X-link: https://github.com/facebookincubator/zstrong/pull/782

Now that Ubuntu 24.04 LTS [has been released](https://ubuntu.com/blog/canonical-releases-ubuntu-24-04-noble-numbat), it is a suitable time to bump the version of Ubuntu used in CI to Ubuntu 22.04 LTS, which is the prior LTS.

Ubuntu 22.04 LTS ships with GCC 11.2, and is the first Ubuntu release to ship with a version of GCC that implements C++20 coroutines.

Reviewed By: chadaustin

Differential Revision: D57017204

fbshipit-source-id: ce5754e7dfc6cb066739bf164e725de8e21f8d24
2024-05-07 09:51:01 -07:00
Open Source Bot
d2e875a9f7 Updating submodules
Summary:
GitHub commits:

dcfc23e93f
fe93061166
5ab60cc44e
25426f4028
2cef74dd98
8e338869dc
db77a73529
01eced1fe2
ac2a111943
4eefca5d7a

Reviewed By: jurajh-fb

fbshipit-source-id: b50ac9bc052126ce38a3b9de0c4162b64a945af1
2024-05-07 09:32:45 -07:00
Muir Manders
d2f1b8942a rebase: show commit hashes are consistent after identical rebases
Summary:
Show that if date is the only thing that differs, duplicate rebases will produce the exact same commits.

Note that this requires tweakdefaults.rebasekeepdate=true so that we re-use the source commits' date instead of bumping the date to "now".

Reviewed By: quark-zju

Differential Revision: D56955920

fbshipit-source-id: 7378a736a4580370fa092014046aa5cf2fce342f
2024-05-07 09:14:30 -07:00
Liubov Dmitrieva
46af573356 address comment from D56937577
Summary: address comment from D56937577

Reviewed By: markbt

Differential Revision: D57050703

fbshipit-source-id: d1b0e521f564c21d6e618f6fffe08b6d5d2e71ea
2024-05-07 08:56:19 -07:00
Saul Gutierrez
2fdb103536 revisionstore: try to create parent directories
Summary: All these functions can fail if the parent directory doesn't exist, and it's probably better to just create the parent directories to prevent a number of commands from failing.

Reviewed By: zzl0

Differential Revision: D57019517

fbshipit-source-id: fa8a8639d643ee25c0859609fe0543e39ae7c3ec
2024-05-07 08:14:22 -07:00
Mark Juggurnauth-Thomas
716cef86e2 sorted_vector_map: bump version
Reviewed By: mitrandir77

Differential Revision: D56948971

fbshipit-source-id: 573f19815b7357fd8b8bb566d30a8aef78ce2e96
2024-05-07 06:28:02 -07:00
Liubov Dmitrieva
6a682207b3 implement fetches of the augmented trees via EdenApi
Summary: implement fetches of the augmented trees via EdenApi

Reviewed By: mitrandir77

Differential Revision: D56956167

fbshipit-source-id: ccc1081d0a4f8fc13a07bf5bf5c3cb7085247679
2024-05-07 06:07:09 -07:00
Liubov Dmitrieva
cd2dd49222 introduce code to load and store
Summary:
introduce code to load and store
HgAugmentedManifestEnvelope into blobstore

Reviewed By: mitrandir77

Differential Revision: D56937577

fbshipit-source-id: cd577dcd0d6521f62dc7a77d5e149302261f43ff
2024-05-07 06:07:09 -07:00
Liubov Dmitrieva
a01c6d688c introduce intermediate layer between AugmentedManifest and
Summary:
introduce intermediate layer between AugmentedManifest and
EdenApi Trees

Reviewed By: mitrandir77

Differential Revision: D56935739

fbshipit-source-id: f527dc6cc2f1ab4101e63c4b2d77e73e232476b0
2024-05-07 06:07:09 -07:00
Gustavo Galvao Avena
6b4a11e34c Move stats logger to cross_repo_sync::reporting module
Summary: Better to use it in `cross_repo_sync` library outside of `git_submodules` module.

Reviewed By: mitrandir77

Differential Revision: D56929931

fbshipit-source-id: ea9c59b3785e1d05e66b8d292878f5a7b1e057a2
2024-05-07 03:31:46 -07:00
Gustavo Galvao Avena
34055b5b29 Log correct submodule action when backsyncing
Summary:
As I mentioned in D56881703, we're currently ignoring the small repo's configured submodule action when backsyncing.

While this is not ideal, we also don't want to change this right now.

So I'm at least adding a warning log so that we're aware when this happens.

Reviewed By: mitrandir77

Differential Revision: D56826268

fbshipit-source-id: 5f7f60d8e558acffd22859260886a1fcafd89a60
2024-05-07 03:31:46 -07:00
Andrea Campi
d876996c51 Syntactic sugar to log memory stats for a method
Reviewed By: mitrandir77

Differential Revision: D56886668

fbshipit-source-id: 60306e9845c604b3584f665827f4d1e3fed16b70
2024-05-07 03:25:14 -07:00
Rajiv Sharma
b36ba1179b Fix for delta cycles in partial pull / fetch through Mononoke GRit server
Summary: When pulling the latest changes for `whatsapp/server` through `Mononoke GRit` server, we encountered an error which was essentially a result of a cycle included in the packfile. Git has weird set of conditions in which it allows cycles and certain other conditions in which it doesn't allow cycles. To avoid bumping into this problem in the future again, let's build in cycle-detection logic which prevents from sending objects like A and B where A is expressed as delta of B and B is expressed as delta of A.

Reviewed By: mitrandir77

Differential Revision: D56981007

fbshipit-source-id: dad6e11460531176b805d94c06f857377a850dcd
2024-05-07 03:11:41 -07:00
Rajiv Sharma
3ab7e2f70b Fix for git pull with tags in Mononoke GRit server
Summary:
As seen in the previous diff, when the request from the client includes tag Object Ids in the `WANTS` section, we just consider the commit pointed to by the tag and completely ignore the tag itself. As a result, the output tag stream sent as part of the server response does not include the requested tags. The changes in this diff ensure that every tag that matches either of the following constraint gets sent in the response to the client:
- If a tag points to any commit that is part of the response, then that tag gets sent
- If a tag is explicitly requested by the client through the `WANTS` section, then that tag gets sent

Reviewed By: mitrandir77

Differential Revision: D56980436

fbshipit-source-id: 5d92dff784e212ec71b6b78c9f50e0877731c8c1
2024-05-07 03:11:41 -07:00
Rajiv Sharma
a0a7a9129d Integration test highlighting failure during git pull with tag in GRit server
Summary:
The negotiation part of the git protocol involves the client specifying its `WANTS` and `HAVES` and the server realizing the set of objects to send to satisfy the client's need. The first version of the server expected only commit Object Ids as part of `WANTS` and as a result it failed straight away in the presence of tags. The current version of the server allows for tag Object Ids as part of `WANTS` but it converts it into commits pointed to by the tag. That works in the cases when the commit pointed to by the tag is part of the packfile being sent by the server.

If the packfile does not include the commit that the tag points to, then we completely omit sending the tag even though the client explicitly requested it. This integration test highlights that we do not support this behavior yet and fail with a fatal in such a case. I will fix this in a follow up diff along with an updated integration test.

Reviewed By: mitrandir77

Differential Revision: D56979846

fbshipit-source-id: 4cff34b4d5ba55a652b91d57ce5ac95a1ca0b162
2024-05-07 03:11:41 -07:00
Rajiv Sharma
cd3d2615b1 Update integration tests to use valid git pull
Summary:
All the integration tests related to `git pull` used it as `git pull https://hostname/repos/git/ro/repo.git`. This doesn't function as a standard pull, i.e. just `git pull`. [This SO post](https://stackoverflow.com/questions/48749715/what-does-git-pull-link-to-remote-do) explains the detailed difference but fundamentally using pull with a remote URL ends up using a default ref spec that works only for branches (i.e. `+refs/heads/*:refs/remotes/origin/*`). This makes us miss out tags from the server.

This diff updates the integration tests to make use of just `git pull` so that we pull all refs (heads and tags).

Reviewed By: mitrandir77

Differential Revision: D56979746

fbshipit-source-id: a309ef656dfb1e179cf342041729a9e5920539e6
2024-05-07 03:11:41 -07:00
Liubov Dmitrieva
6c1dbeeca4 introduce basic types
Summary: introduce basic types that mirrors thrift types

Reviewed By: mitrandir77

Differential Revision: D56932828

fbshipit-source-id: fdc0b2497e40b5fa4343c5b683f846e93ce8c8ca
2024-05-07 03:09:30 -07:00
Mark Juggurnauth-Thomas
3f3ddf85f3 add the option for log to use the committer date instead of the usual date
Summary:
In repositories imported from Git there are two dates: the author date and committer date.  Depending on whether they were imported into Mononoke first (which uses the same style as hg-git), or imported into Sapling directly, these dates are mapped differently.

In the cases where Mononoke did the import, we may want to configure repositories to prefer the committer date, rather than the author date, which is what is used by default.  Add a new config option `log.use-committer-date` which does exactly this.

We also extend the JSON format for `hg log` to include both author date and committer date if they are available.  This means tooling that knows specifically which one it wants can be modified to fetch exactly that.

Reviewed By: quark-zju

Differential Revision: D56941671

fbshipit-source-id: 0d68a333caf06b8b82e08b581f06df6394520992
2024-05-07 00:56:32 -07:00
Kaveh Ahmadi
3ee8be5d7b Add counter for RootTree and ManifestForRoot
Summary:
This diff adds a new private enum to differentiate between the different types of Trees that can be get from backing store.
 All `getTree()`, `getRootTree()`, and `importManifestForRoot()` at some point call `retryGetTree()` or `importTreeManifest()` to get Tree from backing store. This new enum is passed in the params then these two functions will know which type of Tree they are getting from baacking store. We will use it to collect correct metrics.

## Note
This doc explains all the SaplingBackingStore ODS counters/duration after this stack changes: https://docs.google.com/document/d/1o355e8JGvq3fBYFD738Jkx9tPSWzH4bmxcM8YRKMziU/edit?usp=sharing

Reviewed By: kmancini

Differential Revision: D56842474

fbshipit-source-id: 0699e215ba7d488ac2c2b873fb97ca331dc207f2
2024-05-06 16:21:47 -07:00
Shayne Fletcher
352a79c30c eliminate rerun_c dependence on brotli-decompressor
Summary:
the diff eliminates dependencies on brotli-3.3.4 and brotli-decompressor-2.3.5.

the reason is for the avoidance of duplicate symbols that result from combining targets that depend on `fbsoure//third-party/rust:brotli_decompression` (e.g. `rerun_c` via `ureq`) AND `fbsource//third-party/brotli:brotli_decode` (e.g. `fbsource//third-party/apache-arrow:arrow`).

with these changes in place then remove occurrences of the link flag `"/FORCE:MULTIPLE"` introduced by D56797954 and D56821592 to work around this problem.

Reviewed By: jdonald

Differential Revision: D56943460

fbshipit-source-id: b38d69503f6be85a2055a89da2a161d114030c4c
2024-05-06 15:12:46 -07:00
Peter Delevoryas
d7e01e93a4 Import pcics crate
Summary:
- This crate provides a parser for PCI configuration space
- Really useful for writing tools for PCI configuration space that don't just shell-out to `setpci`

Differential Revision: D56983535

fbshipit-source-id: 0407d9e0f856a9b7042f82180f32ee4aedd0436e
2024-05-06 14:44:41 -07:00
Luisa Vasquez Gomez
2c7dcd5dfb commit cloud: Use HgId instead of String for Changeset Ids
Summary: Per markbt suggestion previously on this stack (will update client diffs)

Differential Revision: D56905493

fbshipit-source-id: 9263e5a3863e7207900683ee15017f3830ddaa21
2024-05-06 14:31:53 -07:00
Luisa Vasquez Gomez
9e4a0b3de2 commit cloud: remote bookmarks: delete based on name, not commit
Summary: I skipped this during the update references impl.

Differential Revision: D56903500

fbshipit-source-id: 12e75b993ca6d40ff5c994125b6bf460b23420e4
2024-05-06 14:31:53 -07:00
Michael Cuevas
716c5ebe7a avoid crashing when invalid FilteredObjectIDs are parsed
Summary:
# Context

Genna discovered that passing junk to `eden debug blob` on a FilteredFS repo would cause the Eden daemon to crash. This is because `XCHECK_EQ()` eventually resolves to `XLOG(FATAL, ...)` if the equality check fails[1]. We don't actually want to crash in this case, since a user can pass non-sense to 'eden debug blob' whenever they'd like

# The Fix

We should just throw an invalid argument exception if the ID we get passed in looks like garbage. This causes the thrift call to fail instead of making the daemon crash.

In addition, I moved the `XCHECK()` lower in the function to be an `XDCHECK()` so that we only crash the daemon in debug mode (not production). This is fine, since that check is meant to be hit during development, not in produciton!

Reviewed By: genevievehelsel

Differential Revision: D56846354

fbshipit-source-id: 3623eb05ccff83b4186b7f4e4363fa769df872bd
2024-05-06 11:31:00 -07:00
Zhaolong Zhu
dd020e59bd context: fix the comment of isabsent()
Reviewed By: quark-zju

Differential Revision: D56937709

fbshipit-source-id: cd2be3434d23567a55101abd3c29d7d494dd9947
2024-05-06 10:18:26 -07:00
Chris Dinh
f3e464f0cf Add auto wire tests
Summary: Adds auto wire tests for suffix query

Reviewed By: liubov-dmitrieva

Differential Revision: D56833476

fbshipit-source-id: d40fa141cf4419cd74f62de2286b2e5bf5837764
2024-05-06 10:17:19 -07:00
Open Source Bot
cc76ca40ed Updating submodules
Summary:
GitHub commits:

26d4425779
e22b7cb4d7
d171298a02
eb09127798
2d675054fa
dd8552e9c7
a62bcf653c
885d00ca26
9afd7bd96f
c0b720448a

Reviewed By: jurajh-fb

fbshipit-source-id: 95e706dbb6246f924535eff1bc53194ef69d5cdb
2024-05-06 09:35:41 -07:00
Evan Krause
202490db3c Bump test timeout in CI
Summary: increase the timeout for jest tests in CI. We previously increased the `waitFor` timeout, but we shoudl also bump the general test timeout too.

Reviewed By: quark-zju

Differential Revision: D56954680

fbshipit-source-id: 65145914071d4452f0487e486e593ebf13f75aff
2024-05-06 09:35:01 -07:00
Saul Gutierrez
33b8c64e63 revsets: search Git diffs locally if phrevset.graphqlonly is set to False
Summary:
Even with the changes from D56443510 it's not enough to make Sapling look for
local Git commits in case there is a newer Phabricator version. Sapling commits
do not have this issue since they are backed up by commitcloud, so those usually
get autopulled if Phabricator's version is more recent than the local one.

This diffs changes that for Git repos, showing a warning telling users to use `jf get` to get the latest version since that error message should be more useful for them.

Reviewed By: muirdm

Differential Revision: D56447240

fbshipit-source-id: 54025ac7f330c629b3b804a3b9dc1a3013e29d83
2024-05-06 05:36:50 -07:00
Saul Gutierrez
65680619ef revsets: make Phabricator revsets work for the most part again for Git repos
Summary:
Some time ago Phabricator revsets were usable on Git repos, but seems like
recently something broke and it's not possible to use them for finding
local commits anymore, which this diff fixes. Additionally, this diff
makes it possible again to find public commits by Phabricator revsets,
which seems to have been broken for a much longer time.

There are two root causes for these issues:
- `remotefilelog.reponame` has the name of Git repos as `reponame` instead
of `reponame.git`, which in turn causes `sl` to error out with issues like
`abort: D123 is for repo foo/bar/baz.git', not this repo ('baz')`
(fixed in D56444313)
- The logic for resolving Git revisions from Phabricator was written 10 years
ago, and depends on using sshpeer which is not really supported anymore: D1458491

Reviewed By: muirdm

Differential Revision: D56443510

fbshipit-source-id: 14e176cac5de1216b1e170d0863d7b7c6382df59
2024-05-06 05:36:50 -07:00
Saul Gutierrez
71860e5cea revsets: better match Git repo names
Summary: Git repo names are not being properly compared with JSON results from Phabricator, causing various issues as explained in D56443510, which this diff fixes. This is however not enough for making Phabricator revsets work again, but that is done in D56443510

Reviewed By: muirdm

Differential Revision: D56444313

fbshipit-source-id: c646de21bfa5c6d0813f5d66977aa90f9f799908
2024-05-06 05:36:50 -07:00
Saul Gutierrez
c972eb859f config: try to better determine Git repo names
Reviewed By: muirdm

Differential Revision: D56655576

fbshipit-source-id: fb1d3295389061adbce8a5a3ff69574914f8dce7
2024-05-06 05:36:50 -07:00
Saul Gutierrez
2409cca46b tests: enable modernclient by default on debugruntest .t tests
Summary:
This makes most of our existing tests have the equivalent configs and files in the repo that adding `$ configure modernclient`. There are a few reasons for doing this:
1. This makes eventually migrating tests to be compatible with EdenFS considerably easier, especially if they don't have `configure modernclient` in them
2. This reduces overhead for creating new tests and makes it easier for test writers to use the recommended setup
3. This opens the path for doing arbitrary actions for setting up a test. Before this diff the best we could do was editing configs in `default_hgrc.py`, but this already does some file manipulation for all tests.
4. This allows modernizing only debugruntest tests, since Mononoke tests aren't really compatible with it right now and just enabling more modern files breaks a number of those tests. Also, the option for using more modern configs in our own test without breaking the Mononoke ones possible.

Reviewed By: muirdm

Differential Revision: D56766291

fbshipit-source-id: dfa4a34e9dcb2784610d77cfeaa629bb6dea492d
2024-05-06 05:31:55 -07:00
Open Source Bot
5cd4d589dd Updating submodules
Summary:
GitHub commits:

ea32c6fc43
12982bde21
00b4d3230d
df1b77cfce
cb160be632
a02ffa9522
f7d8d12c59
e02c93e670
906c4e890d

Reviewed By: jurajh-fb

fbshipit-source-id: 6d6fbf703080f53e727a8f988b1abe012da2dbe8
2024-05-05 09:33:25 -07:00
Open Source Bot
dbe657b51a Updating submodules
Summary:
GitHub commits:

2c1bcde2d4
1c51d35021
83ad0611d7
9f125c94e1
2517f47ae7
cb3a567fa1
b399400876
78dbdc21c7
55d4fd0441
eda275a0f3

Reviewed By: jurajh-fb

fbshipit-source-id: 007dbf88fdd05dcb2dfa45b1a2df849162e0784e
2024-05-04 09:34:15 -07:00
Kaveh Ahmadi
34ebf73eeb print blank for fetched source in start and queue events
Summary:
Now, the `SaplingBackingStore` know the source of each request. However, the sourced is available only for the finish event. The start and queue event doesn't know the source. In the last diff we used UNKNOW for these events. This diff changed the FetchedSource to a std::optional. Therefore for these events we don't need to populate it.
On the other hand, eden.thrift has a NOT_AVAILABLE_YET option. It chooses this option when the std::option doesn't have value.
The kFetchedSource map also update then if we have NOT_AVAILABLE_YET as the fetchedSource, it will give us a blank space character " " and the trace hg will print blank space char for start and queue events.

Reviewed By: kmancini

Differential Revision: D56942308

fbshipit-source-id: 732d5b4fd11cd2e9c5b8ff8e6dc1ec70bc262033
2024-05-03 18:29:19 -07:00