run --each reads every test as failed alone on Node 26: the test command's output is no longer TAP
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, typescript
- Ambito
- testing
Direzione di ricerca
Inizia con il comando test in coherence.config.json e confrontane l’output con il pattern testMatch; src/enforcement/totality.ts mostra come viene valutato l’output. Esegui il comando di test indicato con Node 26.8.1, quindi conferma che stampa il riepilogo TAP atteso dal pattern. Il lavoro è completato quando coherence run --each riconosce come superati i test che passano; l’issue suggerisce inoltre di documentare il blocco della versione del reporter in docs/config.md per chi adotta il progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 21
- Fork
- 6
- Merge medio
- 8h 31m
- PR unite (30g)
- 55
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PostHog/coherence
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
hooks install and hooks --check miss the 0.x launcher hooks from @danilocampos/coherenceForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 36/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PostHog/coherence
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
mike-north/AgentMonitors#648 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
vercel-labs/ui#700 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 2 giorni