Repository navigation
ci: parallelize Android unit projects within two workers - #512
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Problem
Related issue: N/A — CI improvements requested by the maintainer.
Validation tasks: none.
Android unit projects run serially despite an available second worker. A controlled warm comparison found a roughly 20% reduction in the unit stage with project parallelism.
Approach
Run unit projects in parallel with the existing two-worker limit and 4 GiB Gradle heap. Test tasks keep their existing one-fork policy and execute freshly. Lint remains serial by default; its existing manual parallel input now describes lint specifically. Release readiness stays serial and pins AGP's existing concurrent R8-task limit to one.
This PR depends on #508, which includes the cache/routing stack and validated fixture repairs. The R8 setting pins the existing AGP 8.10.1 default; it does not restrict R8's internal thread pool or claim another speed gain.
Validation
2ed18821is based on routing7cb1fd2b; the two-file change preserves every existing task selector and validation policy. Full workflow actionlint and whitespace checks pass.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/ci-unit-project-parallelism/
Risks
Parallel projects share the runner's memory. Two workers remain the measured limit; hidden parent limits and sampling gaps are recorded in private evidence. Lint's smaller, partly image-confounded gain did not justify changing its default. The measured sample sizes do not establish maximum possible CI speed.
Checklist
AI Disclosure