diff --git a/prelude/decls/re_test_common.bzl b/prelude/decls/re_test_common.bzl index 4a9e7240875b..e04a62d3cefb 100644 --- a/prelude/decls/re_test_common.bzl +++ b/prelude/decls/re_test_common.bzl @@ -45,6 +45,9 @@ 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)