diff --git a/prelude/decls/re_test_common.bzl b/prelude/decls/re_test_common.bzl index 4a9e7240875b..9c12dec111d1 100644 --- a/prelude/decls/re_test_common.bzl +++ b/prelude/decls/re_test_common.bzl @@ -45,10 +45,14 @@ def _opts_for_tests_arg() -> Attr: def _action_key_provider_arg() -> Attr: if is_full_meta_repo(): default_build_mode = read_root_config("fb", "remote_execution_test_build_mode", "fbcode//buck2/platform/build_mode:build_mode") + else: + default_build_mode = read_root_config("re", "remote_execution_test_build_mode") + if default_build_mode != None: return attrs.dep(providers = [BuildModeInfo], default = default_build_mode) else: return attrs.option(attrs.dep(providers = [BuildModeInfo]), default = None) + def _test_args() -> dict[str, Attr]: return { "remote_execution": attrs.option(