Skip to content

ci: cache Gradle outputs while keeping tests fresh - #506

Merged
Quick104 merged 5 commits into
mainfrom
ci/android-cache-and-release-validation
Oct 8, 2026
Merged

Quick104 merged 5 commits into
mainfrom
ci/android-cache-and-release-validation

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 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

  • Current mechanically integrated head d2a2bc42, based on b6f081b2: the complete focused PR diff is byte-identical to the reviewed 009775e1 diff. 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.
  • At earlier head 009775e1, based on current main 1574897b and the reviewed reliability repairs: cache and workflow source matches the independently accepted cache implementation at 136a84fc. Supply-chain checks, actionlint and diff checks passed.
  • Earlier 136a84fc passed 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.
  • Earlier ordinary CI 37661061649 passed Unit tests, Lint and Release readiness. Its actual checkout/workflow 6717f356 has the complete Git tree of reviewed head 009775e1; all five debug Test tasks executed freshly, totaling 5,531 cases in 714 reports with zero failures/errors/skips.
  • All three filesystem-only probes passed again on exact 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.
  • The repaired 78f6b3e2 cache 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

  • 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, git, GitHub CLI, Gradle, actionlint, Python and the Silo evidence CLI.
  • Model(s): gpt-6.1-sol.
  • Involvement: AI-assisted.
  • Adversarial review: Independent agents read the full cache/workflow diff, traced external Test inputs and trust boundaries, and inspected actual assertion failures. Review required read-only baseline controls and exact assertion matching without deleting Test outputs. Those findings were resolved. Further independent review qualified the saved task bundles, restored archive hits, fresh Test execution and failed repeat. The coordinating agent verified the current-main cache diff matches the accepted implementation.

@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:30:24.801809Z d2a2bc4 New commits
🔒 Security Review ✅ Completed 2026-10-07T22:31:31.922318Z d2a2bc4 New commits
ℹ️ 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.

@silo-kody

silo-kody Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@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: 59a5e30b-97dd-4f2b-9157-c9bbf7cc2162

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.

@Quick104 Quick104 added priority: P2 Limited scope, workaround exists, or polish impact: perf Unusable slowness on normal hardware labels Oct 7, 2026 — with Cursor

Quick104 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Note

Grok commenting on Quick's behalf.

Ranking: impact: perf · priority: P2. CI-only build-speed improvement (Gradle task caching, tests always re-run) with no user-facing change; limited scope, merge once the hosted cache-off vs. warm comparison numbers are in.

@Quick104
Quick104 force-pushed the ci/android-cache-and-release-validation branch from 4961458 to b8e5622 Compare October 7, 2026 15:55
@Quick104
Quick104 changed the base branch from main to test/android-shuffle-countdown-scheduler October 7, 2026 15:55
@silo-kody

silo-kody Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 force-pushed the test/android-shuffle-countdown-scheduler branch from ff802d5 to 8b0f374 Compare October 7, 2026 17:14
@Quick104
Quick104 force-pushed the ci/android-cache-and-release-validation branch from 136a84f to 009775e Compare October 7, 2026 17:41
@Quick104
Quick104 changed the base branch from test/android-shuffle-countdown-scheduler to test/android-tv-startup-barrier October 7, 2026 17:41
@Quick104
Quick104 force-pushed the test/android-tv-startup-barrier branch from d028afb to b6f081b Compare October 7, 2026 22:28
@Quick104
Quick104 force-pushed the ci/android-cache-and-release-validation branch from 009775e to d2a2bc4 Compare October 7, 2026 22:28
Base automatically changed from test/android-tv-startup-barrier to main October 8, 2026 01:10
@Quick104
Quick104 merged commit d2a2bc4 into main Oct 8, 2026
7 checks passed
@Quick104
Quick104 deleted the ci/android-cache-and-release-validation 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: perf Unusable slowness on normal hardware priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant