The release unit tests ran inside the compile job, after assembleRelease
and before the testkey-signed APK was uploaded. PR Release Publish waits
for the Build APK workflow to finish, so every test build waited 3-6
minutes on the tests, and a Maven 429 during Robolectric's jar download
failed the build outright.
testReleaseUnitTest now runs in its own Unit tests workflow on a hosted
runner, where the Robolectric jar cache always applies. It needs neither
the prepared components nor the Rust stores (-PskipRust=true). Build APK
publishes as soon as the APK compiles. Merges and releases stay gated:
Build validation folds the Unit tests result into the "Build APK" commit
status, and Release APKs refuses a commit without a passing Unit tests
run. The main Preview build no longer waits for the Kotlin unit tests;
the PR's tests have already passed by then.