-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Integrate cache service v2 #1857
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as spam.
This comment was marked as spam.
packages/cache/src/cache.ts
Outdated
* @param enableCrossOsArchive an optional boolean enabled to restore on windows any cache created on any platform | ||
* @returns string returns the key for the cache hit, otherwise returns undefined | ||
*/ | ||
async function restoreCachev2( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an opportunity to share code between restoreCachev1
and restoreCachev2
instead of duplicating it all?
That would make it easier to see what's actually changing and improve long-term maintenance of supporting both paths (such as for GHES).
workflowRunBackendId: backendIds.workflowRunBackendId, | ||
workflowJobRunBackendId: backendIds.workflowJobRunBackendId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need these in the request if they're encoded into the JWT?
@@ -45,10 +45,13 @@ | |||
"@azure/abort-controller": "^1.1.0", | |||
"@azure/ms-rest-js": "^2.6.0", | |||
"@azure/storage-blob": "^12.13.0", | |||
"semver": "^6.3.1" | |||
"@protobuf-ts/plugin": "^2.9.4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These have been moved from the top level package.json
. And @protobuf-ts/plugin
was bumped up to 2.9.4
. Not sure why were using (and still using) @protobuf-ts/plugin": "^2.2.3-alpha.1
in artifacts
Upgrading the cache package to integrate with the new cache service backend (cache service v2). Major changes to the API layer are involved with this change but the interfaces are backward compatible. The transition to the new service will undergo gradual rollout and will be seamless to end users.
More context
Deprecation notice for v1 and v2 of actions/cache