configs: add an easy way to test config changes locally

Summary:
The HG_TEST_REMOTE_CONFIG environment variable was added to allow tests
to declare custom remote config values, but we can also use it to make canarying
easier.

With this change, users can do `HG_TEST_REMOTE_CONFIG=configerator hg
debugdynamicconfig` to test a change, after running arc build in their
configerator.

We might want to simplify this further in the future to some sort of hidden dev
command line flag, like `hg debugdynamicconfig --canary-remote`

Reviewed By: quark-zju

Differential Revision: D22081459

fbshipit-source-id: 07977097347af9d5872402beeda0ed9160176e7e
This commit is contained in:
Durham Goode 2020-06-30 09:48:31 -07:00 committed by Facebook GitHub Bot
parent ee51bf871f
commit 3fbb5de94a

View File

@ -15,6 +15,7 @@ serde_json = "1.0"
sha2 = "0.8"
thrift-types = { path = "../thrift-types" }
types = { path = "../types" }
util = { path = "../util" }
[dev-dependencies]
tempfile = "3.1"