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.
* ci: keep unit-test scratch out of the runner's shared /tmp
Test JVMs now write temp files under the test task's build folder,
which checkout wipes on every job, so a killed run no longer leaves
Robolectric and JUnit folders behind in /tmp.
Self-hosted runners also clear stale test folders they own in /tmp,
drop the regenerable Gradle build cache when the workspace has under
20 GB free, and log disk use so a full disk is visible in the job.
* test(agent): size check no longer depends on the temp path's length
A symlink's own size is the length of its target path, so the old
100-byte bound failed once the temp dir moved under the build folder.
* ci: never remove a mount point while clearing runner scratch
* ci: keep a scratch folder that anything inside it touched recently
* ci: keep a scratch folder the freshness scan could not read
* fix(agent): start sessions from their own task so repeat starts aren't swallowed
* fix(ci): fall back to the kernel.org Ubuntu mirror when Canonical's are unreachable
* fix(ci): fall back to the Berkeley ports mirror on arm64 runners