Run every test runner in the Android emulator tests #327
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 410 lines diff across 5 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.360
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #327"
general
weight: 0.35
niktishakov
Fixes #277.
With Swift Build, each test target gets its own
-test-runner.android-emulator-tests.shran them with./-test-runner --testing-library …, so the shell passed the other runners as arguments to the first one, and only the first test target ran.In swift-foundation, the staging directory has three runners, but only
FoundationEssentialsTestsran on the emulator.FoundationInternationalizationTests(485 tests, including Calendar and the ICU-based tests) andFoundationMacrosTests(45 tests) never ran on Android. This includes the formatting tests for the Swift implementations that replace ICU, like theListFormatStylesuite from swiftlang/swift-foundation#1991 and the date pattern tests in swiftlang/swift-foundation#2330.This runs the test runners one at a time, with the same
xctestandswift-testingpasses and the same handling of exit code 69 as before. A failure in one runner or pass doesn't stop the others: every runner runs both passes, and the job fails at the end if any of them failed. If there are no-test-runnerfiles, it falls back to.xctestas before, so the native build system still works. It also adds a second test target totests/TestPackage, so this repository's own Android check covers more than one runner.About going back to a single runner, as asked in #277: running each runner works with both build systems and doesn't need a change in SwiftPM.
Effect on other packages. The scripts are checked out from
main, so this applies right away to every package that usesenable_android_sdk_checks. In packages with more than one test target, test targets that didn't run before will run, so failures that were hidden can show up, and the Android job takes longer. I ran the same fork check on two of them:One more difference: exit code 69 is now accepted only from the
swift-testingpass, as the comment says. Before, because of how&&and||combine, it was also accepted from thexctestpass. In these runs, thexctestpass returns 0 when it finds no tests.Testing:
sh,bash --posixanddash: all runners run; exit code 69 fromswift-testingdoesn't fail the run; a failing runner or pass fails the run, and everything after it still runs.Target1Tests,Target2Testsstill ran and passed, and the job failed; without it, both runners passed and the job passed.swift testfortests/TestPackageruns both test targets.shellcheckreports nothing for the script.