A Scalable, User-Friendly Source Control System.
Go to file
Harvey Hunt 1601e218c6 mononoke: Update multiplexedblob logging to include key and fix error logging
Summary:
Change the multiplexed blobstore logging to log the blobstore key.

Also, fix the get() method to log errors to scuba (which it wasn't before!).

Further, refactor the code to remove env parsing for tupperware information and also switch
to using ScubaSampleBuilder. This means that the common server information can
be stored once and then cloned each time we log, rather than iterating through
a vec of server information each time we want to log.

Additionally, using ScubaSampleBuilder means that we don't need to pass in an Option<ScubaClient>,
cleaning up the code a little bit.

Reviewed By: StanislavGlebik

Differential Revision: D17368779

fbshipit-source-id: 0896962cdbd37912fc6f23a5e541e10cea90fa0e
2019-09-16 02:52:51 -07:00
apiserver Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
async-compression Delete lines of the form "use [a-z_]+;" 2019-09-10 15:06:19 -07:00
asyncmemo Apply rustfmt to all rust files 2019-07-10 19:36:32 -07:00
benchmark Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
blobimport_lib/src mononoke: make blobimport capable of prefixing bookmarks 2019-09-11 03:19:38 -07:00
blobrepo Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
blobrepo_utils Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
blobstore mononoke: Update multiplexedblob logging to include key and fix error logging 2019-09-16 02:52:51 -07:00
blobstore_sync_queue Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
bonsai_hg_mapping Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
bonsai_utils Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
bookmarks Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
bundle2_resolver Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
bytes-ext rust/thrift: Remove dependency of thrift runtime on folly 2019-07-12 18:09:34 -07:00
cache_warmup/src mononoke: rename Manifest/Entry to HgManifest/HgEntry 2019-08-20 01:12:49 -07:00
changesets Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
cmdlib/src Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
cmds Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
commit_rewriting/synced_commit_mapping Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
common Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
derived_data/src Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
failure_ext Delete lines of the form "use [a-z_]+;" 2019-09-10 15:06:19 -07:00
filenodes Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
filestore/src Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
futures-ext Delete lines of the form "use [a-z_]+;" 2019-09-10 15:06:19 -07:00
hgcli Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
hgproto Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
hook_tailer Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
hooks Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
lfs_import_lib/src move blobs loading logic to merucrial/types/blobs 2019-08-27 04:25:53 -07:00
lfs_server/src Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
manifest Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
mercurial Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
metaconfig Delete lines of the form "use [a-z_]+;" 2019-09-10 15:06:19 -07:00
mononoke_api/src Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
mononoke_types Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
netstring rust: Remove extern crate from common/rust 2019-07-10 11:58:48 -07:00
phases Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
py_tar_utils move tar_utils.py from update_rust into an open sourceable location 2017-09-14 13:52:23 -07:00
reachabilityindex Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
ready_state/src Delete extern crate lines 2019-09-11 22:01:58 -07:00
repo_client Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
revset Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
server Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
sshrelay Delete extern crate lines 2019-09-11 22:01:58 -07:00
tests Replace *fbinit::FACEBOOK with #[fbinit::main] 2019-09-13 20:17:29 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -07:00
.rlsconfig mononoke: add a .rlsconfig 2019-07-04 02:00:09 -07:00
.travis.yml Add travis-CI integration by adding .travis.yml file. 2018-07-26 10:09:32 -07:00
Cargo.toml mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
CONTRIBUTING.md Initial commit 2017-07-27 18:00:19 -07:00
LICENSE Initial commit 2017-07-27 18:00:19 -07:00
packman.yml mononoke: add mononoke_exec helper script 2019-06-14 03:59:58 -07:00
README.md mononoke: simple useless change 2019-05-21 12:25:10 -07:00
rustfmt.toml Update version of rustfmt specified by .rlsconfig. 2019-08-28 13:14:53 -07:00

Mononoke

Mononoke is a next-generation server for the Mercurial source control system, meant to scale up to accepting thousands of commits every hour across millions of files. It is primarily written in the Rust programming language.

Caveat Emptor

Mononoke is still in early stages of development. We are making it available now because we plan to start making references to it from our other open source projects such as Eden.

The version that we provide on GitHub does not build yet.

This is because the code is exported verbatim from an internal repository at Facebook, and not all of the scaffolding from our internal repository can be easily extracted. The key areas where we need to shore things up are:

  • Full support for a standard cargo build.
  • Open source replacements for Facebook-internal services (blob store, logging etc).

The current goal is to get Mononoke working on Linux. Other Unix-like OSes may be supported in the future