Skip to content

chore: transition modules to hybrid ESM/CJS, switch to vitest for testing #16395

chore: transition modules to hybrid ESM/CJS, switch to vitest for testing

chore: transition modules to hybrid ESM/CJS, switch to vitest for testing #16395

Triggered via pull request November 1, 2024 21:47
@AlCalzoneAlCalzone
synchronize #7349
esm-hybrid
Status Failure
Total duration 2m 37s
Artifacts 19

test-and-release.yml

on: pull_request
Matrix: build
Matrix: lint-zwave
Matrix: lint
Matrix: test-transformers
Matrix: unit-tests
Matrix: Update toLogEntry overview
Matrix: Update CC implementation status
Matrix: test-packages
Matrix: deploy
Fit to window
Zoom out
Zoom in

Annotations

22 errors
Unit tests: ubuntu-latest, Node.js 20 (part 2/4)
Process completed with exit code 1.
Unit tests: ubuntu-latest, Node.js 18 (part 2/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unit tests: ubuntu-latest, Node.js 18 (part 2/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 20 (part 1/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unhandled error: test/firmware-extraction.ts#L6
TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined ❯ open node:internal/fs/promises:636:10 ❯ Object.readFile node:internal/fs/promises:1242:20 ❯ test/firmware-extraction.ts:6:24 ❯ test/firmware-extraction.ts:9:1 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ VitestExecutor.runModule node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:399:5 ❯ VitestExecutor.directRequest node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:381:5 ❯ VitestExecutor.cachedRequest node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:206:14 ❯ VitestExecutor.executeId node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:173:12 ❯ collectTests node_modules/.store/@vitest-runner-npm-2.1.4-cd730c89a2/package/dist/index.js:851:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "test/firmware-extraction.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "test/firmware-extraction.ts". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unit tests: ubuntu-latest, Node.js 20 (part 1/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 18 (part 1/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unhandled error: test/firmware-extraction.ts#L6
TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined ❯ open node:internal/fs/promises:581:10 ❯ Object.readFile node:internal/fs/promises:1027:20 ❯ test/firmware-extraction.ts:6:24 ❯ test/firmware-extraction.ts:9:1 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ VitestExecutor.runModule node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:399:5 ❯ VitestExecutor.directRequest node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:381:5 ❯ VitestExecutor.cachedRequest node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:206:14 ❯ VitestExecutor.executeId node_modules/.store/vite-node-npm-2.1.4-fd25d155f0/package/dist/client.mjs:173:12 ❯ collectTests node_modules/.store/@vitest-runner-npm-2.1.4-cd730c89a2/package/dist/index.js:851:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_INVALID_ARG_TYPE' } This error originated in "test/firmware-extraction.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "test/firmware-extraction.ts". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unit tests: ubuntu-latest, Node.js 18 (part 1/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 18 (part 3/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unit tests: ubuntu-latest, Node.js 18 (part 3/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 18 (part 4/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unit tests: ubuntu-latest, Node.js 18 (part 4/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 20 (part 3/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unit tests: ubuntu-latest, Node.js 20 (part 3/4)
The operation was canceled.
Unit tests: ubuntu-latest, Node.js 20 (part 4/4)
The job was canceled because "_20_ubuntu-latest_2_4" failed.
Unit tests: ubuntu-latest, Node.js 20 (part 4/4)
The operation was canceled.
test-packages (18)
Process completed with exit code 1.
lint (18): packages/zwave-js/src/lib/node/NodeReadyMachine.test.ts#L3
Imports "TaskContext" and "TestContext" are only used as type
lint (18): packages/zwave-js/src/lib/node/NodeStatusMachine.test.ts#L3
Imports "TaskContext" and "TestContext" are only used as type
lint (18)
zwave-js#lint:ts: command (/home/runner/work/node-zwave-js/node-zwave-js/packages/zwave-js) /tmp/xfs-1ad0e669/yarn run lint:ts exited (1)
lint (18)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
077f8d95643740c8 Expired
268 Bytes
0801be2e13662d8c Expired
2.36 KB
1cf64b0ac1bbfc85 Expired
266 Bytes
299461d4e3fe9656 Expired
124 KB
3211a6dd92af98a3 Expired
28.9 KB
4bcbd38d31a318f8 Expired
258 Bytes
54c284eb80dd2803 Expired
69.8 KB
595ff0d0acaf9fd4 Expired
262 Bytes
6c91feeabeead8d5 Expired
5.39 KB
7344b8206971a71b Expired
12 KB
8b6629e500961dcb Expired
29.9 KB
8c6fa2d8962a1a74 Expired
29.8 KB
a21c9dc962c7a00e Expired
724 KB
b6754e7ef9d078c3 Expired
367 KB
d83f6d7fe645cf31 Expired
60.2 KB
e59ab60683882bd5 Expired
282 KB
e77687d611d5bb37 Expired
24.9 KB
lint-fix Expired
432 Bytes
turbo-cache Expired
1.96 MB