New test `parallel/test-fs-readfilesync-pipe-short-reads` fails on Linux/riscv64

Đang mở Phù hợp với người mới
#67,241 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jay23606 đang làm issue này rồi.

Từ ngày 4/11/2026.

  • #67242 của @jay23606 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, linux, node.js
Lĩnh vực
operating-systems, testing

Hướng nghiên cứu

Bắt đầu với test/parallel/test-fs-readfilesync-pipe-short-reads.js, đặc biệt là thao tác đọc /proc trong readBytes quanh dòng 29. Kiểm tra cách các bài kiểm thử Node.js gần đó xử lý những tệp /proc phụ thuộc vào nền tảng và cách bỏ qua bài kiểm thử khi không có tệp cần thiết. Công việc hoàn tất khi bài kiểm thử chạy trên các hệ thống Linux/RISC-V dù có hay không có /proc/<pid>/io.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

riscv64

This test was introduced in https://github.com/nodejs/node/pull/66939 and has been failing consistently on RISC-V.

not ok 3142 parallel/test-fs-readfilesync-pipe-short-reads
  ---
  duration_ms: 593.92000
  severity: fail
  exitcode: 1
  stack: |-
    node:fs:782
      return binding.open(
                     ^
    
    Error: ENOENT: no such file or directory, open '/proc/981958/io'
        at Object.openSync (node:fs:782:18)
        at Object.readFileSync (node:fs:628:35)
        at readBytes (/home/iojs/A100/workspace/node-test-commit-rvlinux/nodes/rv64gcv/test/parallel/test-fs-readfilesync-pipe-short-reads.js:29:17)
        at Socket.<anonymous> (/home/iojs/A100/workspace/node-test-commit-rvlinux/nodes/rv64gcv/test/parallel/test-fs-readfilesync-pipe-short-reads.js:41:17)
        at Socket.<anonymous> (/home/iojs/A100/workspace/node-test-commit-rvlinux/nodes/rv64gcv/test/common/index.js:512:15)
        at Socket.wrapper (node:events:639:12)
        at Socket.emit (node:events:514:20)
        at addChunk (node:internal/streams/readable:605:12)
        at readableAddChunkPushByteMode (node:internal/streams/readable:556:3)
        at Readable.push (node:internal/streams/readable:436:5) {
      errno: -2,
      code: 'ENOENT',
      syscall: 'open',
      path: '/proc/981958/io'
    }
    
    Node.js v28.0.0-pre
  ...

It appears that there are no io entries in /proc on at least two of my RISC-V systems (although not all) and I expect that it is distribution specific. The test should perhaps check for the presence of the io file and skip itself if that is not present.

Tagging in the overall RISC-V tracking issue at https://github.com/nodejs/build/issues/4099

Ngôn ngữ chính
JavaScript
Star
123k
Fork
39.3k
Merge trung bình
4 ngày 11 giờ
Pull request đã merge (30 ngày)
237

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/node

Tất cả issue của nodejs/node

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.