Skip to content

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

Merged
kotewar merged 12 commits into
mainfrom
kotewar/updating-blobstorage-client-to-12.13.0
Mar 9, 2023
Merged

Updating blob storage client to 12.13.0 in actions/cache#1363
kotewar merged 12 commits into
mainfrom
kotewar/updating-blobstorage-client-to-12.13.0

Conversation

@kotewar

@kotewar kotewar commented Mar 6, 2023

Copy link
Copy Markdown
Contributor

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
"rootDir": "./src",
"lib": ["es6", "dom"]
"lib": ["es6", "dom"],
"useUnknownInCatchVariables": false

Copy link
Copy Markdown
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.

Comment thread packages/cache/package.json Outdated
Comment thread packages/cache/package.json Outdated
"@types/semver": "^6.0.0",
"@types/uuid": "^3.4.5",
"typescript": "^3.8.3"
"typescript": "~4.8.0"

Copy link
Copy Markdown

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.

@kotewar kotewar Mar 6, 2023

Copy link
Copy Markdown
Contributor Author

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.

Comment thread packages/cache/src/internal/downloadUtils.ts
@kotewar
kotewar requested a review from a team March 6, 2023 13:32
@kotewar

kotewar commented Mar 6, 2023

Copy link
Copy Markdown
Contributor Author

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
downloadConcurrency: 8,
timeoutInMs: 30000,
segmentTimeoutInMs: 3600000,
segmentTimeoutInMs: 600000,

Copy link
Copy Markdown

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