tempo: default datadir is dropped when starting process instances
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- testing
Línea de trabajo
The bug is in the Tempo adapter's start path, where the datadir option forwarded by start() overwrites the computed default inside deepAssign(), and toArgs() then drops the --datadir flag. Start by reading how start() builds the options for Tempo, then capture the child argv for Instance.tempo() and Instance.tempo({ hardfork: 'T9' }). Done means both pass their computed --datadir while explicit and genesis-derived paths keep working, with regression coverage at the start boundary. PR #121 is already open against this, so check it before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Starting a Tempo process instance without an explicit datadir drops the default --datadir argument on current main (6824b79). This also affects instances that select only a hardfork.
#115 added a datadir property to the options forwarded by start(). When no directory was selected, its value is undefined: deepAssign() overwrites the command's computed default with it, then toArgs() omits the flag.
Reproduction
Capture the child argv from these process instances:
Instance.tempo()
Instance.tempo({ hardfork: 'T9' })
Both should pass their computed --datadir (tempo.<port> or tempo.<port>.T9 under the temporary .prool directory). Neither does. An explicit datadir and a genesis transform without an explicit directory still work.
I reproduced this with a local process fixture that returns a minimal genesis for dump-genesis and emits the node readiness line. It inspects the actual spawned arguments without a Tempo node or network connection. The default, hardfork-only and explicit-directory controls all pass before #115 (3840236); on current main the first two fail. The current four-case fixture gave the same result on two runs.
The existing command({ port }) tests do not cover this boundary because that call does not contain an explicit datadir: undefined.
The fix can stay in the Tempo adapter: resolve datadir separately from the generic merge, preserving explicit and genesis-derived paths. I will keep the shared merge helper, Docker adapter, timeout handling and genesis serialization unchanged, with start-boundary regression coverage.
This is an argument-level regression; I have not established data-loss impact or run the real Tempo node.
- Lenguaje dominante
- TypeScript
- Estrellas
- 142
- Forks
- 28
- Merge medio
- 4 h 15 min
- PR fusionados (30 d)
- 8
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
- 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 wevm/prool
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Unused [email protected] dependency adds 12 advisories to consumers' auditsPosiblemente ocupada @selimaytac la tomó hace 58 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
anvil: silent footgunPosiblemente ocupada @chrisx9z la tomó hace 177 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Migrate from execa to tinyexecPosiblemente ocupada @chrisx9z la tomó hace 187 días. AbiertoM: Good First Issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
wevm/prool#34 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Readiness succeeds before a valid eth_chainId when no expected chain ID is suppliedPosiblemente ocupada @Osraka la tomó hace 3 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 20/100
Los mantenedores suelen responder en 1 día
Todos los issues de wevm/prool
Issues similares
-
[typescript] BasicAuth.fromAuthorizationHeader accepts headers without the Basic scheme prefixAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
enhancement severity:low
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Battle-Cattle/BCUK-Bot-4#1252 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelcontextprotocol/inspector#3098 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
onyx-dot-app/onyx#18730 ·
Los mantenedores suelen responder en 1 día