A Scalable, User-Friendly Source Control System.
Go to file
Harvey Hunt ad372756f5 mononoke: Fix flaky lfs_server tests
Summary:
A couple of LFS server tests are flaky due to the expected output not
appearing in the scuba log file. The affected tests run curl to send a command
to the LFS server. A theory for the missing output is that curl completes so
quickly that the async write to the log file hasn't happened before the test
checks the contents of the log file.

Fix this by adding a test helper function that waits until a file is non empty.
Further, update the scuba logging code to seek to the end of the file before
writing so that it doesn't create sparse files if the log file is truncated.

Reviewed By: krallin

Differential Revision: D18687831

fbshipit-source-id: 46b93306a3ac694064ab5cd4acd5eff25ab320e3
2019-11-27 00:26:00 -08:00
apiserver rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
async-compression tp2/rust: update rust-crates-io 2019-10-31 09:40:14 -07:00
asyncmemo Yearless license header 2019-10-11 13:52:34 -07:00
benchmark Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
blobimport_lib/src Teach blobimport to set up large repo mappings for imports to megarepo 2019-11-27 00:25:59 -08:00
blobrepo rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
blobrepo_utils Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
blobstore mononoke/cacheblob: track cache hits and misses 2019-11-19 06:56:04 -08:00
blobstore_sync_queue Yearless license header 2019-10-11 13:52:34 -07:00
bonsai_globalrev_mapping rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
bonsai_hg_mapping rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
bonsai_utils Re-sync with internal repository 2019-11-13 20:16:37 +01:00
bookmarks Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
cache_warmup/src Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
changesets mononoke/changesets: Make SelectChangeset >800x times faster on sqlite 2019-11-20 07:12:40 -08:00
cmdlib/src Teach blobimport to set up large repo mappings for imports to megarepo 2019-11-27 00:25:59 -08:00
cmds Teach blobimport to set up large repo mappings for imports to megarepo 2019-11-27 00:25:59 -08:00
commit_rewriting Teach blobimport to set up large repo mappings for imports to megarepo 2019-11-27 00:25:59 -08:00
common mononoke: extend --readonly-storage support to sqlite 2019-11-15 00:57:52 -08:00
derived_data Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
failure_ext Drop remaining dependencies on failure crate 2019-11-22 16:33:14 -08:00
filenodes rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
filestore/src rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
futures-ext Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
hgcli Re-sync with internal repository 2019-11-13 20:16:37 +01:00
hgproto rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
hook_tailer add scuba logging to hook execution. 2019-11-15 07:06:31 -08:00
hooks mononoke: add metaconfig boilerplate for source control services monitoring 2019-11-21 11:06:06 -08:00
lfs_import_lib/src rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
lfs_protocol/src mononoke/lfs_server: extract lfs_protocol 2019-10-17 06:53:53 -07:00
lfs_server/src mononoke: Fix flaky lfs_server tests 2019-11-27 00:26:00 -08:00
manifest Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
mercurial rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
metaconfig rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
mononoke_api/src source control service blame integration 2019-11-27 00:26:00 -08:00
mononoke_types source control service blame integration 2019-11-27 00:26:00 -08:00
netstring rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
phases rust: Replace derive(Fail) with derive(Error) 2019-11-14 22:04:37 -08:00
pushrebase/src mononoke: pass hashset to pushrebase 2019-11-19 07:32:49 -08:00
py_tar_utils Yearless license header 2019-10-11 13:52:34 -07:00
reachabilityindex rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
ready_state/src Yearless license header 2019-10-11 13:52:34 -07:00
repo_client rust: Replace implementation of failure_ext to remove failure dependency 2019-11-22 09:27:59 -08:00
revset Remove direct dependencies on failure crate 2019-11-18 16:43:16 -08:00
scs_server/src source control service blame integration 2019-11-27 00:26:00 -08:00
server mononoke: check pushredirector status in backsyncer_cmd 2019-11-20 10:34:31 -08:00
sshrelay/src Re-sync with internal repository 2019-11-13 20:16:37 +01:00
tests mononoke: Fix flaky lfs_server tests 2019-11-27 00:26:00 -08:00
walker/src mononoke: walker move from cmds/graph_walker to walker 2019-11-22 05:29:43 -08:00
.gitignore add .gitignore 2018-03-13 11:58:20 -07:00
.rlsconfig cargo_from_buck: make it possible to define autocargo projects without generated Cargo.toml files 2019-11-21 14:16:58 -08:00
.travis.yml Add travis-CI integration by adding .travis.yml file. 2018-07-26 10:09:32 -07: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 Get rustfmt/rls working in fbcode again. 2019-09-19 18:06:23 -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