daemon inputs: glob, copyFile and cp, openAsBlob, and statfs are no input yet

Đang mở
#152 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

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

Start with the README list of daemon inputs and the #133 pattern cited in the issue, especially review Q9. Build oracle-first tests for the named filesystem reads using a drawn inputRead value, a history ending in [inputGate, recheck], and RED, GREEN, and mutant checks. Verify glob detects a renamed match, copies track their source rather than the copy, and openAsBlob tracks its path; take the proposed statfs hashing rule to the maintainer because free-space values change on writes.

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

Mô tả

Families without an owner: glob, globSync, fs.promises.glob; copyFile, copyFileSync, fs.promises.copyFile, cp, cpSync, fs.promises.cp (these read their source); openAsBlob; statfs, statfsSync, fs.promises.statfs. None of these reads is an input today. The README lists them, and the review of #133 (Q9) found that none had an issue.

Authority: M 2026-11-16 "Every read is a daemon input", which the user ruled with no exceptions. v21.2 R46, G42, I8.

Oracle-first plan (the #133 pattern: a drawn inputRead value, one constructed history appended last with steps [inputGate, recheck], RED on the head, GREEN, a mutant):

  • glob: file b globs tests/gate-dir/* and opens the gate if open is among the matches. The edit renames the file. The fix records a dir: listing for each directory the pattern walks; a simpler, coarser option is dirs: of the pattern's base.
  • copyFile / cp: file b copies tests/gate.json to a temporary path and reads the copy. That read is an own write, so it is no input, and the copy's source must be. The fix records fs:<source> (or dirs: plus each file, for a recursive cp) as a read.
  • openAsBlob: file b reads await (await openAsBlob(gate)).text(). The fix records fs:<path>.
  • statfs: a test that branches on free space has an input that hashes badly. Proposed: record statfs:<path> hashed by type and block size only, and bring the rest to the maintainer, because free space changes on every write.
Ngôn ngữ chính
JavaScript
Star
5
Fork
1
Merge trung bình
11 giờ 18 phút
Pull request đã merge (30 ngày)
66

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 TanStack/oracles

Tất cả issue của TanStack/oracles

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.