[Usage Stats] Usage stats only enabled on nightly test infra (#22591)

This PR **enables the usage stats only on the release test infrastructure** (large scale tests Ray runs on a daily basis in a private infra). Note it is still disabled by default in Ray.
This commit is contained in:
SangBin Cho 2022-02-24 15:11:48 +09:00 committed by GitHub
parent 11500dc12c
commit 5e847f7e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1556,6 +1556,8 @@ def run_test_config(
app_config["env_vars"]["MATCH_AUTOSCALER_AND_RAY_IMAGES"] = "1"
app_config["env_vars"]["RAY_bootstrap_with_gcs"] = "1"
app_config["env_vars"]["RAY_gcs_storage"] = "memory"
app_config["env_vars"]["RAY_USAGE_STATS_ENABLED"] = "1"
app_config["env_vars"]["RAY_USAGE_STATS_SOURCE"] = "nightly-tests"
compute_tpl_rel_path = test_config["cluster"].get("compute_template", None)
compute_tpl = _load_config(local_dir, compute_tpl_rel_path)