Comments (3)
This might be related to actions/cache#1361.
from actions.
Thanks for your report.
What you're seeing is the result of access restrictions applied by GitHub Actions on cache entries. Read here for the details, but note in particular that Workflow runs also cannot restore caches created for different tag names
.
There is more context in the setup-gradle docs.
You said:
The action apparently only tries to download gradle-home-v1|Linux|test-product-components[5d434b537dd905dcf51d5f2bd5e8022e]-7fb4e5a6a4f5a839b7a360204248ab6117a28e15 which fails but never tries the other restore keys (which would succeed)
This is incorrect. You can see from the logs that the action actually passes all of the keys including the restore keys in it's request.
This logging comes from the action:
Requesting Gradle User Home with
key:gradle-home-v1|Linux|test-product-components[5d434b537dd905dcf51d5f2bd5e8022e]-7fb4e5a6a4f5a839b7a360204248ab6117a28e15
restoreKeys:[gradle-home-v1|Linux|test-product-components[5d434b537dd905dcf51d5f2bd5e8022e],gradle-home-v1|Linux|test-product-components,gradle-home-v1|Linux]
This logging comes from the GitHub Actions caching infrastructure:
##[debug]Resolved Keys:
##[debug]["gradle-home-v1|Linux|test-product-components[5d434b537dd905dcf51d5f2bd5e8022e]-7fb4e5a6a4f5a839b7a360204248ab6117a28e15","gradle-home-v1|Linux|test-product-components[5d434b537dd905dcf51d5f2bd5e8022e]","gradle-home-v1|Linux|test-product-components","gradle-home-v1|Linux"]
In both cases, you can see that the restore keys are being passed. As explained, the cache misses are due to cache access restrictions, not due to the incorrect keys being used.
The setup-gradle
action has no control over these access restrictions or over the branch/tag that is bound to a cache entry.
from actions.
@bigdaz Thanks for the explanation! Too bad it doesn't work in our setup, but I see why now. 😄
from actions.
Related Issues (20)
- Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read HOT 6
- dependency-submission triggered by tag on default branch does not update dependency results for repository HOT 7
- Indicate why cache is read-only in Job Summary
- Provide guidance on dependency-verification config when enabling build-scan publishing
- Develocity build scan publishing fails with v3.4.0 HOT 1
- Multiple GRADLE_USER_HOMEs HOT 1
- Provide info about configuration and project name for vulnerable dependency HOT 1
- Avoid downloading Gradle when version is pre-installed on runner
- gradle/actions/setup-gradle: 'wrapper' gradle-version does not use Gradle wrapper version HOT 3
- Link to build scans are not reported in Job Summary HOT 3
- Add the July 02 Webinar to the documentation and references
- Support `runs-on/cache` (https://github.com/runs-on/cache) HOT 2
- Does the dependency-submission action support a monorepo configuration?
- Trouble caching build outputs HOT 2
- setup-grade action: Consider using D: drive on Windows Runners to address performance issues HOT 10
- Paths in `gradle-home-cache-excludes` are not honoured when restoring Gradle User Home from cache HOT 3
- Remove deprecated features in preparation for v4
- The `setup-gradle` action should make it easy to run with wrapper in an OS-agnostic way HOT 1
- setup-gradle: GUH cache key collision when used in a reusable workflow HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions.