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

オープン
#152 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
56/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, node.js
領域
testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
JavaScript
スター
5
フォーク
1
平均マージ
11時間 18分
マージ済み PR(30日)
66

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/oracles のほかの issue

TanStack/oracles の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。