Skip to content

test: added unit tests for missing coverage #3065

test: added unit tests for missing coverage

test: added unit tests for missing coverage #3065

Triggered via push December 19, 2024 20:22
Status Failure
Total duration 3m 54s
Artifacts
Matrix: smoke
Fit to window
Zoom out
Zoom in

Annotations

32 errors, 1 warning, and 3 notices
@aws-sdk/s3-request-presigner functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js#L33
Error [ERR_TEST_FAILURE]: Could not load credentials from any providers at process.emit (node:events:518:28) at process.wrappedEmit (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { code: 'ERR_TEST_FAILURE', failureType: 'unhandledRejection', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async getSignedUrl (/home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js:175:22) at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js:33:17 { tryNextLink: false } }
test/smoke/proxy-api-connection-ssl.test.js: test/smoke/proxy-api-connection-ssl.test.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 180000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms' }
test/smoke/proxy-api-connection-port.test.js: test/smoke/proxy-api-connection-port.test.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 180000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms' }
no proxy set should not use proxy agent: test/smoke/proxy-api-connection-noproxy.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
connecting with a LASP token should not error: test/smoke/lasp-connect.test.js#L16
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
missing required policies should result in shutdown: test/smoke/lasp-connect.test.js#L52
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
@aws-sdk/client-s3 functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js#L33
[Error [ERR_TEST_FAILURE]: Could not load credentials from any providers] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:33:22 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:27:3) { tryNextLink: false } }
loading the application via index.js: test/smoke/index/index.test.js#L12
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) at process.wrappedEmit [as emit] (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
Collector API should send transaction traces to staging-collector.newrelic.com: test/smoke/api/transaction-sample-data.test.js#L14
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
Collector API should send metrics to staging-collector.newrelic.com: test/smoke/api/metric-data.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:518:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
smoke (18.x)
The job was canceled because "_20_x" failed.
@aws-sdk/s3-request-presigner functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js#L33
Error [ERR_TEST_FAILURE]: Could not load credentials from any providers at process.emit (node:events:517:28) at process.wrappedEmit [as emit] (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { failureType: 'unhandledRejection', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async getSignedUrl (/home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js:175:22) at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js:33:17 { tryNextLink: false }, code: 'ERR_TEST_FAILURE' }
test/smoke/proxy-api-connection-ssl.test.js: test/smoke/proxy-api-connection-ssl.test.js#L1
Error [ERR_TEST_FAILURE]: test timed out after 180000ms at async Promise.allSettled (index 1) { failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms', code: 'ERR_TEST_FAILURE' }
test/smoke/proxy-api-connection-port.test.js: test/smoke/proxy-api-connection-port.test.js#L1
Error [ERR_TEST_FAILURE]: test timed out after 180000ms at async Promise.allSettled (index 2) { failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms', code: 'ERR_TEST_FAILURE' }
no proxy set should not use proxy agent: test/smoke/proxy-api-connection-noproxy.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
connecting with a LASP token should not error: test/smoke/lasp-connect.test.js#L16
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
missing required policies should result in shutdown: test/smoke/lasp-connect.test.js#L52
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
@aws-sdk/client-s3 functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js#L33
[Error [ERR_TEST_FAILURE]: Could not load credentials from any providers] { failureType: 'testCodeFailure', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:33:22 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:27:3) { tryNextLink: false }, code: 'ERR_TEST_FAILURE' }
loading the application via index.js: test/smoke/index/index.test.js#L12
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) at process.wrappedEmit [as emit] (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
Collector API should send transaction traces to staging-collector.newrelic.com: test/smoke/api/transaction-sample-data.test.js#L14
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
Collector API should send metrics to staging-collector.newrelic.com: test/smoke/api/metric-data.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:517:28) { failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved', code: 'ERR_TEST_FAILURE' }
smoke (22.x)
The job was canceled because "_20_x" failed.
@aws-sdk/s3-request-presigner functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js#L33
Error [ERR_TEST_FAILURE]: Could not load credentials from any providers at process.emit (node:events:524:28) at process.wrappedEmit (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { code: 'ERR_TEST_FAILURE', failureType: 'unhandledRejection', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async getSignedUrl (/home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/s3-request-presigner/dist-cjs/index.js:175:22) at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/s3-presigned-url.test.js:33:17 { tryNextLink: false } }
test/smoke/proxy-api-connection-ssl.test.js: test/smoke/proxy-api-connection-ssl.test.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 180000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms' }
test/smoke/proxy-api-connection-port.test.js: test/smoke/proxy-api-connection-port.test.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 180000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms' }
no proxy set should not use proxy agent: test/smoke/proxy-api-connection-noproxy.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
connecting with a LASP token should not error: test/smoke/lasp-connect.test.js#L16
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
missing required policies should result in shutdown: test/smoke/lasp-connect.test.js#L52
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
@aws-sdk/client-s3 functionality: async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js#L33
[Error [ERR_TEST_FAILURE]: Could not load credentials from any providers] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: Error [CredentialsProviderError]: Could not load credentials from any providers at /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js:136:13 at /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:97:33 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async coalesceProvider (/home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:124:18) at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/property-provider/dist-cjs/index.js:142:18 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@smithy/core/dist-cjs/index.js:86:17 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js:138:14 at async /home/runner/work/node-newrelic/node-newrelic/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js:34:22 at async /home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:33:22 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/smoke/client-s3.test.js:27:3) { tryNextLink: false } }
loading the application via index.js: test/smoke/index/index.test.js#L12
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) at process.wrappedEmit [as emit] (/home/runner/work/node-newrelic/node-newrelic/lib/instrumentation/core/globals.js:53:23) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
Collector API should send transaction traces to staging-collector.newrelic.com: test/smoke/api/transaction-sample-data.test.js#L14
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
Collector API should send metrics to staging-collector.newrelic.com: test/smoke/api/metric-data.test.js#L15
Error [ERR_TEST_FAILURE]: Promise resolution is still pending but the event loop has already resolved at process.emit (node:events:524:28) { code: 'ERR_TEST_FAILURE', failureType: 'cancelledByParent', cause: 'Promise resolution is still pending but the event loop has already resolved' }
smoke (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
smoke (20.x)
Total Tests: 22 Suites 📂: 0 Passed ✅: 5 Failed ❌: 7 Canceled 🚫: 10 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 180096.166ms
smoke (18.x)
Total Tests: 21 Suites 📂: 0 Passed ✅: 5 Failed ❌: 5 Canceled 🚫: 11 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 180070.916ms
smoke (22.x)
Total Tests: 22 Suites 📂: 0 Passed ✅: 5 Failed ❌: 7 Canceled 🚫: 10 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 180054.654ms