8000 Updating blob storage client to 12.13.0 in actions/cache by kotewar · Pull Request #1363 · actions/toolkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updating blob storage client to 12.13.0 in actions/cache #1363

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

Merged
merged 12 commits into from
Mar 9, 2023

Conversation

kotewar
Copy link
Contributor
@kotewar kotewar commented Mar 6, 2023

This PR updates the blob storage client to v12.13.0 which is the latest to accommodate the latest SDK changes in cache library.

Also updated the typescript version because the builds were failing and azure sdk uses typescript 4.8.0

@kotewar kotewar requested a review from a team as a code owner March 6, 2023 11:57
@kotewar kotewar changed the title Updating blob storage client to 12.13.0 Updating blob storage client to 12.13.0 in actions/cache Mar 6, 2023
kotewar added 3 commits March 6, 2023 12:18
Upgrade ts version to support latest azure sdk
@@ -4,7 +4,8 @@
"baseUrl": "./",
"outDir": "./lib",
"rootDir": "./src",
"lib": ["es6", "dom"]
"lib": ["es6", "dom"],
"useUnknownInCatchVariables": false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this because the ts compiler raised issues with the catch block err variable having no type defined. Use of Error, any and unknown was also not allowed.

"semver": "^6.1.0",
"uuid": "^3.3.3"
},
"devDependencies": {
"@types/semver": "^6.0.0",
"@types/uuid": "^3.4.5",
"typescript": "^3.8.3"
"typescript": "~4.8.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The root level package.json uses a different typescript version. Wondering how Lerna resolves the version when running build/test commands.

Copy link
Contributor Author
@kotewar kotewar Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On first attempt I had received an error saying version mismatch, but running npm install and updating the package-lock.json file resolved the issue. I think it uses lockfile to resolve the dev dependencies as well.

Also easy to debug going forward as we'll have whole MB segments and not fractional for any error in mid of a segment.

@kotewar kotewar requested a review from a team March 6, 2023 13:32
@kotewar
Copy link
Contributor Author
kotewar commented Mar 6, 2023

Can someone from @actions/actions-runtime team please review if the typescript update has been done correctly? We have to upgrade it to 4.x to support the newer versions of the @azure/storage-sdk. 🙇🏽‍♂️

@kotewar kotewar merged commit aeb16ee into main Mar 9, 2023
@kotewar kotewar deleted the kotewar/updating-blobstorage-client-to-12.13.0 branch March 9, 2023 10:47
@@ -101,7 +101,7 @@ export function getDownloadOptions(copy?: DownloadOptions): DownloadOptions {
useAzureSdk: true,
downloadConcurrency: 8,
timeoutInMs: 30000,
segmentTimeoutInMs: 3600000,
segmentTimeoutInMs: 600000,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were not updated to match:

and README was updated in #1367 but RELEASES wasn't

### 3.2.1
- Updated @azure/storage-blob to `v12.13.0`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0