Skip to content

Commit

Permalink
revert "build(deps): bump @aws-sdk/client-s3 from 3.705.0 to 3.731.1" (
Browse files Browse the repository at this point in the history
…#548)

Снова откатываем до 3.705.0.

<img width="320" alt="image" src="https://github.com/user-attachments/assets/f77a6d31-f094-4e13-ba3e-ed60507701a5" />

<details><summary>Лог</summary>
<p>

```sh
Run VKCOM/gh-actions/VKUI/s3@main
  with:
    awsAccessKeyId: ***
    awsSecretAccessKey: ***
    awsBucket: vkui-screenshot
    awsEndpoint: https://hb.bizmrg.com
    command: upload
    commandUploadSrc: styleguide-dist/
    commandUploadDist: pull/8171/146605da870698a5b870e[2](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:2)f714d4[3](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:3)9ed1d2bf188/styleguide
  env:
    PR_HEAD_REPOSITORY_FULL_NAME: VKCOM/VKUI
    PR_HEAD_BRANCH: e.muhamethanov/775[4](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:4)/image-filter-prop
    PR_HEAD_SHA: 14660[5](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:5)da870698a5b870e2f714d439ed1d2bf188
    AWS_S3_URL: https://vkui-screenshot.hb.bizmrg.com
Initial S3
Command upload
Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.
Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.
Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.
An error was encountered in a non-retryable streaming request.
Error: InvalidArgument: x-amz-content-sha25[6](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:6) must be UNSIGNED-PAYLOAD, STREAMING-AWS4-HMAC-SHA256-PAYLOAD, or a valid sha256 value.
    at throwDefaultError (/home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:23961:24)
    at /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:239[7](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:7)0:9
    at de_CommandError (/home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:4515[8](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:8):18)
    at process.processTicksAndRejections (node:internal/process/task_queues:[9](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:9)5:5)
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:19437:24
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:28861:22
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:3[14](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:14)15:42
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:27925:22
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:285[15](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:16):26
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:28540:18
Error: x-amz-content-sha256 must be UNSIGNED-PAYLOAD, STREAMING-AWS4-HMAC-SHA256-PAYLOAD, or a valid sha256 value.
An error was encountered in a non-retryable streaming request.
/home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:23961
      const response = new exceptionCtor({
                       ^

InvalidArgument: x-amz-content-sha256 must be UNSIGNED-PAYLOAD, STREAMING-AWS4-HMAC-SHA256-PAYLOAD, or a valid sha256 value.
    at throwDefaultError (/home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:23961:24)
    at /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:23970:9
    at de_CommandError (/home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:45158:[18](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:19))
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:[19](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:20)437:24
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:28861:22
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:31415:42
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:27925:22
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:28515:26
    at async /home/runner/work/_actions/VKCOM/gh-actions/main/VKUI/s3/dist/index.js:28540:18 {
  '$fault': 'client',
  '$metadata': {
    httpStatusCode: 400,
    requestId: undefined,
    extendedRequestId: undefined,
    cfId: undefined
  },
  Code: 'InvalidArgument',
  AWSAccessKeyId: '***',
  RequestId: 'ohUtrj3xkU',
  ArgumentValue: 'STREAMING-UNSIGNED-PAYLOAD-TRAILER',
  ArgumentName: 'x-amz-content-sha[25](https://github.com/VKCOM/VKUI/actions/runs/12884184217/job/35919947815#step:3:26)6'
}
```

</p>
</details> 

Чтобы поправить ошибку, нужно изучить какие изменений нужно внести в **s3** и **size-upload**, 

- related to #544, #526
  • Loading branch information
inomdzhon authored Jan 21, 2025
1 parent d4e64da commit 7088963
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VKUI/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@actions/core": "^1.11.1",
"@aws-sdk/client-s3": "^3.731.1",
"@aws-sdk/client-s3": "^3.705.0",
"lodash": "^4.17.21",
"mime-types": "^2.1.35"
},
Expand Down
2 changes: 1 addition & 1 deletion VKUI/size-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@aws-sdk/client-s3": "^3.731.1",
"@aws-sdk/client-s3": "^3.705.0",
"mime-types": "^2.1.35"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ __metadata:
resolution: "@actions-internal/s3@workspace:VKUI/s3"
dependencies:
"@actions/core": "npm:^1.11.1"
"@aws-sdk/client-s3": "npm:^3.731.1"
"@aws-sdk/client-s3": "npm:^3.705.0"
"@types/lodash": "npm:^4.17.14"
"@types/mime-types": "npm:^2.1.4"
"@types/node": "npm:^22.10.7"
Expand All @@ -132,7 +132,7 @@ __metadata:
dependencies:
"@actions/core": "npm:^1.11.1"
"@actions/exec": "npm:^1.1.1"
"@aws-sdk/client-s3": "npm:^3.731.1"
"@aws-sdk/client-s3": "npm:^3.705.0"
"@types/mime-types": "npm:^2.1.4"
"@types/node": "npm:^22.10.7"
mime-types: "npm:^2.1.35"
Expand Down Expand Up @@ -294,7 +294,7 @@ __metadata:
languageName: node
linkType: hard

"@aws-sdk/client-s3@npm:^3.731.1":
"@aws-sdk/client-s3@npm:^3.705.0":
version: 3.731.1
resolution: "@aws-sdk/client-s3@npm:3.731.1"
dependencies:
Expand Down

0 comments on commit 7088963

Please sign in to comment.