tempo: default datadir is dropped when starting process instances

Aperta
#120 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Osraka ci sta già lavorando.

Dal 1/11/2026.

  • #121 di @Osraka — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
142
Fork
28
Merge medio
4h 15m
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wevm/prool

Tutte le issue di wevm/prool

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.