Skip to content

Optimize CI Gradle and independent plugin caching - #92

Merged
Zennmn merged 2 commits into
mainfrom
codex/ci-build-cache
Oct 11, 2026
Merged

Zennmn merged 2 commits into
mainfrom
codex/ci-build-cache

Conversation

@Zennmn

@Zennmn Zennmn commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

CI restored Gradle caches through both setup-java and setup-gradle, which prevented the latter from restoring its cache. It also rebuilt the independent plugin SDK and example on every run. Use setup-gradle alone, enable Gradle task caching and parallel module execution, and reuse the SDK/example artifacts only when their source, build configuration, wrapper and actual JDK/Android tool inputs match exactly.

The example still builds outside the checkout using only the exported SDK JAR. Missing artifacts trigger a rebuild, and partial cache keys are never restored. Source-contract tests declare repository source text/build configuration as inputs, and plugin import tests declare the fixture ZIP contents, so changed external files invalidate cached test results. Full test/Lint task commands, release signing and APK uploads are unchanged; no application runtime code changes.

Validation: four artifact cache invalidation regressions passed; a second independent build compiled Java from cache and produced identical SDK/ZIP hashes. An invalid fixture ZIP previously remained UP-TO-DATE; it now reruns and fails the import test, then passes when restored. A source-only probe also invalidated the structural test task. Full local Gradle checks passed with 1133 tests, all Lint tasks and release assembly; v2 release signature verified. Added the Python regressions to CI and documented cache behavior. Actions timing will depend on subsequent cache hits.

Final-head Actions checks passed: Release and PR. The release job took 6m44s versus 7m48s for the previous main run; this is a single-run comparison. Gradle User Home cache writes remain main-only by default, so steady-state timing should be measured after merge.

@Zennmn
Zennmn merged commit 7f6060c into main Oct 11, 2026
2 checks passed
@Zennmn
Zennmn deleted the codex/ci-build-cache branch October 11, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant