Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Dec 10, 2024
1 parent 8eb462e commit d488eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/_posts/2024-12-02-ucacher.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ While we know each runner will use a different subset of files in src, **we don'
key: ${{ '{{' }} runner.os {{ '}}' }}-node-build-${{ '{{' }} hashFiles('**/package-lock.json') {{ '}}' }}-${{ '{{' }} hashFiles('src/**') {{ '}}' }}-${{ '{{' }} matrix.shard {{ '}}' }}
~~~

This setup is effective for caching reruns but has a significant limitation: any change in the src/ folder invalidates the cache for all shards. Even a minor modification affecting only one shard will cause all shards to re-run, reducing the overall efficiency of caching.
This setup is effective for caching reruns but has a significant limitation: any change in the `src/` folder invalidates the cache for all shards. Even a minor modification affecting only one shard will cause all shards to re-run, reducing the overall efficiency of caching.

This lack of precision results in wasted resources and longer execution times. Ideally, only the steps impacted by changes should run, while unaffected shards skip execution entirely.

Expand Down

0 comments on commit d488eee

Please sign in to comment.