Skip to content

ci: cache IntelliJ Platform separately and allow test job to write cache#558

Open
nakamura-to wants to merge 1 commit into
mainfrom
ci/cache-intellij-platform-separately
Open

ci: cache IntelliJ Platform separately and allow test job to write cache#558
nakamura-to wants to merge 1 commit into
mainfrom
ci/cache-intellij-platform-separately

Conversation

@nakamura-to

Copy link
Copy Markdown
Member

Summary

Improves CI caching of the IntelliJ Platform dependency, which is a large download that rarely changes.

  • Add a dedicated actions/cache step for the IntelliJ Platform (com.jetbrains.intellij.idea) in both the build and test jobs, keyed on runner.os + a hash of gradle.properties. This keeps the platform warm across runs even when the main Gradle cache is invalidated.
  • Remove cache-read-only: true from the test job's Gradle setup so the job can populate the cache, ensuring the IntelliJ Platform stays cached even when the build job is skipped or runs in parallel.

Why

The IntelliJ Platform artifact is large and stable. Caching it separately from the general Gradle cache reduces repeated downloads and speeds up CI.

Test plan

  • CI runs automatically on this PR; verify the Build and Test jobs succeed and that the new "Cache IntelliJ Platform" steps run.

🤖 Generated with Claude Code

Cache the IntelliJ Platform dependency (com.jetbrains.intellij.idea)
independently of the main Gradle cache in both the build and test jobs.
The IntelliJ Platform is a large download that rarely changes, so a
dedicated cache keyed on gradle.properties keeps it warm across runs
even when the Gradle cache is invalidated.

Also remove cache-read-only: true from the test job so it can populate
the cache, ensuring the IntelliJ Platform stays cached when the build
job is skipped or runs in parallel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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