Skip to content

ci: parallelize Android unit projects within two workers - #512

Merged
Quick104 merged 1 commit into
mainfrom
ci/android-unit-project-parallelism
Oct 8, 2026
Merged

Quick104 merged 1 commit into
mainfrom
ci/android-unit-project-parallelism

Conversation

@Quick104

@Quick104 Quick104 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Current source 2ed18821 is based on routing 7cb1fd2b; the two-file change preserves every existing task selector and validation policy. Full workflow actionlint and whitespace checks pass.
  • The frozen worker cohort used the same application source and two workers. Two warm serial controls versus two parallel observations reduced median unit-stage time from 157.88 to 126.38 seconds (about 20%). Whole runner work improved about 4.8%; release timing varied, so the larger stage reduction is not attributed to the whole run.
  • First-attempt cold compatibility run 37691820733 on the accepted recovery fixture passed all 114 observed gates: five fresh Test tasks, 5,531 cases/714 reports, zero failures/errors/skips, full lint and both release bundles. Actual Gradle/Kotlin heaps were 4 GiB and Test executors 512 MiB; visible OOM counters did not increase. The original timeout remains retained and its precise cause is unproven.
  • All application/build/test Git inputs match the independently validated current integration source. Current ordinary CI 37697012513 passed on attempt 1 with exact tested merge/tree equality: five fresh Test tasks, 5,531 cases/714 reports, zero failures/errors/skips, all three debug lints and both Vital/R8/bundle graphs. Actual unit parallel and lint/readiness serial flags were verified. This ordinary result remains distinct from the historical measurements and private nine-suite release gate; successful raw XML identities are unavailable.

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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Private evidence records source-specific validation and limitations.

AI Disclosure

  • Harness: OpenAI Codex desktop.
  • Tool(s): Codex implementation and independent review agents, GitHub CLI, Gradle, actionlint, Python and the Silo evidence CLI.
  • Model(s): gpt-6.1-sol.
  • Involvement: AI-assisted.
  • Adversarial review: Independent agents qualified the exact warm controls, task outcomes, JVM resource roles and cold compatibility. The coordinating agent read the complete production delta and verified integration preserves routing conditions, all task selectors and the accepted scheduler fixture. The parent reviewed the complete proposal and concrete cold evidence. No actionable implementation finding remains.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e45e2e06-9b86-48ec-a6cb-9318d079d634

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T22:36:00.143798Z 2ed1882 PR opened
🔒 Security Review ✅ Completed 2026-10-07T22:36:07.665165Z 2ed1882 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Quick104 Quick104 added priority: P2 Limited scope, workaround exists, or polish impact: polish Annoyance, cosmetic, or nice-to-have labels Oct 7, 2026 — with Cursor
Base automatically changed from ci/android-routing-and-release-lint to main October 8, 2026 01:10
@Quick104
Quick104 merged commit 7fa78b4 into main Oct 8, 2026
9 checks passed
@Quick104
Quick104 deleted the ci/android-unit-project-parallelism branch October 8, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant