-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Performance: GitHub Action caching #315
base: develop
Are you sure you want to change the base?
Conversation
I had to remove the docker layer caching as it was causing the action to hang. This seems to be an issue others are having where the cache export step gets caught. I'm looking into fixes. |
Sure , Thank you for looking into this ! Let me know if you have some updates |
@kshitijrajsharma Thank you! I'll open another PR shortly! |
Docker Build Cache ImpactAn analysis of GitHub Actions workflow data shows strong time savings through Docker layer caching in the Impact from caching in
|
Cache Hit Rate | Monthly (min) | Annual (min) |
---|---|---|
25% | 26.3 | 315.7 |
50% | 52.6 | 631.5 |
75% | 78.9 | 947.2 |
100% | 105.2 | 1,262.9 |
Other Workflows
Similar time savings can be expected in docker_publish_image.yml
as it mirrors the build workflow structure. Historical averages show even longer pre-cache build times, averaging 1,053.0s across 148 runs/year, suggesting potentially larger absolute time savings. Cache performance data from this and other workflows doesn't exist yet.
Limitations
- Current performance metrics only available from
docker_build.yml
- Historical averages based on 1 year period before caching
- Cache hit effectiveness will vary across workflows based on:
- Development patterns
- Dependency update frequency
- Branch structures
- Pull request patterns
Workflow data from fAIr's Action Performance Metrics.
Awesomeeee |
Optimize CI/CD Pipeline Performance with Caching
This PR improves the performance of the fAIr CI/CD pipeline by implementing caching across workflows:
Changes
Benefits
Resources