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

Abierto
#152 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
56/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
JavaScript
Estrellas
5
Forks
1
Merge medio
11 h 18 min
PR fusionados (30 d)
66

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TanStack/oracles

Todos los issues de TanStack/oracles

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.