tempo: default datadir is dropped when starting process instances

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

Los mantenedores suelen responder en 1 día

@Osraka ya está trabajando en esto.

Desde el 1/11/2026.

  • #121 de @Osraka — abierto

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

  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 wevm/prool

Todos los issues de wevm/prool

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.