Skip to content

Optimize and clean adding and removing infrastructure logic #224

Optimize and clean adding and removing infrastructure logic

Optimize and clean adding and removing infrastructure logic #224

Triggered via pull request July 23, 2025 16:29
@ServerlessLifeServerlessLife
synchronize #130
alpha
Status Failure
Total duration 10m 27s
Artifacts 1

pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

34 errors and 14 warnings
test/sam-alt.test.ts > sam-alt > call Lambda - testJsEsModule: test/sam-alt.test.ts#L104
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:104:37
test/sam-alt.test.ts > sam-alt > call Lambda - testJsEsModule: test/sam-alt.test.ts#L104
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:104:37
test/sam-alt.test.ts > sam-alt > call Lambda - testJsCommonJs: test/sam-alt.test.ts#L88
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:88:37
test/sam-alt.test.ts > sam-alt > call Lambda - testJsCommonJs: test/sam-alt.test.ts#L88
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:88:37
test/sam-alt.test.ts > sam-alt > call Lambda - testTsEsModule: test/sam-alt.test.ts#L72
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:72:37
test/sam-alt.test.ts > sam-alt > call Lambda - testTsEsModule: test/sam-alt.test.ts#L72
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:72:37
test/sam-alt.test.ts > sam-alt > call Lambda - testTsCommonJs: test/sam-alt.test.ts#L56
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:56:37
test/sam-alt.test.ts > sam-alt > call Lambda - testTsCommonJs: test/sam-alt.test.ts#L56
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sam-alt.test.ts:56:37
test/sam-alt.test.ts > sam-alt > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected { Object (NODE_OPTIONS) } to match object { …(4) } (1 matching property omitted from actual) - Expected + Received { - "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", - "LLD_DEBUGGER_ID": Any<String>, - "LLD_FUNCTION_ID": Any<String>, - "LLD_INITIAL_TIMEOUT": Any<String>, + "NODE_OPTIONS": " --enable-source-maps", } ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sam-alt.test.ts:43:5
test/sam-alt.test.ts > sam-alt > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected { Object (NODE_OPTIONS) } to match object { …(4) } (1 matching property omitted from actual) - Expected + Received { - "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", - "LLD_DEBUGGER_ID": Any<String>, - "LLD_FUNCTION_ID": Any<String>, - "LLD_INITIAL_TIMEOUT": Any<String>, + "NODE_OPTIONS": " --enable-source-maps", } ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sam-alt.test.ts:43:5
test / test-osls-basic
Process completed with exit code 1.
test/osls-basic.test.ts > osls-basic > call Lambda - testJsEsModule: test/osls-basic.test.ts#L58
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-basic.test.ts:58:37
test/osls-basic.test.ts > osls-basic > call Lambda - testJsEsModule: test/osls-basic.test.ts#L58
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-basic.test.ts:58:37
test/osls-basic.test.ts > osls-basic > call Lambda - testJsCommonJs: test/osls-basic.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-basic.test.ts:45:37
test/osls-basic.test.ts > osls-basic > call Lambda - testJsCommonJs: test/osls-basic.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-basic.test.ts:45:37
test/osls-basic.test.ts > osls-basic > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/osls-basic.test.ts:35:5
test/osls-basic.test.ts > osls-basic > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/osls-basic.test.ts:35:5
test / test-osls-esbuild-cjs
Process completed with exit code 1.
test/osls-esbuild-cjs.test.ts > osls-esbuild-cjs > call Lambda - testTsCommonJs: test/osls-esbuild-cjs.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-esbuild-cjs.test.ts:45:37
test/osls-esbuild-cjs.test.ts > osls-esbuild-cjs > call Lambda - testTsCommonJs: test/osls-esbuild-cjs.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/osls-esbuild-cjs.test.ts:45:37
test/osls-esbuild-cjs.test.ts > osls-esbuild-cjs > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/osls-esbuild-cjs.test.ts:35:5
test/osls-esbuild-cjs.test.ts > osls-esbuild-cjs > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/osls-esbuild-cjs.test.ts:35:5
test / test-sls-basic
Process completed with exit code 1.
test/sls-basic.test.ts > sls-basic > call Lambda - testJsEsModule: test/sls-basic.test.ts#L58
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sls-basic.test.ts:58:37
test/sls-basic.test.ts > sls-basic > call Lambda - testJsEsModule: test/sls-basic.test.ts#L58
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sls-basic.test.ts:58:37
test/sls-basic.test.ts > sls-basic > call Lambda - testJsCommonJs: test/sls-basic.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sls-basic.test.ts:45:37
test/sls-basic.test.ts > sls-basic > call Lambda - testJsCommonJs: test/utils/callLambda.ts#L9
AccessDeniedException: The role defined for the function cannot be assumed by Lambda. ❯ throwDefaultError node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-cjs/index.js:388:20 ❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/smithy-client/dist-cjs/index.js:397:5 ❯ de_CommandError node_modules/@aws-sdk/client-lambda/dist-cjs/index.js:4079:14 ❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-serde/dist-cjs/index.js:36:20 ❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/core/dist-cjs/index.js:193:18 ❯ node_modules/@aws-sdk/client-lambda/node_modules/@smithy/middleware-retry/dist-cjs/index.js:320:38 ❯ node_modules/@aws-sdk/client-lambda/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:33:22 ❯ Module.callLambda test/utils/callLambda.ts:9:23 ❯ test/sls-basic.test.ts:42:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { '$fault': 'client', '$metadata': { httpStatusCode: 403, requestId: '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', extendedRequestId: undefined, cfId: undefined, attempts: 1, totalRetryDelay: +0 }, '$response': { statusCode: 403, reason: 'Forbidden', headers: { date: 'Wed, 23 Jul 2025 16:34:09 GMT', 'content-type': 'application/json', 'content-length': '76', connection: 'keep-alive', 'x-amzn-requestid': '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', 'x-amzn-errortype': 'AccessDeniedException' }, body: { _events: { close: undefined, error: 'Function<anonymous>', data: undefined, end: 'Function<responseOnEnd>', readable: undefined }, _readableState: { highWaterMark: 65536, buffer: [], bufferIndex: +0, length: +0, pipes: [], awaitDrainWriters: null, constructor: 'Function<ReadableState>', objectMode: false, ended: true, endEmitted: true, reading: false, constructed: true, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: true, closed: true, closeEmitted: true, multiAwaitDrain: false, readingMore: true, dataEmitted: true, errored: null, defaultEncoding: 'utf8', decoder: null, encoding: null, flowing: false, pipesCount: +0, paused: true }, _maxListeners: undefined, socket: null, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'Date', 'Wed, 23 Jul 2025 16:34:09 GMT', 'Content-Type', 'application/json', 'Content-Length', '76', 'Connection', 'keep-alive', 'x-amzn-RequestId', '54dfaf8e-d92e-4f44-813e-65e20acd4b4a', 'x-amzn-ErrorType', 'AccessDeniedException' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 403, statusMessage: 'Forbidden', client: { _tlsOptions: { allowHalfOpen: undefined, pipe: false, secureContext: { context: { init: 'Function<init>', setKey: 'Function<setKey>', setCert: 'Function<setCert>', addCACert: 'Function<addCACert>', setAllowPartialTrustChain: 'Function<setAllowPartialTrustChain>', addCRL: 'Function<addCRL>', addRootCerts: 'Function<addRootCerts>', setCipherSuites: 'Function<setCipherSuites>', setCiphers: 'Function<setCiphers>', setSigalgs: 'Function<setSigalgs>', setECDHCurve: 'Function<setECDHCurve>', setDHParam: 'Function<setDHParam>', setMaxProto: 'Function<setMaxProto>', setMinProto: 'Function<setMinProto>', getMaxProto: 'Function<getMaxProto>', getMinProto: 'Function<getMinProto>', setOptions: 'Function<setOptions>', setSessionIdContext: 'Function<setSessionIdContext>', setSessionTimeout: 'Function<setSessionTimeout>', close: 'Function<close>', loadPKCS12: 'Function<loadPKCS12>', setTicketKeys: 'Function<setTicketKeys>', enableTicketKeyCallback: 'Function<enableTicketKeyCallback>', getTicketKeys: 'Function<getTicketKeys>', getCertificate: 'Function<getCertificate>', getIssuer: 'Function<getIssuer>', setEngineKey: 'Function<setEngineKey>', setClientCertEngine: 'Function<setClientCertEngine>', _external: {}, constructor: 'Function<SecureContext>' }, constructor: 'Function<SecureContext>' }, isServer: false, requestCert: true, rejectUnauthorized: true, session: undefined, ALPNProtocols
test/sls-basic.test.ts > sls-basic > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sls-basic.test.ts:35:5
test/sls-basic.test.ts > sls-basic > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sls-basic.test.ts:35:5
test / test-sls-esbuild-cjs
Process completed with exit code 1.
test/sls-esbuild-cjs.test.ts > sls-esbuild-cjs > call Lambda - testTsCommonJs: test/sls-esbuild-cjs.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sls-esbuild-cjs.test.ts:45:37
test/sls-esbuild-cjs.test.ts > sls-esbuild-cjs > call Lambda - testTsCommonJs: test/sls-esbuild-cjs.test.ts#L45
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ test/sls-esbuild-cjs.test.ts:45:37
test/sls-esbuild-cjs.test.ts > sls-esbuild-cjs > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sls-esbuild-cjs.test.ts:35:5
test/sls-esbuild-cjs.test.ts > sls-esbuild-cjs > check infra: test/utils/expectInfraDeployed.ts#L13
AssertionError: expected undefined to match object { …(4) } - Expected: { "AWS_LAMBDA_EXEC_WRAPPER": "/opt/lld-wrapper", "LLD_DEBUGGER_ID": Any<String>, "LLD_FUNCTION_ID": Any<String>, "LLD_INITIAL_TIMEOUT": Any<String>, } + Received: undefined ❯ Module.expectInfraDeployed test/utils/expectInfraDeployed.ts:13:7 ❯ test/sls-esbuild-cjs.test.ts:35:5
build / lint & typecheck
The process '/usr/bin/git' failed with exit code 128
build / build
The process '/usr/bin/git' failed with exit code 128
test / test-sam-alt
The process '/usr/bin/git' failed with exit code 128
test / test-osls-basic
The process '/usr/bin/git' failed with exit code 128
test / test-osls-esbuild-cjs
The process '/usr/bin/git' failed with exit code 128
test / test-sls-basic
The process '/usr/bin/git' failed with exit code 128
test / test-sls-esbuild-cjs
The process '/usr/bin/git' failed with exit code 128
test / test-sls-esbuild-esm
The process '/usr/bin/git' failed with exit code 128
test / test-osls-esbuild-esm
The process '/usr/bin/git' failed with exit code 128
test / test-sam-basic
The process '/usr/bin/git' failed with exit code 128
test / test-opentofu-basic
The process '/usr/bin/git' failed with exit code 128
test / test-terraform-basic
The process '/usr/bin/git' failed with exit code 128
test / test-cdk-esm
The process '/usr/bin/git' failed with exit code 128
test / test-cdk-basic
The process '/usr/bin/git' failed with exit code 128

Artifacts

Produced during runtime
Name Size Digest
dist Expired
2.41 MB
sha256:22fd73c74b04ca0ebf1c64a0b74e8d25405dae4cca5d3e74daaa25fee5df080a