You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: pull request shard jobs restore a Gradle user home saved for another matrix #306
The test jobs in .github/workflows/ci.yml restore the Gradle user home with gradle/actions/setup-gradle. Its cache key is gradle-home-v2|<os>|<job-id>[<hash of matrix and workflow>]-<sha>, and only pushes to main save entries (cache-read-only is true off the default branch).
Pull request runs shard the tests, so their matrix entries are {mps, shard: N, shards: 7}. main runs the full tier with {mps, shard: 1, shards: 1}. A pull request shard job therefore never finds an entry for its own matrix and falls back to the newest entry with the same job id, from any matrix.
Example: run 44608914710 asked for integration[a38b40bc...]-9f76e380 and restored integration[0e3744fd...]-1ecedc05, which was saved about 47 hours before the job.
Restored entries are older than they need to be. Gradle caches a "missing" answer for a module or artifact for 24 hours, so a job that restores an entry older than that asks the repositories again. This is how the 429 and 403 answers from Maven Central reached CI (runs 44124256664, 44134812584, 44608914710). #305 removes the requests that failed, but the stale fallback stays.
Options
Give the pull request shard jobs a cache key that matches an entry that main saves.
Keep main entries younger than 24 hours, for example with a scheduled run.
Docs-only pushes to main skip the test jobs and save nothing, which also makes the newest entry older.
Activity