Context: build/rust.bzl:47-51 has the run_env block commented out in loom_test:
# run_env = {
# "LOOM_LOG": loom_log,
# "LOOM_LOCATION": str(loom_location),
# "LOOM_MAX_PREEMPTIONS": str(loom_max_preemptions)
# },
This means the parameters loom_log, loom_max_preemptions are accepted by callers but
silently ignored — loom tests run with defaults regardless.
Scope:
jj log -p build/rust.bzl(orgit log) to find the reason for the commenting.- Likely cause:
run_envonrust_testrequires a different type than a Starlark dict. Tryenv = { ... }instead, or convert tocmd_args/ resolved strings. - Re-enable and verify by running
kspinloom tests withLOOM_MAX_PREEMPTIONS=5and confirming wall time increases meaningfully.
Acceptance: loom knobs measurably affect test behavior.