Skip to content

feat: use prettier, oxlint and vitest #254

feat: use prettier, oxlint and vitest

feat: use prettier, oxlint and vitest #254

Triggered via pull request May 10, 2025 04:53
@fengmk2fengmk2
opened #27
vitest
Status Failure
Total duration 2m 19s
Artifacts

nodejs.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

16 errors
build (22, ubuntu-latest)
Process completed with exit code 1.
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store not exists object to file: test/OSSObject.test.ts#L1603
AssertionError: Expected values to be strictly equal: + actual - expected + 'ENOENT' - 'NoSuchKey' Expected: "NoSuchKey" Received: "ENOENT" ❯ Object.<anonymous> test/OSSObject.test.ts:1603:18 ❯ test/OSSObject.test.ts:1598:7
test/OSSObject.test.ts > test/OSSObject.test.ts > signatureUrl() and asyncSignatureUrl() > should signature url with traffic limit: test/OSSObject.test.ts#L1486
Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/OSSObject.test.ts:1486:5
build (24, ubuntu-latest)
Process completed with exit code 1.
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store not exists object to file: test/OSSObject.test.ts#L1603
AssertionError: Expected values to be strictly equal: + actual - expected + 'ERR_STREAM_UNABLE_TO_PIPE' - 'NoSuchKey' Expected: "NoSuchKey" Received: "ERR_STREAM_UNABLE_TO_PIPE" ❯ Object.<anonymous> test/OSSObject.test.ts:1603:18 ❯ test/OSSObject.test.ts:1598:7
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store object to writeStream: src/OSSBaseClient.ts#L238
Error: Cannot pipe to a closed or destroyed stream ❯ HttpClient.#requestInternal node_modules/urllib/src/HttpClient.ts:643:17 ❯ HttpClient.request node_modules/urllib/src/HttpClient.ts:246:12 ❯ OSSObject.request src/OSSBaseClient.ts:238:20 ❯ OSSObject.get src/OSSObject.ts:383:16 ❯ test/OSSObject.test.ts:1589:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_STREAM_UNABLE_TO_PIPE', opaque: undefined, status: 200, headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:25 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3D0482F43637297E41', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '14' }, res: { status: 200, statusCode: 200, statusText: 'OK', statusMessage: 'OK', headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:25 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3D0482F43637297E41', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '14' }, size: 90839, aborted: false, rt: 1072.76, keepAliveSocket: true, requestUrls: [ 'https://***.***.aliyuncs.com/linux-v24.0.0-1746852855756/oss-client/oss/get-meta.js' ], timing: { queuing: 0.095, dnslookup: +0, connected: 836.136, requestHeadersSent: 836.214, requestSent: 836.284, waiting: 1072.471, contentDownload: +0 }, socket: { id: 5, localAddress: '10.1.0.5', localPort: 52860, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 365, bytesRead: 4096, handledRequests: 1, handledResponses: 1, connectedTime: '2025-05-10T04:55:25.136Z' }, retries: +0, socketErrorRetries: +0 }, socket: { id: 5, localAddress: '10.1.0.5', localPort: 52860, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 365, bytesRead: 4096, handledRequests: 1, handledResponses: 1, connectedTime: '2025-05-10T04:55:25.136Z' } }
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should escape uri path ok: src/OSSBaseClient.ts#L238
Error: Cannot pipe to a closed or destroyed stream ❯ HttpClient.#requestInternal node_modules/urllib/src/HttpClient.ts:643:17 ❯ HttpClient.request node_modules/urllib/src/HttpClient.ts:246:12 ❯ OSSObject.request src/OSSBaseClient.ts:238:20 ❯ OSSObject.get src/OSSObject.ts:383:16 ❯ test/OSSObject.test.ts:1563:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_STREAM_UNABLE_TO_PIPE', opaque: undefined, status: 200, headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:24 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3C2E2F78353286872E', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '12' }, res: { status: 200, statusCode: 200, statusText: 'OK', statusMessage: 'OK', headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:24 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3C2E2F78353286872E', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '12' }, size: 90839, aborted: false, rt: 231.396, keepAliveSocket: true, requestUrls: [ 'https://***.***.aliyuncs.com/linux-v24.0.0-1746852855756/oss-client/oss/%253get%2Bmeta.js' ], timing: { queuing: 0.088, dnslookup: +0, connected: +0, requestHeadersSent: 0.127, requestSent: 0.182, waiting: 230.966, contentDownload: +0 }, socket: { id: 1, localAddress: '10.1.0.5', localPort: 34320, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 9637827, bytesRead: 1923049, handledRequests: 117, handledResponses: 117, connectedTime: '2025-05-10T04:54:17.257Z', lastRequestEndTime: '2025-05-10T04:55:23.799Z' }, retries: +0, socketErrorRetries: +0 }, socket: { id: 1, localAddress: '10.1.0.5', localPort: 34320, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 9637827, bytesRead: 1923049, handledRequests: 117, handledResponses: 117, connectedTime: '2025-05-10T04:54:17.257Z', lastRequestEndTime: '2025-05-10T04:55:23.799Z' } }
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store object to local file: src/OSSBaseClient.ts#L238
Error: Cannot pipe to a closed or destroyed stream ❯ HttpClient.#requestInternal node_modules/urllib/src/HttpClient.ts:643:17 ❯ HttpClient.request node_modules/urllib/src/HttpClient.ts:246:12 ❯ OSSObject.request src/OSSBaseClient.ts:238:20 ❯ OSSObject.get src/OSSObject.ts:383:16 ❯ test/OSSObject.test.ts:1546:22 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_STREAM_UNABLE_TO_PIPE', opaque: undefined, status: 200, headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:23 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3B0EF7D03538BA4A7A', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '12' }, res: { status: 200, statusCode: 200, statusText: 'OK', statusMessage: 'OK', headers: { server: 'AliyunOSS', date: 'Sat, 10 May 2025 04:55:23 GMT', 'content-type': 'video/mp2t', 'content-length': '90839', connection: 'keep-alive', 'x-oss-request-id': '681EDC3B0EF7D03538BA4A7A', 'accept-ranges': 'bytes', etag: '"64ADE9929664E066DBC0D45974A6E2A6"', 'last-modified': 'Sat, 10 May 2025 04:55:23 GMT', 'x-oss-object-type': 'Normal', 'x-oss-hash-crc64ecma': '8275475219421965874', 'x-oss-storage-class': 'IA', 'x-oss-meta-pid': '123', 'x-oss-meta-slus': 'test.html', 'x-oss-meta-uid': '1', 'content-md5': 'ZK3pkpZk4GbbwNRZdKbipg==', 'x-oss-server-time': '12' }, size: 90839, aborted: false, rt: 257.566, keepAliveSocket: true, requestUrls: [ 'https://***.***.aliyuncs.com/linux-v24.0.0-1746852855756/oss-client/oss/get-meta.js' ], timing: { queuing: 0.064, dnslookup: +0, connected: +0, requestHeadersSent: 0.097, requestSent: 0.159, waiting: 257.21, contentDownload: +0 }, socket: { id: 3, localAddress: '10.1.0.5', localPort: 41758, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 12862, bytesRead: 1360201, handledRequests: 29, handledResponses: 29, connectedTime: '2025-05-10T04:54:57.661Z', lastRequestEndTime: '2025-05-10T04:55:23.018Z' }, retries: +0, socketErrorRetries: +0 }, socket: { id: 3, localAddress: '10.1.0.5', localPort: 41758, remoteAddress: '47.101.28.51', remotePort: 443, remoteFamily: 'IPv4', bytesWritten: 12862, bytesRead: 1360201, handledRequests: 29, handledResponses: 29, connectedTime: '2025-05-10T04:54:57.661Z', lastRequestEndTime: '2025-05-10T04:55:23.018Z' } }
test/OSSObject.test.ts > test/OSSObject.test.ts > signatureUrl() and asyncSignatureUrl() > should signature url with traffic limit: test/OSSObject.test.ts#L1486
Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/OSSObject.test.ts:1486:5
build (20, ubuntu-latest)
Process completed with exit code 1.
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store not exists object to file: test/OSSObject.test.ts#L1603
AssertionError: Expected values to be strictly equal: + actual - expected + 'ENOENT' - 'NoSuchKey' Expected: "NoSuchKey" Received: "ENOENT" ❯ Object.<anonymous> test/OSSObject.test.ts:1603:18 ❯ test/OSSObject.test.ts:1598:7
test/OSSObject.test.ts > test/OSSObject.test.ts > signatureUrl() and asyncSignatureUrl() > should signature url with traffic limit: test/OSSObject.test.ts#L1486
Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/OSSObject.test.ts:1486:5
build (18, ubuntu-latest)
Process completed with exit code 1.
test/OSSObject.test.ts > test/OSSObject.test.ts > get() > should store not exists object to file: test/OSSObject.test.ts#L1603
AssertionError: Expected values to be strictly equal: + actual - expected + 'ENOENT' - 'NoSuchKey' Expected: "NoSuchKey" Received: "ENOENT" ❯ Object.<anonymous> test/OSSObject.test.ts:1603:18 ❯ test/OSSObject.test.ts:1598:7
test/OSSObject.test.ts > test/OSSObject.test.ts > signatureUrl() and asyncSignatureUrl() > should signature url with traffic limit: test/OSSObject.test.ts#L1486
Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/OSSObject.test.ts:1486:5
test/OSSObject.test.ts > test/OSSObject.test.ts > putStream() > should put object with http streaming way: test/OSSObject.test.ts#L956
Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/OSSObject.test.ts:956:5