vp run: cache key encoding failure skips all tasks and exits 0 ("0/0 cache hit")
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, rust
- Ambito
- build-system, cli, tooling
Direzione di ricerca
Inizia dal percorso di ricerca della cache di vp run e, se possibile, riproduci su macOS e Linux il fallimento segnalato di vp run codegen. Traccia come vengono segnalati gli errori di codifica della chiave della cache e come vengono determinati l’esecuzione dell’attività e lo stato di uscita. Il lavoro è completato quando un errore della cache non può produrre un successo silenzioso 0/0: l’attività viene eseguita senza cache oppure il comando termina con uno stato diverso da zero, con diagnostica su stderr.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When vp run fails to encode a task's cache key, it prints the failure to stdout, then runs zero tasks and exits 0.
$ vp run codegen
✗ Cache lookup failed: Encoded sequence length exceeded preallocation limit of 4194304 bytes (needed 9831192 bytes)
---
vp run: 0/0 cache hit (0%). (Run `vp run --last-details` for full details)
$ echo $?
0
The task never executed, nothing was generated, and the exit status says everything is fine.
Impact
This reached us through a CI check that regenerates a committed artifact and diffs it. The check ran vp run <codegen task>, got exit 0, compared the file against itself, and reported "up to date" — while codegen had not run at all. The check had been structurally incapable of noticing.
In CI (Linux) the same invocation exited with status 135 instead of 0, with no output at all, which is a second inconsistency: the same condition produces a silent success locally and an unexplained non-zero status in CI.
Expected
A cache-layer failure should never be able to skip work. Either fall back to running the task uncached, or fail loudly with a non-zero exit. 0/0 tasks executed with exit 0 should not be reachable when a task was requested.
Two smaller points:
- The diagnostic goes to stdout, so it disappears for any caller using
stdio: ["ignore", "ignore", "inherit"]— which is a natural choice for a wrapper that only cares about stderr. It belongs on stderr. - 4 MiB looks like a fixed preallocation rather than a limit that should be enforced; growing past it is a normal thing for a large workspace to do.
Reproduction
I do not have a minimal reproduction — the encoded size depends on workspace scale. Ours crossed the threshold at roughly 1,300 first-party source files after an import-graph change; the task itself is a single graphql-codegen invocation whose output is ~870 KB. Scaling a synthetic workspace to 80,000 trivial modules did not reach the limit, so the encoded sequence appears to be driven by something other than raw input file count.
Happy to gather more detail if there is a debug flag that dumps what goes into the cache key.
Environment
vp0.1.24- Local: macOS 15 (Darwin 25.4.0), arm64, Node 26.8.1 → exit 0,
0/0 - CI: Linux x86_64, Node 26.8.1 → exit 135, no output
Possibly related to #2635 (cache layer degrading to a silent success).
- Lingua principale
- Rust
- Stelle
- 6k
- Fork
- 274
- Merge medio
- 1g 11h
- PR unite (30g)
- 206
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- 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 voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
voidzero-dev/vite-plus#2970 ·
I maintainer di solito rispondono entro 1 giorno
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
voidzero-dev/vite-plus#2882 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Windows: PowerShell installer (1.1.0) does not add vite-plus\bin to user PATH — 'vp' not recognizedAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
voidzero-dev/vite-plus#2984 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
pending triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 40/100
voidzero-dev/vite-plus#2983 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
EasyTier/EasyTier#2672 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
XmlFragment children, successors and siblings stop at the first child that is not an XML typeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
repowise-dev/repowise#3374 ·
I maintainer di solito rispondono entro 1 giorno
-
awaiting-response bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wildcard/caro#1562 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni