Skip to content

wip: wired up context manager, and segment synthesis #6146

wip: wired up context manager, and segment synthesis

wip: wired up context manager, and segment synthesis #6146

Triggered via push January 24, 2025 16:02
Status Failure
Total duration 13m 53s
Artifacts 3

ci-workflow.yml

on: push
should_run
8s
should_run
Matrix: integration
Matrix: unit
Matrix: versioned-internal
Matrix: ci
Matrix: lint
Matrix: versioned-external
Matrix: codecov
all-clear
0s
all-clear
Fit to window
Zoom out
Zoom in

Annotations

67 errors, 26 warnings, and 34 notices
versioned-external (22.x)
Process completed with exit code 1.
versioned-external (20.x)
Process completed with exit code 1.
versioned-external (18.x)
Process completed with exit code 1.
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { code: 'ERR_TEST_FAILURE', failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should receive the correct module (test-mod/module): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should have some NR properties after instrumented: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:93:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should clean up NR added properties: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:101:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should receive the correct module (sinon): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { code: 'ERR_TEST_FAILURE', failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should receive the correct module (test-mod/module): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should have some NR properties after instrumented: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:93:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should clean up NR added properties: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:101:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should receive the correct module (sinon): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at TestContext.test (node:internal/test_runner/test:313:20) }
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7), code: 'ERR_TEST_FAILURE' }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should receive the correct module (test-mod/module): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should have some NR properties after instrumented: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:93:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should clean up NR added properties: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:101:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:120:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should be sent a shim and the loaded module: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:60:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should construct a DatastoreShim if the type is "datastore": test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:69:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should receive the correct module (sinon): test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:77:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should only run the instrumentation once: test/unit/shimmer.test.js#L31
Error [ERR_TEST_FAILURE]: failed running beforeEach hook at async TestContext.makeModuleTests (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:82:3) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:127:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:119:3) { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/shimmer.test.js:31:27) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
should record metrics about data usage: test/integration/collector-remote-method.test.js#L94
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'warn')] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/collector-remote-method.test.js:94:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.run (node:internal/test_runner/test:797:9) at async Test.processPendingSubtests (node:internal/test_runner/test:527:7) }
bind in transaction: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { code: 'ERR_TEST_FAILURE', failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) }
bind outside transaction: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
bind + throw: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
bind + capture error: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
bind + full: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
bind + bad function: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
bind + args: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
getTransaction: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
getSegment: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:206:9) at TestHook.run (node:internal/test_runner/test:796:25) at TestHook.run (node:internal/test_runner/test:1041:18) at node:internal/test_runner/test:723:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:721:7) at async Test.run (node:internal/test_runner/test:772:9) }
should record metrics about data usage: test/integration/collector-remote-method.test.js#L94
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'warn')] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/collector-remote-method.test.js:94:24) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async Test.run (node:internal/test_runner/test:932:9) at async Test.processPendingSubtests (node:internal/test_runner/test:629:7) }
bind in transaction: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { code: 'ERR_TEST_FAILURE', failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) }
bind outside transaction: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
bind + throw: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
bind + capture error: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
bind + full: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
bind + bad function: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
bind + args: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
getTransaction: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
getSegment: test/integration/transaction/tracer.test.js#L17
[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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:211:14) at TestHook.run (node:internal/test_runner/test:931:25) at TestHook.run (node:internal/test_runner/test:1222:18) at Test.runHook (node:internal/test_runner/test:850:20) at Test.run (node:internal/test_runner/test:907:27) at Test.start (node:internal/test_runner/test:829:17) at startSubtestAfterBootstrap (node:internal/test_runner/harness:296:17) }
should record metrics about data usage: test/integration/collector-remote-method.test.js#L94
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'warn')] { failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/collector-remote-method.test.js:94:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.run (node:internal/test_runner/test:632:9) at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), code: 'ERR_TEST_FAILURE' }
does not mark files with known module names as uninstrumented: test/integration/uninstrumented/uninstrumented.test.js#L30
[Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'warn')] { failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/uninstrumented/uninstrumented.test.js:30:24) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at Test.start (node:internal/test_runner/test:542:17) at startSubtest (node:internal/test_runner/harness:214:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5), code: 'ERR_TEST_FAILURE' }
all instrumented modules should be detected when uninstrumented: test/integration/uninstrumented/uninstrumented.test.js#L30
[Error [ERR_TEST_FAILURE]: Only one agent at a time! This one was created at:] { failureType: 'testCodeFailure', 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/uninstrumented/uninstrumented.test.js:30:24) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at Test.start (node:internal/test_runner/test:542:17) at startSubtest (node:internal/test_runner/harness:214:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5), code: 'ERR_TEST_FAILURE' }
can instrument the same module from multiple installs: test/integration/shimmer/reinstrument.test.js#L15
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/shimmer/reinstrument.test.js:15:25) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7), code: 'ERR_TEST_FAILURE' }
bind in transaction: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { failureType: 'hookFailed', cause: TypeError [Error]: Cannot read properties of undefined (reading 'warn') at setupOtel (/home/runner/work/node-newrelic/node-newrelic/lib/otel/setup.js:13:18) at Object.bootstrapInstrumentation (/home/runner/work/node-newrelic/node-newrelic/lib/shimmer.js:398:5) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:169:11) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7), code: 'ERR_TEST_FAILURE' }
bind outside transaction: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
bind + throw: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
bind + capture error: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
bind + full: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
bind + bad function: test/integration/transaction/tracer.test.js#L17
[Error [ERR_TEST_FAILURE]: failed running beforeEach hook] { 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:90:22) at helper.instrumentMockedAgent (/home/runner/work/node-newrelic/node-newrelic/test/lib/agent_helper.js:167:24) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/integration/transaction/tracer.test.js:17:24) at TestHook.runInAsyncScope (node:async_hooks:203:9) at TestHook.run (node:internal/test_runner/test:631:25) at TestHook.run (node:internal/test_runner/test:856:18) at node:internal/test_runner/test:565:20 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Test.runHook (node:internal/test_runner/test:563:7) at async Test.run (node:internal/test_runner/test:607:9), code: 'ERR_TEST_FAILURE' }
versioned-internal (22.x)
Process completed with exit code 4.
versioned-internal (20.x)
Process completed with exit code 4.
versioned-internal (18.x)
Process completed with exit code 4.
all-clear
Process completed with exit code 1.
should_run
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ci (lts/*)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-external (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-external (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-external (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (lts/*)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (lts/*): api.js#L1567
The type 'getTraceMetadata' is undefined
lint (lts/*): api.js#L1921
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
unit (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
unit (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
unit (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
integration (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-internal (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-internal (20.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
versioned-internal (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
all-clear
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ci (lts/*)
Total Tests: 35 Suites 📂: 0 Passed ✅: 35 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 795.526ms
unit (20.x)
Total Tests: 4479 Suites 📂: 0 Passed ✅: 4071 Failed ❌: 386 Canceled 🚫: 0 Skipped ⏭️: 3 Todo 📝: 19 Duration 🕐: 53881.542ms
unit (22.x)
Total Tests: 4479 Suites 📂: 0 Passed ✅: 4071 Failed ❌: 386 Canceled 🚫: 0 Skipped ⏭️: 3 Todo 📝: 19 Duration 🕐: 51288.360ms
unit (18.x)
Total Tests: 4481 Suites 📂: 0 Passed ✅: 4076 Failed ❌: 386 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 19 Duration 🕐: 58119.820ms
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If a New Relic agent started a trace, and then a non-New Relic tracer propagated the trace, then the traceparent span ID would updated by the non-New Relic tracer, but not the span ID in the New Relic tracestate entry
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the parent is a New Relic agent with span events disabled it SHOULD omit span id from the tracestate. This verifies agents propagate Trace Context payloads when the parent is a New Relic agent with span events disabled
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
the transaction must be marked sampled=true so a Span event is created
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the new relic payload's version is higher than 0, with extra new fields, all the existing fields should be read and used, and the extra future fields should be ignored.
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
outbound newrelic headers are built from w3c headers, ignoring inbound newrelic headers
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the traceparent header is present on an inbound request, conforming agents MUST ignore any newrelic header. If the traceparent header is invalid, a new trace MUST be started. The newrelic header MUST be used _only_ when traceparent is _missing_.
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Tests correct handling of newrelic headers Agents may receive a traceId in upper-case, or shorter than 32 characters. In this case, the traceId MUST be left-padded with zeros AND lower-cased The outbound newrelic header, if configured, should include the traceId as-received.
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
With both spans and transaction events disabled, there will be no events to verify intrinsics against. tracestate.span_id and tracestate.transaction_id are not expected on outbound payloads.
integration (20.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Test a payload that originates from a serverless agent. The only difference in the payload between a serverless and non-serverless agent is the `appId` in the tracestate header will be 'Unknown'.
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If a New Relic agent started a trace, and then a non-New Relic tracer propagated the trace, then the traceparent span ID would updated by the non-New Relic tracer, but not the span ID in the New Relic tracestate entry
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the parent is a New Relic agent with span events disabled it SHOULD omit span id from the tracestate. This verifies agents propagate Trace Context payloads when the parent is a New Relic agent with span events disabled
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
the transaction must be marked sampled=true so a Span event is created
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the new relic payload's version is higher than 0, with extra new fields, all the existing fields should be read and used, and the extra future fields should be ignored.
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
outbound newrelic headers are built from w3c headers, ignoring inbound newrelic headers
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the traceparent header is present on an inbound request, conforming agents MUST ignore any newrelic header. If the traceparent header is invalid, a new trace MUST be started. The newrelic header MUST be used _only_ when traceparent is _missing_.
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Tests correct handling of newrelic headers Agents may receive a traceId in upper-case, or shorter than 32 characters. In this case, the traceId MUST be left-padded with zeros AND lower-cased The outbound newrelic header, if configured, should include the traceId as-received.
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
With both spans and transaction events disabled, there will be no events to verify intrinsics against. tracestate.span_id and tracestate.transaction_id are not expected on outbound payloads.
integration (22.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Test a payload that originates from a serverless agent. The only difference in the payload between a serverless and non-serverless agent is the `appId` in the tracestate header will be 'Unknown'.
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If a New Relic agent started a trace, and then a non-New Relic tracer propagated the trace, then the traceparent span ID would updated by the non-New Relic tracer, but not the span ID in the New Relic tracestate entry
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the parent is a New Relic agent with span events disabled it SHOULD omit span id from the tracestate. This verifies agents propagate Trace Context payloads when the parent is a New Relic agent with span events disabled
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
the transaction must be marked sampled=true so a Span event is created
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the new relic payload's version is higher than 0, with extra new fields, all the existing fields should be read and used, and the extra future fields should be ignored.
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
outbound newrelic headers are built from w3c headers, ignoring inbound newrelic headers
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
If the traceparent header is present on an inbound request, conforming agents MUST ignore any newrelic header. If the traceparent header is invalid, a new trace MUST be started. The newrelic header MUST be used _only_ when traceparent is _missing_.
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Tests correct handling of newrelic headers Agents may receive a traceId in upper-case, or shorter than 32 characters. In this case, the traceId MUST be left-padded with zeros AND lower-cased The outbound newrelic header, if configured, should include the traceId as-received.
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
With both spans and transaction events disabled, there will be no events to verify intrinsics against. tracestate.span_id and tracestate.transaction_id are not expected on outbound payloads.
integration (18.x): test/integration/distributed-tracing/trace-context-cross-agent.test.js#L324
Test a payload that originates from a serverless agent. The only difference in the payload between a serverless and non-serverless agent is the `appId` in the tracestate header will be 'Unknown'.

Artifacts

Produced during runtime
Name Size
logs-18.x.tgz
88.5 KB
logs-20.x.tgz
88 KB
logs-22.x.tgz
87.7 KB