Inject sanitizer runtimes into UI test runners #3149
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 204 lines diff across 2 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.318
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3149"
general
weight: 0.35
keith
ios_ui_testwith--features=tsanaborts before any test runs:For UI tests the xctestrun runner moves the test bundle into
<name>-Runner.app/PlugIns, but it then looks forlibclang_rt.*.dylib(andlibMainThreadChecker.dylib) under the bundle's original path$test_tmp_dir/<name>.xctest/Frameworks. Nothing is found there, soDYLD_INSERT_LIBRARIESstays empty and XCTRunner loads the Thread Sanitizer runtime throughdlopenwith the test bundle.This looks for them next to
test_bundle_binaryinstead, which already follows the move. Unit tests are unaffected because their bundle stays where it was.Adds
test_ios_ui_test_pass_tsan, the UI test counterpart oftest_ios_unit_test_pass_asan. I ran it locally with Xcode 27.2 and the iOS 26.4 simulator runtime: it passes with this change and fails without it, with the error above.test_ios_ui_test_passstill passes. To run it here I had to temporarily change the runners'device_type = "iPhone Xs"to"iPhone 17", because the iPhone Xs can't run iOS 26. I didn't include that change. The Main Thread Checker half of the fix isn't covered by a test.Found while turning Thread Sanitizer back on for MapLibre Native's iOS UI tests (maplibre/maplibre-native#5075), which applies this as a patch on rules_apple 5.2.0.
🤖 Generated with Claude Code