refactor: Update plugin to account for removing segment from transaction and child segments #812
Annotations
10 errors, 1 warning, and 1 notice
tests/integration/state-loss.test.js#L107
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'measure')
at process.emit (node:events:517:28)
at process.wrappedEmit [as emit] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/globals.js:54:23)
at process.wrappedFatalException [as _fatalException] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/globals.js:33:23) {
failureType: 'uncaughtException',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'measure')
at createMetricPairs (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/lib/common.js:113:17)
at recordOperationSegment (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/lib/common.js:108:3)
at Transaction.record (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/index.js:696:23)
at Transaction.end (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/index.js:230:10)
at ServerResponse.instrumentedFinish (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/http.js:200:15)
at Object.onceWrapper (node:events:631:28)
at ServerResponse.emit (node:events:529:35)
at AsyncLocalStorage.run (node:async_hooks:338:14)
at AsyncLocalContextManager.runInContext (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/context-manager/async-local-context-manager.js:62:38)
at ServerResponse.wrapped [as emit] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/tracer/index.js:203:37),
code: 'ERR_TEST_FAILURE'
}
|
tests/integration/state-loss.test.js#L108
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupCoreTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:40:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/state-loss.test.js:108:11)
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'
}
|
tests/integration/metrics.test.js#L19
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'measure')
at process.emit (node:events:517:28)
at process.wrappedEmit [as emit] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/globals.js:54:23)
at process.wrappedFatalException [as _fatalException] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/globals.js:33:23) {
failureType: 'uncaughtException',
cause: TypeError [Error]: Cannot read properties of undefined (reading 'measure')
at createMetricPairs (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/lib/common.js:113:17)
at recordOperationSegment (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/lib/common.js:108:3)
at Transaction.record (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/index.js:696:23)
at Transaction.end (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/index.js:230:10)
at ServerResponse.instrumentedFinish (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/instrumentation/core/http.js:200:15)
at Object.onceWrapper (node:events:631:28)
at ServerResponse.emit (node:events:529:35)
at AsyncLocalStorage.run (node:async_hooks:338:14)
at AsyncLocalContextManager.runInContext (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/context-manager/async-local-context-manager.js:62:38)
at ServerResponse.wrapped [as emit] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/newrelic/lib/transaction/tracer/index.js:203:37),
code: 'ERR_TEST_FAILURE'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
tests/integration/metrics.test.js#L20
[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 new TestAgent (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:70:19)
at Function.makeInstrumented (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:104:18)
at Function.makeInstrumented [as makeFullyInstrumented] (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/node_modules/@newrelic/test-utilities/lib/agent.js:121:20)
at setupExpressTest (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/lib/test-tools.js:73:34)
at TestContext.<anonymous> (/home/runner/work/newrelic-node-apollo-server-plugin/newrelic-node-apollo-server-plugin/tests/integration/metrics.test.js:20:11)
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'
}
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
|
The logs for this run have expired and are no longer available.
Loading