adobe / aio-lib-web

Scripts to build, deploy and run an Adobe I/O cloud native app
https://www.adobe.io/
Apache License 2.0
4 stars 10 forks source link

e2e tests: `identity.expiration.getTime` is not a function #200

Closed shazron closed 1 month ago

shazron commented 1 month ago

Description

This error was introduced today in the @aws-sdk/client-s3@3.624.0 release.

'    TypeError: identity.expiration.getTime is not a function\n' +
    '        at /home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/node_modules/@smithy/core/dist-cjs/index.js:272:154\n' +
    '        at /home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/node_modules/@smithy/core/dist-cjs/index.js:317:9\n' +
    '        at /home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/node_modules/@smithy/core/dist-cjs/index.js:82:17\n' +
    '        at /home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14\n' +
    '        at /home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22\n' +
    '        at RemoteStorage.folderExists (/home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/lib/remote-storage.js:91:27)\n' +
    '        at deployWeb (/home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/src/deploy-web.js:36:18)\n' +
    '        at Object.<anonymous> (/home/runner/work/aio-e2e-tests/aio-e2e-tests/.repos/aio-lib-web/e2e/e2e.js:86:13)\n' +
    '\n' +

Repro

Interim Fix

Final Fix

  1. wherever we have credentials.expiration, convert it to a Date object: new Date(credentials.expiration). The credentials.expiration value is an ISO-8601 string
  2. remove the pin, use ^
aiojbot commented 1 month ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-3112