-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for building and running the oss build of Mononoke #812
Comments
Hi @Matthew-Benson, thanks for your interest in Sapling. Unfortunately we don't currently have a supported workflow for running Mononoke externally. As a scalable server, Mononoke still has some strong dependencies on internal Meta infrastructure in order to provide that scalability. Many of these can be stubbed out for testing purposes, but the stubs are not necessarily fully featured. For now, the code is mostly available for information only. That said, in this case it looks like the particular component you are missing is our distributed configuration store (called Configerator). You can override the use of this with the |
Thanks for the help @markbt! I think I'm very close to getting it to start, but I'm getting an error about config parsing. I suspect I may have some toolchain difference from the CI environment? In short, I followed the build steps in export TESTTMP="/tmp/test"
export HGTEST_CERTDIR="/tmp/cert"
export TEST_FIXTURES="$HOME/sapling/eden/mononoke/tests/integration"
export URLENCODE="$(which urlencode)"
export HGRCPATH="$HOME/.hgrc"
export DUMMYSSH="/usr/local/bin/dummyssh"
export MONONOKE_SERVER="/tmp/fbcode_builder_getdeps-ZhomeZrunnerZsaplingZbuildZfbcode_builder/installed/mononoke/bin/mononoke"
mkdir -p $TESTTMP
mkdir -p $HGTEST_CERTDIR
source "${TEST_FIXTURES}/library.sh"
setup_common_config
setup_mononoke_config
cd $TESTTMP
start_and_wait_for_mononoke_server But I get an error from the config files generated for the default repo "repo":
Immediately assumed there was a problem with the config, but I can't tell from inspecting it that it's incorrect: cat mononoke-config/repo_definitions/encode%20repo/server.toml
cat mononoke-config/repos/encode%20repo/server.toml
|
I want to run Mononoke to try it out, but I can't seem to figure out how to run it correctly.
By following the CI actions in .github/workflows/mononoke_linux.yml, I was able to build it on Ubuntu 20.04, but the binary output I got from following
Seems to be
and if I run the following (pieced together from
mononoke --help
)I get an error message that's isn't clear to me how to proceed:
The error seems to be related to caching, so I tried running with the flag
--cache-mode disabled
, but that didn't seem to have any impact.From build command steps, I had guessed that I would get a working install somewhere under
/usr/local
but that doesn't seem to be the case.When I get a working build, I'd be happy to contribute docs for building/running and was planning on creating a repo with a simple container image that runs Mononoke as an example, but I may need a little bit of assistance configuring the oss build to run correctly.
Any assistance is greatly appreciated!
The text was updated successfully, but these errors were encountered: