[bug] IntegrityCheck --no-stamp still writes (workers do not get the flag)

Aperta
#2,810 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
tooling

Direzione di ricerca

Start with LIFEOS/TOOLS/IntegrityCheck.ts: check the header claim that --no-stamp and --section runs write nothing, then trace runWorker() to see that workers get --run-entry and --verbose but not --no-stamp or --accept-drop. Guard the output-coverage emit, the record-coverage writeEventOnce() calls and the plugin temp-folder write behind the read-only flags. Done when a --no-stamp run writes nothing in every lane and no-ledger installs report 'not measured'.

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

Descrizione

What happened

IntegrityCheck --no-stamp still writes (workers do not get the flag)

Summary

LifeOS 8.761.0. The header of LIFEOS/TOOLS/IntegrityCheck.ts says "--no-stamp and --section runs write nothing at all". Four things break that:

  1. runWorker() starts each worker with --run-entry <i> (and --verbose), not with --no-stamp. Inside a worker noStamp is therefore false: the output-coverage lane emits its Vigil event on every --no-stamp run, and the layer-one lane can rewrite its snapshot.
  2. A --section output-coverage run emits the same event (the emit has no guard for --section).
  3. The send-gate audit lane can emit events and the record-coverage lane calls writeEventOnce() whatever the flag says; the plugin lane writes a temporary folder.
  4. --accept-drop is not passed to the workers either, so a concurrent full run cannot accept a drop.

Related: on an install with no output ledger file (the recorder hook is not in the public release), the reconciler's event reads "Output coverage 0%, N escapes" at severity medium on every run. The number cannot change there.

Suggested fix: pass the flags to the workers, guard each emit with the read-only flags, and report "not measured" while no ledger file exists.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

Lingua principale
TypeScript
Stelle
19.9k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.