chore: Migrate block of unit tests to node:test #5397
ci-workflow.yml
on: pull_request
should_run
7s
Matrix: integration
Matrix: unit
Matrix: versioned-internal
Matrix: ci
Matrix: lint
Matrix: versioned-external
Matrix: codecov
all-clear
0s
Annotations
7 errors, 10 warnings, and 22 notices
test/unit/harvester.test.js:
test/unit/harvester.test.js#L1
[Error: test failed] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: 'test failed', exitCode: 1, signal: null }
|
unit (20.x)
Process completed with exit code 1.
|
test/unit/harvester.test.js:
test/unit/harvester.test.js#L1
[Error: test failed] { failureType: 'testCodeFailure', cause: 'test failed', code: 'ERR_TEST_FAILURE', exitCode: 1, signal: null }
|
unit (18.x)
Process completed with exit code 1.
|
test/unit/harvester.test.js:
test/unit/harvester.test.js#L1
[Error: test failed] { code: 'ERR_TEST_FAILURE', failureType: 'testCodeFailure', cause: 'test failed', exitCode: 1, signal: null }
|
unit (22.x)
Process completed with exit code 1.
|
all-clear
Process completed with exit code 1.
|
lint (lts/*):
api.js#L1550
The type 'getTraceMetadata' is undefined
|
lint (lts/*):
api.js#L1904
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L124
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L173
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L205
Missing JSDoc @returns declaration
|
lint (lts/*):
bin/create-docs-pr.js#L311
Missing JSDoc @returns declaration
|
lint (lts/*):
lib/agent.js#L210
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L221
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L231
'config' is already declared in the upper scope on line 158 column 16
|
lint (lts/*):
lib/agent.js#L242
'config' is already declared in the upper scope on line 158 column 16
|
ci (lts/*)
Total Tests: 4
Suites 📂: 0
Passed ✅: 4
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 961.322ms
|
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):
test/unit/serverless/aws-lambda.test.js#L1229
Removing listeners for beforeExit
|
unit (20.x):
test/unit/serverless/aws-lambda.test.js#L1229
Re-adding listeners for beforeExit
|
unit (20.x)
Error:: Test "resolve when all data is sent" at test/unit/harvester.test.js:96:1 generated asynchronous activity after the test ended. This activity created the error "AssertionError [ERR_ASSERTION]: should call send on enabled aggregator" and would have caused the test to fail, but instead triggered an uncaughtException event.
Total Tests: 3275
Suites 📂: 0
Passed ✅: 3255
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 3
Todo 📝: 16
Duration 🕐: 65140.254ms
|
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):
test/unit/serverless/aws-lambda.test.js#L1229
Removing listeners for beforeExit
|
unit (18.x):
test/unit/serverless/aws-lambda.test.js#L1229
Re-adding listeners for beforeExit
|
unit (18.x)
Warning:: Test "resolve when all data is sent" generated asynchronous activity after the test ended. This activity created the error "AssertionError [ERR_ASSERTION]: should call send on enabled aggregator" and would have caused the test to fail, but instead triggered an uncaughtException event.
Total Tests: 3277
Suites 📂: 0
Passed ✅: 3260
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 16
Duration 🕐: 67644.758ms
|
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):
test/unit/serverless/aws-lambda.test.js#L1229
Removing listeners for beforeExit
|
unit (22.x):
test/unit/serverless/aws-lambda.test.js#L1229
Re-adding listeners for beforeExit
|
unit (22.x)
Error:: Test "resolve when all data is sent" at test/unit/harvester.test.js:96:1 generated asynchronous activity after the test ended. This activity created the error "AssertionError [ERR_ASSERTION]: should call send on enabled aggregator" and would have caused the test to fail, but instead triggered an uncaughtException event.
Total Tests: 3275
Suites 📂: 0
Passed ✅: 3255
Failed ❌: 1
Canceled 🚫: 0
Skipped ⏭️: 3
Todo 📝: 16
Duration 🕐: 74199.153ms
|
integration (18.x)
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 595.788ms
|
integration (18.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 66
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 132789.253ms
|
integration (20.x)
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 467.663ms
|
integration (20.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 66
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 146724.344ms
|
integration (22.x)
Total Tests: 1
Suites 📂: 0
Passed ✅: 1
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 475.584ms
|
integration (22.x)
Total Tests: 66
Suites 📂: 0
Passed ✅: 66
Failed ❌: 0
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 166315.809ms
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
integration-tests-cjs-18.x
|
124 KB |
|
integration-tests-cjs-20.x
|
124 KB |
|
integration-tests-cjs-22.x
|
124 KB |
|
integration-tests-esm-18.x
|
72.5 KB |
|
integration-tests-esm-20.x
|
72.5 KB |
|
integration-tests-esm-22.x
|
72.5 KB |
|
versioned-tests-18.x
|
142 KB |
|
versioned-tests-20.x
|
142 KB |
|
versioned-tests-22.x
|
142 KB |
|