Skip to content

Commit

Permalink
Make it possible to set a default build_mode for RE tests via .buckco…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
TheGrizzlyDev committed Dec 19, 2024
1 parent 0a6ec90 commit fa00594
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prelude/decls/re_test_common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fa00594

Please sign in to comment.