run --each reads every test as failed alone on Node 26: the test command's output is no longer TAP
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- testing
Línea de trabajo
Empieza con el comando test en coherence.config.json y compara su salida con el patrón testMatch; src/enforcement/totality.ts muestra cómo se califica la salida. Ejecuta el comando de prueba indicado en Node 26.8.1 y confirma después que imprime el resumen TAP esperado por el patrón. La tarea está terminada cuando coherence run --each reconoce como aprobados los tests que pasan; el issue también sugiere documentar la fijación del reporter en docs/config.md para quienes lo adopten.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
On Node 26.8.1, coherence run --each in this repository reports every totality oracle as passed batched but fail alone, for tests that pass. The alone confirmation can never go green locally, so steps 1 and 5 of the "witness a refutation" practice cannot be met on that Node. CI runs Node 22.18 and is not affected.
The test command in coherence.config.json sets no reporter, and testMatch is # pass [1-9][0-9]*, which is the TAP summary. With stdout piped, Node 22.18 prints TAP and Node 26.8.1 prints the spec reporter:
$ node --test --test-name-pattern='hooks Coherence 0.x wrote through its launcher' src/lifecycle/install.test.ts | grep -E '^(# |ℹ )(pass|fail)'
v22.18.0: # pass 1 # fail 0
v26.8.1: ℹ pass 1 ℹ fail 0 (exit 0)
runTotalityOracle (src/enforcement/totality.ts L99) then grades the run as fail: "exited 0 but its output did not match /# pass [1-9][0-9]*/; no test ran under that name". The batched run and refute are not affected, because they go through testJson and its own reporter.
Fix
Add --test-reporter=tap to the test command. On Node 26.8.1 the same command then prints # pass 1. An adopter whose test command runs node --test with a TAP testMatch meets the same thing, so docs/config.md could say to pin the reporter.
- Lenguaje dominante
- TypeScript
- Estrellas
- 21
- Forks
- 6
- Merge medio
- 8 h 31 min
- PR fusionados (30 d)
- 55
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PostHog/coherence
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
hooks install and hooks --check miss the 0.x launcher hooks from @danilocampos/coherenceQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 36/100
Los mantenedores suelen responder en 1 día
Todos los issues de PostHog/coherence
Issues similares
-
Stop retrying permanent GitHub API failures in retry.shPosiblemente ocupada @muspi-merol-review la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
promplate/code-review#113 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ix-toast (5.3): the status icon has `role="img"` and no accessible name (axe `role-img-alt`)Abiertotriage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
サムネイルの Storage のバケット(`thumbnails`)に、大きさの上限(1 MiB)と許可する種類(JPEG、PNG、WebP)を設定するPosiblemente ocupada @ykzts la tomó hoy. Abiertotech: supabase
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
inabagumi/shinju-date#7147 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elecnix/your-attention#129 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
umami-software/umami#4780 ·
Los mantenedores suelen responder en 3 días