Repository navigation
ci: reduce Android CI work and overlap bundle preparation - #513
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (20)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe PR updates Android CI routing and Gradle options, separates Play bundle preparation from publishing, changes GitHub release APK assembly, and adjusts coroutine tests to use controlled dispatchers. ChangesCI Routing and Validation
Play Bundle and GitHub Release
Coroutine Test Scheduling
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~50 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant Setup
participant PlayBundles
participant ArtifactStore
participant Play
participant GooglePlay
Setup->>PlayBundles: provide release version and build number
PlayBundles->>ArtifactStore: upload bundles and manifest
ArtifactStore->>Play: provide artifact for provenance verification and download
Play->>GooglePlay: upload verified bundles
Merge Risk: ⚪ Minimal · up to This change reworks Android CI caching and job routing and separates signed Play bundle preparation from publishing. No concrete defects were identified. Publication still requires successful tests and verified artifacts, so the change appears ready to merge once CI passes. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 1.22% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 82 functions across 13 files. (7 skipped: 7 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dbaec2ba3c
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| needs: [setup] | ||
| if: ${{ needs.setup.outputs.play_publish == 'true' }} |
There was a problem hiding this comment.
Run supply-chain validation before signing bundles
With play-bundles depending only on setup, a release whose workflow pins or Gradle verification metadata violate check-build-supply-chain.sh can run third-party setup code and Gradle with the release-keystore secrets before the unit-test job reports the policy failure. Previously the Play job depended on unit-tests, whose first step runs that validation, so the secret-bearing build could not start in this case. Keep the expensive tests parallel, but move the fast supply-chain checks into a prerequisite shared by both jobs.
Useful? React with 👍 / 👎.
Integrate the reviewed cache, routing, test scheduler, worker and release changes with current main. Gate test setup and signed bundle preparation on the shared supply-chain checks before their expensive work overlaps.
💡 Codex ReviewWhen a mixed library section contains a ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
Related issue: N/A — CI improvements requested by the maintainer.
Validation tasks: none.
Android CI recompiles reusable outputs, runs unit projects serially, and waits for release tests before preparing Play bundles. This integration carries the independently reviewed cache, routing, worker and release changes together so the resulting main branch can be validated once with shared caches.
Approach
Integrate #507, #510, #511, #506, #508, #509 and #512 with this PR's bundle preparation and recovery implementation. Preserve all 28 product and test changes on main
f34f3600when this integration was prepared.Cache Gradle task outputs while forcing every Test task to execute. Run debug unit projects with two workers and one fork per Test task; lint and release work stay serial. Route prose changes through a stable aggregate check. Prepare signed bundles alongside full release tests and fatal lint, then allow publication only after every required gate and immutable artifact verification succeeds.
The current release review finding is repaired by running the existing supply-chain checks once in the shared setup prerequisite. Both unit tests and signing wait for this fast gate; their expensive work can then overlap.
Validation
7fa78b4c(tree7c0288fc02f7c20ce147de4144f04852fdb1356d) contains 2,349 complete Git records. It preserves every current-main product/test object and the complete reviewed stack; only the two reviewed supply-chain gate files differ from the prior composed tree.5108c903has the old stacked base plus current head as parents because the run began before retargeting; its full tree exactly equals the accepted current integration, including every current-main change. The full selector and aggregate passed. A separate literal current-source roottestgate also passed once: nine fresh debug/release Test tasks, 9,878 cases in 1,282 retained XML reports, zero failures/errors/skips. Independent review recounted every report and the complete current case multiset, verified source before/after and owned cleanup. The local JBR21.0.11/macOS/in-process compiler runtime differs from hosted CI; the 276-second local duration is functional context.bfa618855has the accepted7c0288fctree. Its first automatic main native run 37711594093 passed with all five fresh Test tasks/5,552 cases/717 reports and saved all six primary Gradle archives plus the Robolectric primary. One existing default warm run 37714900406 passed at the same source, restored all seven original identities, and performed zero cache saves or failed reservations. Actual job envelopes were 19:51 and 3:06; these are source-bound cache activation observations, distinct from the historical controlled comparison below.365153670. Its first automatic run 37715713606 passed with five fresh Test tasks/5,562 cases/718 reports/zero issues and full lint/fatal/R8/bundle graphs. All 41 CI/release/build objects are unchanged. Original seven cache identities were reused; changed TV compilation and R8 executed while upstream/phone outputs came from cache. Six new primary saves were verified. Three auxiliary dependency reservations against pre-existing entries are retained; all source/native/primary gates pass. Source and runner image changed, so 8:19 is context rather than a causal performance comparison. The full generic 9,878/1,282 result remains scoped to the earlier integration tree.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/ci-play-bundle-overlap/
Risks
Main now enforces aggregate CI and Evidence through the applied and read-back required-check ruleset. Cache storage affects reuse reliability: two private cohorts lost required archives, with no confirmed cause. Original failures and unavailable quota information remain recorded. Main native CI, primary cache seeding and exact reuse are now validated. The first main producer retained two auxiliary Kotlin DSL reservation failures; its same-source warm run had zero cache writes/failures. The later TV-source run retained three auxiliary dependency reservation failures while native/primary gates passed. Their generic error wording does not establish a concurrent writer or service cause. No new generic nine-task/raw-XML gate is claimed for the unrelated TV feature. Production publication and store distribution remain untested.
Checklist
AI Disclosure