-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-hosted runners cache not working when using service containers #1021
Comments
Hi @omri-shilton, |
Hi @omri-shilton,
Additionally, it is recommended to delete the existing cache before running with Thank you! |
@priyagupta108 ill try that now, but this only happend to me after I changed to ec2 self hosted runners rather than my old EKS action controller runners. got any idea why? |
Hi @omri-shilton 👋, |
@omri-shilton 👋, |
Description:
Running on self hosted runner using the following: https://github.com/github-aws-runners/terraform-aws-github-runner
I have a workflow that has multiple jobs, some are regular and some have service containers ie:
On the job that don't have service containers i'm getting these logs:

you can see that the cache is found and then using the cached packages.
On the job that has service containers i'm getting these logs:

you can see that the cache is found and then still downloading the packages instead of using the cache.
When I log into the machine that ran the second job i can see that .cache/pip/ folder has many packages.
Action version:
4
Platform:
Runner type:
Tools version:
3.10.10
Repro steps:
copy the workflow jobs that I listed and fill in some real data.
Expected behavior:
Cache to be used on both jobs.
Actual behavior:
cache is working only on jobs without service containers.
The text was updated successfully, but these errors were encountered: