Cache@2
No response
Describe your feature request here
As a team of developpers doing plenty of pull requests.
I want the cache to be used by CI pipleine builds.
To speed up the time of these pipeline runs and not waste processing.
Issue : The cache scope isolates every pull request caches, preventing the cache to be used between them.

Result : First, the cache task downloads the last cache from main, which is obsolete most of the time.
Then, the build doesn't use it and creates a new cache.
Then, the cache post job saves this new cache, scoped to the PR.
Finally, this newly saved cache is never used again most of the time, scoped in isolation.
A bit of context, some pull requests are caching the exact same hash keys in the cache. For those, we would expect a cache hit, but the scope make it a cache miss.
Are we doing something wrong here? Or is it the expected result for PR pipelines?
I suggest to be able to scope the cache to a whole pipeline?
Or maybe to allow to manually scope the cache using a "tag", like a string. MyScope = "myPullRequestPipeline"?
Thanks !
Cache@2
No response
Describe your feature request here
As a team of developpers doing plenty of pull requests.
I want the cache to be used by CI pipleine builds.
To speed up the time of these pipeline runs and not waste processing.
Issue : The cache scope isolates every pull request caches, preventing the cache to be used between them.

Result : First, the cache task downloads the last cache from main, which is obsolete most of the time.
Then, the build doesn't use it and creates a new cache.
Then, the cache post job saves this new cache, scoped to the PR.
Finally, this newly saved cache is never used again most of the time, scoped in isolation.
A bit of context, some pull requests are caching the exact same hash keys in the cache. For those, we would expect a cache hit, but the scope make it a cache miss.
Are we doing something wrong here? Or is it the expected result for PR pipelines?
I suggest to be able to scope the cache to a whole pipeline?
Or maybe to allow to manually scope the cache using a "tag", like a string. MyScope = "myPullRequestPipeline"?
Thanks !