Debug-action-cache
# On the self-hosted machine sudo find / -name "node_modules" -path "*/actions-runner/_work/*" -type d
The most effective way to see exactly why a cache is failing (e.g., version mismatches or path errors) is to enable diagnostic logging. This will show detailed logs of the download and upload process for your cached files. Step Debugging : Go to your repository Secrets and variables and add a new secret or variable named ACTIONS_STEP_DEBUG with the value Runner Diagnostic Logging ACTIONS_RUNNER_DEBUG debug-action-cache
. This allows you to surgically remove specific entries that might be causing friction. 3. Monitoring the Restore Flow To truly debug, you need to look at the logs in your Action output. Cache Hit: # On the self-hosted machine sudo find /
Use cache debugging when you encounter:
The debug-action-cache is a caching mechanism designed to store the results of expensive computations or actions during the development process. The primary goal is to avoid redundant calculations or operations by quickly retrieving results from a cache, rather than recalculating or re-executing them. This approach can significantly speed up development workflows, especially in scenarios where certain actions or computations are repeated frequently. This allows you to surgically remove specific entries
Cache saved successfully with key: ubuntu-latest-npm-abc123...
