acoustic-library-86413
08/29/2025, 6:59 AM__defaults__
propagate to all subdirectories? I have my tests organized in a manner like this:
tests/
module_1/
module_2/
...
module_n/
BUILD
All of these modules share the same extra_env_vars
and I wanted to include a BUILD
at the tests/
level, but the environment variables are not injected into the tests if I do this. The contents of the BUILD file is:
__defaults__(
all=dict(
extra_env_vars=[
"SOME_VAR=some_value",
...
]
)
)
acoustic-library-86413
08/29/2025, 7:14 AMpants peek
it just doesn't seem like extra_env_vars
is being passed along to any of the tests residing in the directories above the build-file.fast-nail-55400
08/29/2025, 8:39 AMBUILD
files in the module_N
directories with python_tests
targets?acoustic-library-86413
08/29/2025, 8:49 AM__defaults__
in the subdirectories, but using extend=True
on these does not affect the outcome.fast-nail-55400
08/29/2025, 9:11 PMBUILD
files in the module_N
directories set extra_env_vars
directly?fast-nail-55400
08/29/2025, 9:13 PMextra_env_vars
are not being merged together but are instead ovewritten. I'm curious if that matches what you are seeing.fast-nail-55400
08/29/2025, 9:15 PMfast-nail-55400
08/30/2025, 5:04 PM__defaults__(
extend=True,
all=dict(
extra_env_vars=list(python_test.extra_env_vars.default) + [
"MODULE2_VAR=module2_specific",
]
)
)
python_tests(
name="tests",
)