Skip to content

feat(fs): improve readTextFile and readTextFileLines performance #3517

feat(fs): improve readTextFile and readTextFileLines performance

feat(fs): improve readTextFile and readTextFileLines performance #3517

Triggered via pull request November 21, 2024 12:53
Status Success
Total duration 46m 16s
Artifacts

test-rust.yml

on: pull_request
changes
4s
changes
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

46 errors and 14 warnings
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (D:\a\_actions\Swatinem\rust-cache\v2\dist\save\index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (D:\a\_actions\Swatinem\rust-cache\v2\dist\save\index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (D:\a\_actions\Swatinem\rust-cache\v2\dist\save\index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with ESPIPE: invalid seek, read
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with ESPIPE: invalid seek, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-http, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-http, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-http, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-http, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Cache upload failed because file read failed with EBADF: bad file descriptor, read
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read at ReadStream.<anonymous> (/home/runner/work/_actions/Swatinem/rust-cache/v2/dist/save/index.js:3173:31) at ReadStream.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at errorOrDestroy (node:internal/streams/destroy:238:7) at node:internal/fs/streams:272:9 at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
changes
The following actions use a deprecated Node.js version and will be forced to run on node20: dorny/paths-filter@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
changes
'base' input parameter is ignored when action is triggered by pull request event
test (tauri-plugin-persisted-scope, x86_64-pc-windows-msvc, windows-latest, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-dialog, aarch64-linux-android, ubuntu-latest, cross, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-http, aarch64-linux-android, ubuntu-latest, cross, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-http, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-persisted-scope, aarch64-linux-android, ubuntu-latest, cross, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-fs, aarch64-linux-android, ubuntu-latest, cross, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-dialog, aarch64-apple-ios, macos-latest, cargo, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-dialog, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-persisted-scope, x86_64-unknown-linux-gnu, ubuntu-22.04, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-dialog, aarch64-apple-darwin, macos-latest, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-persisted-scope, aarch64-apple-ios, macos-latest, cargo, build)
Failed to save: Cache service responded with 429 during upload chunk.
test (tauri-plugin-http, aarch64-apple-darwin, macos-latest, cargo, test)
Failed to save: Cache service responded with 429 during upload chunk.