feat: Added utilization info for ECS #5345
ci-workflow.yml
on: pull_request
should_run
8s
Matrix: integration
Matrix: unit
Matrix: versioned-internal
Matrix: ci
Matrix: lint
Matrix: versioned-external
Matrix: codecov
all-clear
0s
Annotations
10 errors, 10 warnings, and 36 notices
records json parsing error:
test/unit/utilization/ecs-info.test.js#L153
Error [ERR_TEST_FAILURE]: Expected values to be loosely deep-equal:
"Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17 (line 1 column 18)"
should loosely deep-equal
'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input'
at process.emit (node:events:520:28)
at process.emit (/home/runner/work/node-newrelic/node-newrelic/node_modules/source-map-support/source-map-support.js:516:21)
at domainProcessFatalException (/home/runner/work/node-newrelic/node-newrelic/node_modules/async-hook-domain/index.js:174:36)
at process.domainProcessFatalException (/home/runner/work/node-newrelic/node-newrelic/node_modules/async-hook-domain/index.js:161:14) {
code: 'ERR_TEST_FAILURE',
failureType: 'uncaughtException',
cause: AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:
"Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17 (line 1 column 18)"
should loosely deep-equal
'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input'
at callback (/home/runner/work/node-newrelic/node-newrelic/test/unit/utilization/ecs-info.test.js:153:12)
at callback (/home/runner/work/node-newrelic/node-newrelic/lib/utilization/ecs-info.js:43:16)
at IncomingMessage.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/lib/utilization/ecs-info.js:81:9)
at IncomingMessage.emit (node:events:532:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:90:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: "Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17 (line 1 column 18)",
expected: 'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input',
operator: 'deepEqual'
}
}
|
unit (22.x)
Process completed with exit code 1.
|
test/integration/core/dns.tap.js:
test/integration/core/dns.tap.js#L1
[Error: test failed] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: 'test failed', exitCode: 1, signal: null }
|
integration (22.x)
Process completed with exit code 1.
|
records json parsing error:
test/unit/utilization/ecs-info.test.js#L153
Error [ERR_TEST_FAILURE]: Expected values to be loosely deep-equal:
"Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17"
should loosely deep-equal
'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input'
at process.emit (node:events:519:28)
at process.emit (/home/runner/work/node-newrelic/node-newrelic/node_modules/source-map-support/source-map-support.js:516:21)
at domainProcessFatalException (/home/runner/work/node-newrelic/node-newrelic/node_modules/async-hook-domain/index.js:174:36)
at process.domainProcessFatalException (/home/runner/work/node-newrelic/node-newrelic/node_modules/async-hook-domain/index.js:161:14) {
code: 'ERR_TEST_FAILURE',
failureType: 'uncaughtException',
cause: AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:
"Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17"
should loosely deep-equal
'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input'
at callback (/home/runner/work/node-newrelic/node-newrelic/test/unit/utilization/ecs-info.test.js:153:12)
at callback (/home/runner/work/node-newrelic/node-newrelic/lib/utilization/ecs-info.js:43:16)
at IncomingMessage.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/lib/utilization/ecs-info.js:81:9)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: "Failed to process ECS API response, omitting boot info: Expected ',' or '}' after property value in JSON at position 17",
expected: 'Failed to process ECS API response, omitting boot info: Unexpected end of JSON input',
operator: 'deepEqual'
}
}
|
records error for no id in response:
test/unit/utilization/ecs-info.test.js#L48
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] {
code: 'ERR_TEST_FAILURE',
failureType: 'hookFailed',
cause: Error: Only one agent at a time! This one was created at:
at Object.loadMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:106:22)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/utilization/ecs-info.test.js:48:25)
at TestHook.runInAsyncScope (node:async_hooks:206:9)
at TestHook.run (node:internal/test_runner/test:789:25)
at TestHook.run (node:internal/test_runner/test:1037:18)
at node:internal/test_runner/test:716:20
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Test.runHook (node:internal/test_runner/test:714:7)
at Test.run (node:internal/test_runner/test:765:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7)
}
|
records found id:
test/unit/utilization/ecs-info.test.js#L48
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] {
code: 'ERR_TEST_FAILURE',
failureType: 'hookFailed',
cause: Error: Only one agent at a time! This one was created at:
at Object.loadMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:106:22)
at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/utilization/ecs-info.test.js:48:25)
at TestHook.runInAsyncScope (node:async_hooks:206:9)
at TestHook.run (node:internal/test_runner/test:789:25)
at TestHook.run (node:internal/test_runner/test:1037:18)
at node:internal/test_runner/test:716:20
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Test.runHook (node:internal/test_runner/test:714:7)
at Test.run (node:internal/test_runner/test:765:9)
at Test.processPendingSubtests (node:internal/test_runner/test:517:7)
}
|
test/unit/utilization/ecs-info.test.js:
test/unit/utilization/ecs-info.test.js#L1
[Error [ERR_TEST_FAILURE]: test timed out after 180000ms] { code: 'ERR_TEST_FAILURE', failureType: 'testTimeoutFailure', cause: 'test timed out after 180000ms' }
|
unit (20.x)
Process completed with exit code 1.
|
all-clear
Process completed with exit code 1.
|
lint (lts/*):
api.js#L1550
The type 'getTraceMetadata' is undefined
|
lint (lts/*):
api.js#L1904
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L124
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L173
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L205
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L311
Missing JSDoc @returns declaration
|
lint (lts/*):
lib/agent.js#L210
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L221
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L231
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L242
'config' is already declared in the upper scope on line 158 column 16
|
ci (lts/*)
Total Tests: 4
Suites 📂: 0
Passed ✅: 4
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 913.461ms
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
integration (18.x)
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 579.373ms
|
integration (18.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 66
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 132472.999ms
|
integration (20.x)
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 447.315ms
|
integration (20.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 66
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 136908.509ms
|
integration (22.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 65
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 168921.514ms
|
|
|
|
|
|
|
|
|
|
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
integration-tests-cjs-18.x
|
124 KB |
|
integration-tests-cjs-20.x
|
124 KB |
|
integration-tests-esm-18.x
|
72.5 KB |
|
integration-tests-esm-20.x
|
72.5 KB |
|
unit-tests-18.x
|
160 KB |
|
versioned-tests-18.x
|
142 KB |
|
versioned-tests-20.x
|
142 KB |
|
versioned-tests-22.x
|
142 KB |
|