Existing replay suite leaks its fixture directory when Harper setup fails
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 69/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, node.js, typescript
Direzione di ricerca
Read the after hook in integrationTests/mcp-runtime.test.ts at lines 102–113 and reproduce with a fresh test-install parent and HARPER_INTEGRATION_TEST_INSTALL_SCRIPT pointing to a missing file. Check how the installed @harperfast/integration-testing 0.5.1 teardown handles the partial context after fixture copying. Done means the setup error is preserved, the allocated fixture root is removed, and normal successful teardown still works.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The existing replay/refresh suite leaves its fixture directory behind when Harper setup fails after copying the fixture.
The suite at mcp-runtime.test.ts calls teardownHarper(ctx) in its after hook. At that failure point, @harperfast/integration-testing 0.5.1 has recorded ctx.harper.dataRootDir but has not populated the started context. Teardown passes an undefined hostname to releaseLoopbackAddress and throws before removing the directory.
To reproduce, run that suite with a fresh test-install parent and HARPER_INTEGRATION_TEST_INSTALL_SCRIPT pointing to a missing file. Fixture copying succeeds, startup reports the missing executable, and the allocated directory remains. A direct call to the installed teardown helper with that partial context reproduces the hostname TypeError. The Node test runner can suppress the after-hook error when the before hook has already failed, so the original startup error alone does not demonstrate cleanup.
Expected: retain the original setup error and remove the resources actually allocated, including the recorded fixture root. Normal successful teardown must remain intact. An upstream helper correction that supports partial context would cover existing callers; test-local handling is another option.
This is a pre-existing test cleanup defect, identified during review of #282. That PR fixes cleanup in its newly added native suite; this issue tracks the older replay/refresh suite. No production authentication or session defect is demonstrated.
Observed on current main 6ba1ff4, Node 24.13.1 and integration-testing 0.5.1. No release is committed. No open OAuth epic owns test infrastructure.
Review-Deferral: 4ed730a2cda1c1f9 severity=nit category=reliability
Generated by OpenAI Codex; posted via @hdbjeff.
- Lingua principale
- JavaScript
- Stelle
- 1
- Fork
- 3
- Merge medio
- 6h 48m
- PR unite (30g)
- 25
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 HarperFast/oauth
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 53/100
HarperFast/oauth#284 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
HarperFast/oauth#280 ·
I maintainer di solito rispondono entro 1 giorno
-
Open-issue triage and roadmap (post-2.9.0)Forse di nuovo libera @heskew l’ha presa 31 giorni fa e non c’è nessuna pull request aperta. Aperta
HarperFast/oauth#278 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Session docs overstate expiry: no default lifetime, and invalidation clears fields rather than deleting the rowForse di nuovo libera @heskew l’ha presa 31 giorni fa e non c’è nessuna pull request aperta. Aperta
HarperFast/oauth#277 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Azure ?appid= form of the shared-alias keys URL isn't recognizedForse già presa @heskew l’ha presa 31 giorni fa. Aperta
HarperFast/oauth#275 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di HarperFast/oauth
Issue simili
-
bug confirmed js v6
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
BUG
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
linuxmint/cinnamon-spices-applets#9223 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nopSolutions/nopCommerce#8440 ·
I maintainer di solito rispondono entro 1 giorno
-
follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno