Skip to content

feat: Removed transaction from segment #5534

feat: Removed transaction from segment

feat: Removed transaction from segment #5534

Triggered via pull request October 16, 2024 15:29
Status Failure
Total duration 11m 26s
Artifacts 9

ci-workflow.yml

on: pull_request
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

38 errors, 10 warnings, and 16 notices
lint (lts/*): lib/llm-events/openai/chat-completion-message.js#L10
Replace `·agent,·segment,·request·=·{},·response·=·{},·index·=·0,·message,·completionId,·transaction` with `⏎····agent,⏎····segment,⏎····request·=·{},⏎····response·=·{},⏎····index·=·0,⏎····message,⏎····completionId,⏎····transaction⏎·`
lint (lts/*): test/unit/instrumentation/http/http.test.js#L23
Replace `·config:·agent.config,·name:·'base-segment',·root:·transaction.trace.root,·traceStacks:·transaction.traceStacks` with `⏎····config:·agent.config,⏎····name:·'base-segment',⏎····root:·transaction.trace.root,⏎····traceStacks:·transaction.traceStacks⏎·`
lint (lts/*): test/unit/instrumentation/http/outbound.test.js#L27
Replace `·config:·agent.config,·name:·'base-segment',·traceStacks:·transaction.traceStacks,·root:·transaction.trace.root` with `⏎····config:·agent.config,⏎····name:·'base-segment',⏎····traceStacks:·transaction.traceStacks,⏎····root:·transaction.trace.root⏎·`
lint (lts/*): test/unit/llm-events/openai/embedding.test.js#L35
Replace `·agent,·segment,·transaction:·tx,·request:·req,·response:·res` with `⏎········agent,⏎········segment,⏎········transaction:·tx,⏎········request:·req,⏎········response:·res⏎·····`
lint (lts/*): test/unit/metrics-recorder/http-external.test.js#L113
Replace `'/child2',·generateRecorder('oauth.facebook.com',·'http'),·parent` with `⏎······'/child2',⏎······generateRecorder('oauth.facebook.com',·'http'),⏎······parent⏎····`
lint (lts/*): test/unit/shim/datastore-shim.test.js#L38
Replace `·config:·agent.config,·name:·'ChildSegment',·traceStacks:·transaction.traceStacks,·root:·transaction.trace.root` with `⏎··········config:·agent.config,⏎··········name:·'ChildSegment',⏎··········traceStacks:·transaction.traceStacks,⏎··········root:·transaction.trace.root⏎·······`
lint (lts/*): test/unit/shim/message-shim.test.js#L47
Replace `·config:·agent.config,·name:·'ChildSegment',·traceStacks:·transaction.traceStacks,·root:·transaction.trace.root` with `⏎··········config:·agent.config,⏎··········name:·'ChildSegment',⏎··········traceStacks:·transaction.traceStacks,⏎··········root:·transaction.trace.root⏎·······`
properly tracks the number of active or harvested segments: test/unit/transaction/tracer.test.js#L198
Error [ERR_TEST_FAILURE]: 1 == 2 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: 1 == 2 at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:198:14) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:776:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at Test.run (node:internal/test_runner/test:790:9) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, expected: 2, operator: '==' } }
should report total time: test/unit/transaction/trace/index.test.js#L496
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:496:34) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) }
should report the expected trees for trees with uncollected segments: test/unit/transaction/trace/index.test.js#L557
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:557:37) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) }
should report the expected trees for branched trees: test/unit/transaction/trace/index.test.js#L611
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:611:37) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) }
should accurately sum overlapping subtrees: test/unit/transaction/trace/index.test.js#L685
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:685:27) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) }
should be limited to 900 children: test/unit/transaction/trace/index.test.js#L748
Error [ERR_TEST_FAILURE]: segment 900 should not be collected at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: segment 900 should not be collected at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:748:16) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) at Test.run (node:internal/test_runner/test:790:9) at Test.processPendingSubtests (node:internal/test_runner/test:517:7) { generatedMessage: false, code: 'ERR_ASSERTION', actual: true, expected: false, operator: '==' } }
should generate spans if infinite configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:901:5) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) at Test.run (node:internal/test_runner/test:790:9) }
should not generate spans if infinite not configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:920:7) at Test.runInAsyncScope (node:async_hooks:206:9) at Test.run (node:internal/test_runner/test:789:25) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) at Test.run (node:internal/test_runner/test:790:9) }
unit (20.x)
Process completed with exit code 1.
properly tracks the number of active or harvested segments: test/unit/transaction/tracer.test.js#L198
Error [ERR_TEST_FAILURE]: 1 == 2 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) { failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: 1 == 2 at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:198:14) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:618:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at Test.run (node:internal/test_runner/test:632:9) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) at Test.run (node:internal/test_runner/test:632:9) at startSubtest (node:internal/test_runner/harness:214:3) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, expected: 2, operator: '==' }, code: 'ERR_TEST_FAILURE' }
should report total time: test/unit/transaction/trace/index.test.js#L496
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) { failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:496:34) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) at Test.run (node:internal/test_runner/test:632:9) at Test.processPendingSubtests (node:internal/test_runner/test:374:7), code: 'ERR_TEST_FAILURE' }
should report the expected trees for trees with uncollected segments: test/unit/transaction/trace/index.test.js#L557
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) { failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:557:37) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) at Test.run (node:internal/test_runner/test:632:9) at Test.processPendingSubtests (node:internal/test_runner/test:374:7), code: 'ERR_TEST_FAILURE' }
should report the expected trees for branched trees: test/unit/transaction/trace/index.test.js#L611
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) { failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:611:37) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) at Test.run (node:internal/test_runner/test:632:9) at Test.processPendingSubtests (node:internal/test_runner/test:374:7), code: 'ERR_TEST_FAILURE' }
should accurately sum overlapping subtrees: test/unit/transaction/trace/index.test.js#L685
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) { failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:685:27) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) at Test.run (node:internal/test_runner/test:632:9) at Test.processPendingSubtests (node:internal/test_runner/test:374:7), code: 'ERR_TEST_FAILURE' }
should be limited to 900 children: test/unit/transaction/trace/index.test.js#L748
Error [ERR_TEST_FAILURE]: segment 900 should not be collected at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) { failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: segment 900 should not be collected at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:748:16) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) at Test.run (node:internal/test_runner/test:632:9) at Test.processPendingSubtests (node:internal/test_runner/test:374:7) { generatedMessage: false, code: 'ERR_ASSERTION', actual: true, expected: false, operator: '==' }, code: 'ERR_TEST_FAILURE' }
should generate spans if infinite configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) { failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:901:5) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) at Test.run (node:internal/test_runner/test:632:9), code: 'ERR_TEST_FAILURE' }
should not generate spans if infinite not configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) { failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:920:7) at Test.runInAsyncScope (node:async_hooks:203:9) at Test.run (node:internal/test_runner/test:631:25) at processTicksAndRejections (node:internal/process/task_queues:95:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) at Test.run (node:internal/test_runner/test:632:9), code: 'ERR_TEST_FAILURE' }
unit (18.x)
Process completed with exit code 1.
properly tracks the number of active or harvested segments: test/unit/transaction/tracer.test.js#L198
Error [ERR_TEST_FAILURE]: 1 == 2 at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: 1 == 2 at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:198:14) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:917:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:185:5) at Test.run (node:internal/test_runner/test:931:9) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/tracer.test.js:182:3) at Test.run (node:internal/test_runner/test:931:9) at startSubtestAfterBootstrap (node:internal/test_runner/harness:289:3) { generatedMessage: true, code: 'ERR_ASSERTION', actual: 1, expected: 2, operator: '==' } }
should report total time: test/unit/transaction/trace/index.test.js#L496
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:496:34) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:489:3) at Test.run (node:internal/test_runner/test:931:9) at Test.processPendingSubtests (node:internal/test_runner/test:629:7) }
should report the expected trees for trees with uncollected segments: test/unit/transaction/trace/index.test.js#L557
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:557:37) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:524:3) at Test.run (node:internal/test_runner/test:931:9) at Test.processPendingSubtests (node:internal/test_runner/test:629:7) }
should report the expected trees for branched trees: test/unit/transaction/trace/index.test.js#L611
Error [ERR_TEST_FAILURE]: agent is not defined at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: ReferenceError [Error]: agent is not defined at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:611:37) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:577:3) at Test.run (node:internal/test_runner/test:931:9) at Test.processPendingSubtests (node:internal/test_runner/test:629:7) }
should accurately sum overlapping subtrees: test/unit/transaction/trace/index.test.js#L685
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:685:27) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:667:3) at Test.run (node:internal/test_runner/test:931:9) at Test.processPendingSubtests (node:internal/test_runner/test:629:7) }
should be limited to 900 children: test/unit/transaction/trace/index.test.js#L748
Error [ERR_TEST_FAILURE]: segment 900 should not be collected at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: AssertionError [ERR_ASSERTION]: segment 900 should not be collected at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:748:16) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:740:3) at Test.run (node:internal/test_runner/test:931:9) at Test.processPendingSubtests (node:internal/test_runner/test:629:7) { generatedMessage: false, code: 'ERR_ASSERTION', actual: true, expected: false, operator: '==' } }
should generate spans if infinite configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:901:5) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at processTicksAndRejections (node:internal/process/task_queues:105:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:893:3) at Test.run (node:internal/test_runner/test:931:9) }
should not generate spans if infinite not configured, transaction not sampled: test/unit/transaction/trace/index.test.js#L934
Error [ERR_TEST_FAILURE]: Cannot read properties of undefined (reading 'probe') at async TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: TypeError [Error]: Cannot read properties of undefined (reading 'probe') at TraceSegment.probe (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:124:20) at new TraceSegment (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:73:8) at TraceSegment.add (/home/runner/work/node-newrelic/node-newrelic/lib/transaction/trace/segment.js:248:19) at addTwoSegments (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:934:25) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:920:7) at Test.runInAsyncScope (node:async_hooks:211:14) at Test.run (node:internal/test_runner/test:930:25) at processTicksAndRejections (node:internal/process/task_queues:105:5) at TestContext.<anonymous> (/home/runner/work/node-newrelic/node-newrelic/test/unit/transaction/trace/index.test.js:908:3) at Test.run (node:internal/test_runner/test:931:9) }
unit (22.x)
Process completed with exit code 1.
all-clear
Process completed with exit code 1.
lint (lts/*): api.js#L1551
The type 'getTraceMetadata' is undefined
lint (lts/*): api.js#L1905
Missing JSDoc @returns declaration
lint (lts/*): bin/create-docs-pr.js#L124
Missing JSDoc @returns declaration
lint (lts/*): bin/create-docs-pr.js#L173
Missing JSDoc @returns declaration
lint (lts/*): bin/create-docs-pr.js#L205
Missing JSDoc @returns declaration
lint (lts/*): bin/create-docs-pr.js#L311
Missing JSDoc @returns declaration
lint (lts/*): lib/agent.js#L210
'config' is already declared in the upper scope on line 158 column 16
lint (lts/*): lib/agent.js#L221
'config' is already declared in the upper scope on line 158 column 16
lint (lts/*): lib/agent.js#L231
'config' is already declared in the upper scope on line 158 column 16
lint (lts/*): lib/agent.js#L242
'config' is already declared in the upper scope on line 158 column 16
ci (lts/*)
Total Tests: 4 Suites 📂: 0 Passed ✅: 4 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 900.065ms
unit (20.x): test/unit/util/code-level-metrics.test.js#L104
This is testing Express router.route which binds a function thus breaking any function metadata
unit (20.x): test/unit/spans/batch-span-streamer.test.js#L199
this will simulate n full batches and the last batch being 1/3 full
unit (20.x)
Total Tests: 4405 Suites 📂: 0 Passed ✅: 4371 Failed ❌: 12 Canceled 🚫: 0 Skipped ⏭️: 3 Todo 📝: 19 Duration 🕐: 64169.630ms
unit (18.x): test/unit/util/code-level-metrics.test.js#L104
This is testing Express router.route which binds a function thus breaking any function metadata
unit (18.x): test/unit/spans/batch-span-streamer.test.js#L199
this will simulate n full batches and the last batch being 1/3 full
unit (18.x)
Total Tests: 4407 Suites 📂: 0 Passed ✅: 4376 Failed ❌: 12 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 19 Duration 🕐: 63118.915ms
unit (22.x): test/unit/util/code-level-metrics.test.js#L104
This is testing Express router.route which binds a function thus breaking any function metadata
unit (22.x): test/unit/spans/batch-span-streamer.test.js#L199
this will simulate n full batches and the last batch being 1/3 full
unit (22.x)
Total Tests: 4405 Suites 📂: 0 Passed ✅: 4371 Failed ❌: 12 Canceled 🚫: 0 Skipped ⏭️: 3 Todo 📝: 19 Duration 🕐: 69426.729ms
integration (20.x)
Total Tests: 1 Suites 📂: 0 Passed ✅: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 471.452ms
integration (20.x)
Total Tests: 66 Suites 📂: 0 Passed ✅: 66 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 143849.385ms
integration (18.x)
Total Tests: 1 Suites 📂: 0 Passed ✅: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 576.267ms
integration (18.x)
Total Tests: 66 Suites 📂: 0 Passed ✅: 66 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 129327.599ms
integration (22.x)
Total Tests: 1 Suites 📂: 0 Passed ✅: 1 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 476.026ms
integration (22.x)
Total Tests: 66 Suites 📂: 0 Passed ✅: 66 Failed ❌: 0 Canceled 🚫: 0 Skipped ⏭️: 0 Todo 📝: 0 Duration 🕐: 176235.847ms

Artifacts

Produced during runtime
Name Size
integration-tests-cjs-18.x
125 KB
integration-tests-cjs-20.x
125 KB
integration-tests-cjs-22.x
125 KB
integration-tests-esm-18.x
72.9 KB
integration-tests-esm-20.x
72.8 KB
integration-tests-esm-22.x
72.8 KB
versioned-tests-18.x
143 KB
versioned-tests-20.x
143 KB
versioned-tests-22.x
143 KB