ci: cache IntelliJ Platform separately and allow test job to write cache#558
Open
nakamura-to wants to merge 1 commit into
Open
ci: cache IntelliJ Platform separately and allow test job to write cache#558nakamura-to wants to merge 1 commit into
nakamura-to wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves CI caching of the IntelliJ Platform dependency, which is a large download that rarely changes.
actions/cachestep for the IntelliJ Platform (com.jetbrains.intellij.idea) in both thebuildandtestjobs, keyed onrunner.os+ a hash ofgradle.properties. This keeps the platform warm across runs even when the main Gradle cache is invalidated.cache-read-only: truefrom thetestjob's Gradle setup so the job can populate the cache, ensuring the IntelliJ Platform stays cached even when thebuildjob 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
BuildandTestjobs succeed and that the new "Cache IntelliJ Platform" steps run.🤖 Generated with Claude Code