test: isolate tests from MBX_LINKER, RUSTC and the host mbx config #864
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 286 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #864"
general
weight: 0.35
jbellis
Several tests depended on the developer's environment or mbx config. They failed, or passed for the wrong reason, when common variables were set or the host config selected a managed linker:
managed_linkertests (three profile-policy tests and the universal macOS system-linker test) failed withMBX_LINKERset, because it overrides per-target selection;a_compiler_named_in_cargo_configuration_is_left_to_cargofailed withRUSTCorCARGO_BUILD_RUSTCset, or withbuild.rustcin the host's Cargo config (cargo_config2 reads them);storage_placementfixtures inherited the user's mbx config, so a managed linker in it was downloaded into every fresh test cache. Run in parallel, this hit GitHub's API rate limit;rejects_tools_symlink_before_initializing_storagestill passed whencheck_cachechecked only the cache root, so it stopped guarding the rule from #428.Now:
managed_linker'sresolvedelegates to a privateresolve_with_environment, and the tests pass a controlled value. This is a small refactor of non-test code with no change in behavior.RUSTCandCARGO_BUILD_RUSTCremoved and an emptyCARGO_HOME, and requires exactly one test to run there, so a filter that matches nothing cannot pass silently.Each affected test was run with the variables set and unset, and with a host-like mold config.
Reported as jbellis/mr-boxington#43.
AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5-5; version: 2.1.306.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Bug Fixes
Blank
MBX_LINKERvalues are now treated as unset during linker selection.Tests
Expanded checks for compiler configuration and storage placement in isolated environments, including validation of cache-related error output.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->