A Scalable, User-Friendly Source Control System.
Go to file
Thomas Orozco 6753522810 mononoke: allow running mononoke server without myrouter
Summary:
This updates the mononoke server code to support booting without myrouter. This required 2 changes:

- There were a few callsites where we didn't handle not having a myrouter port.
- In our function that waits for myrouter, we were failing if we had no myrouter port, but that's not desirable: if we don't have a myrouter port, we simply don't need to wait.

Arguably, This isn't 100% complete yet. Notably, RepoReadWriteStatus still requires myrouter. I'm planning to create a bootcamp task for this since it's not blocking my work adding integration tests, but would be a nice to have.

Speaking of further refactor, it'd be nice if we supported a `SqlConstructors::with_xdb` function that did this matching for us so we didn't have to duplicate it all over the place. I'm also planning to bootcamp this.

Reviewed By: farnz

Differential Revision: D15855431

fbshipit-source-id: 96187d887c467abd48ac605c28b826d8bf09862b
2019-06-18 07:52:22 -07:00
apiserver Use application/cbor MIME type for streaming CBOR responses 2019-06-14 22:14:13 -07:00
async-compression Convert //common/rust/async-compression:async-compression to Rust 2018 2019-05-23 00:09:32 -07:00
asyncmemo Convert //common/rust/asyncmemo:asyncmemo to Rust 2018 2019-05-22 01:00:42 -07:00
benchmark mononoke: fix broken build (racing diffs) 2019-05-21 12:25:53 -07:00
blobimport_lib/src mononoke: support non-publishing / non-pull_default Bookmarks 2019-05-30 07:14:32 -07:00
blobrepo Integration of SqlCensoredContentStore service 2019-06-14 02:02:04 -07:00
blobrepo_utils Convert scm/mononoke/blobrepo_utils to Rust 2018 2019-05-28 15:19:49 -07:00
blobstore Integration of SqlCensoredContentStore service 2019-06-14 02:02:04 -07:00
blobstore_sync_queue mononoke: do not panic if stream has ended 2019-05-21 12:25:53 -07:00
bonsai_hg_mapping mononoke: caching_ext: elide DB calls for no data 2019-06-04 05:16:52 -07:00
bonsai_utils Convert scm/mononoke/bonsai_utils to Rust 2018 2019-05-24 10:07:44 -07:00
bookmarks mononoke: Track dirty state of CachedBookmarksTransaction 2019-05-31 04:37:36 -07:00
bundle2_resolver add more traces 2019-06-17 05:13:11 -07:00
bytes-ext Convert //common/rust/bytes-ext:bytes-ext to Rust 2018 2019-05-22 01:13:28 -07:00
cache_warmup/src add more traces 2019-06-17 05:13:11 -07:00
changesets mononoke: changesets: get_many don't count no-op queries 2019-06-04 03:25:42 -07:00
cmdlib/src mononoke: remove unused db-address argument 2019-06-18 07:52:22 -07:00
cmds mononoke: admin: add bookmarks list command 2019-06-11 02:11:21 -07:00
common mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
failure_ext rust/common/failure_ext: use plain Box<dyn FnOnce()> 2019-06-17 16:55:20 -07:00
filenodes Convert scm/mononoke/filenodes to Rust 2018 2019-05-28 15:14:57 -07:00
futures-ext adds Mutex extentsion method .with 2019-05-31 09:28:54 -07:00
hgcli Convert scm/mononoke/hgcli to Rust 2018 2019-05-28 15:09:33 -07:00
hgproto tp2/rust: update to Rust 1.35.0 2019-05-28 14:28:48 -07:00
hook_tailer mononoke: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
hooks add more traces 2019-06-17 05:13:11 -07:00
mercurial tp2/rust: update to Rust 1.35.0 2019-05-28 14:28:48 -07:00
mercurial_bundles mononoke: create scratch bookmarks from B2xInfinitepush 2019-05-30 07:14:32 -07:00
mercurial_types update to Rust 1.34.0 2019-05-21 12:25:14 -07:00
metaconfig load limiter: add config option 2019-06-06 03:25:39 -07:00
mononoke_api/src mononoke: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
mononoke_types add benchmark for get_hg_from_bonsai_changeset 2019-05-21 12:25:51 -07:00
netstring rust/netstring: convert to Rust 2018 2019-02-12 08:43:24 -08:00
phases add ods stats for sql requests 2019-06-03 07:46:50 -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 mononoke: Rename Bookmark to BookmarkName 2019-05-21 12:26:02 -07:00
ready_state/src server: split server binary crate into 4 separate crates 2018-07-17 04:54:58 -07:00
repo_client mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
revset Convert scm/mononoke/revset to Rust 2018 2019-05-28 15:14:57 -07:00
server mononoke: allow running mononoke server without myrouter 2019-06-18 07:52:22 -07:00
sshrelay Convert scm/mononoke/sshrelay to Rust 2018 2019-05-23 00:30:31 -07:00
tests mononoke: fix flaky test 2019-06-18 05:45:32 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -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 provide edition in .rustfmt.toml 2019-05-29 19:55:37 -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