Repository navigation
ci: cache Gradle outputs while keeping tests fresh - #506
Conversation
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. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
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 |
|
Note Grok commenting on Quick's behalf. Ranking: |
4961458 to
b8e5622
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
ff802d5 to
8b0f374
Compare
136a84f to
009775e
Compare
d028afb to
b6f081b
Compare
009775e to
d2a2bc4
Compare
Problem
Related issue: N/A — CI improvements requested by the maintainer.
Validation tasks: none.
Android CI restores Gradle dependencies but rebuilds reusable task outputs on each runner. Some unit tests read workflows and sibling source files directly, so Test result reuse could leave policy checks stale.
Approach
Enable Gradle task caching and require every Test task to execute, disabling both cached results and local up-to-date reuse. Hosted CI calls the proposed reusable workflow revision. Cache writers are the default branch, authorized manual runs, and same-repository PRs whose captured author association is OWNER, MEMBER or COLLABORATOR. All other events use read-only caches.
Recorded source, workflow, actual Java and runner metadata support controlled comparisons. Parallel execution and configuration caching remain disabled by default. The filesystem regression script warms focused tests, changes only a workflow, sibling manifest or source comment, requires the exact assertion to fail, then restores the file and verifies success. This PR follows the focused scheduler and barrier repairs in its base branch.
Validation
d2a2bc42, based onb6f081b2: the complete focused PR diff is byte-identical to the reviewed009775e1diff. The integrated application tree adds only the accepted recovery scheduler fixture. Fresh ordinary CI 37696387097 passed on attempt 1. The actual tested merge tree equals this head; all five debug Test tasks and full lint/Vital/R8/bundle graphs executed. The workflow reported 5,531 tests in 714 XML reports, with zero failures, errors or skips. Earlier validation below retains its original source.009775e1, based on current main1574897band the reviewed reliability repairs: cache and workflow source matches the independently accepted cache implementation at136a84fc. Supply-chain checks, actionlint and diff checks passed.136a84fcpassed all three filesystem-only invalidation probes with exact assertion failures and preserved Test outputs. A controlled fresh-runner warm run restored all three saved task bundles and ran all 5,528 tests freshly. Its planned repeat failed the original Library fixture timeout; that failed observation is preserved and excluded from speed comparisons.6717f356has the complete Git tree of reviewed head009775e1; all five debug Test tasks executed freshly, totaling 5,531 cases in 714 reports with zero failures/errors/skips.009775e1: warm and restored execution succeeded; each mutation produced its exact expected AssertionError while preserving outputs. Sources were restored and the tracked worktree is clean.78f6b3e2cache cohort completed two cache-off and two warm observations with the same source, settings and full validation graph. Median elapsed time fell from 16:52 to 3:32; median total runner work fell from 30:07 to 6:29. All five debug Test tasks executed freshly in every observation: 5,531 cases, 714 reports, zero failures/errors/skips. Warm runs restored the exact primed per-job homes/task archives and reused 77/90/86 unit/lint/readiness task outputs. Bootstrap is excluded; dependency warmth and runner image variation are recorded in private evidence. These measurements apply to the integrated repaired cache/routing stack; the earlier failed replication remains excluded.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-506/
Risks
Task-output archives increase cache storage. The earlier cohort added about 435 MiB of task bundles and per-job Gradle homes; dependency and transform copies dominated its branch storage. The configured cache limit and prior removal causes were unavailable. Actual captured PR author association was CONTRIBUTOR, so read-only behavior was correct despite a later REST snapshot reporting MEMBER.
Checklist
AI Disclosure