Builds download the same 2 GB ML model on every run. What do you do?
IntermediateScenarioSpeed, Caching & Cost
Answer
Situation read → Large static input; cache or move it.
What I'd do →
actions/cachekeyed on the model version:key: model-${{ vars.MODEL_VERSION }}.- If it exceeds what the cache can hold well (with other caches), host it in S3 in the same region as self-hosted runners and pull with OIDC credentials.
- For ARC runners, bake it into the runner image or a node-local volume.
Why → Version-keyed caches never invalidate accidentally and restore in seconds.
Interview tip → Mention the repo cache quota as a constraint on big blobs.
More on Speed, Caching & Cost
`npm ci` takes 4 minutes on every run. Fix it.BeginnerDocker builds take 12 minutes even when only one line of code changed. Speed them up.IntermediateThe repo hits the 10 GB cache limit daily and hit rates are poor. What do you change?IntermediatemacOS jobs are 60% of your bill. What are your options?IntermediateA job sometimes hangs and burns 6 hours. How do you stop it happening again?BeginnerYour PR matrix is 3 OS times 4 versions (12 jobs). How do you cut cost without losing coverage?Advanced