vp run: cache key encoding failure skips all tasks and exits 0 ("0/0 cache hit")
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- build-system, cli, tooling
Rechercherichtung
Beginne mit dem Cache-Lookup-Pfad von vp run und reproduziere den gemeldeten Fehler von vp run codegen nach Möglichkeit auf macOS und Linux. Verfolge, wie Fehler bei der Cache-Key-Kodierung gemeldet werden und wie die Aufgabenausführung und der Exit-Status bestimmt werden. Als erledigt gilt die Aufgabe, wenn ein Cache-Fehler keinen stillen 0/0-Erfolg erzeugen kann: Die Aufgabe wird ohne Cache ausgeführt oder der Befehl beendet sich mit einem Status ungleich null, mit Diagnosen auf stderr.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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).
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.6k
- Forks
- 303
- Ø Merge
- 1 T. 4 Std.
- Gemergte PRs (30 T.)
- 224
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voidzero-dev/vite-plus
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
voidzero-dev/vite-plus#3381 ·
Maintainer antworten meist innerhalb von 1 Tag
-
migration pending triage triage: failed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
voidzero-dev/vite-plus#3375 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
`vp env pin`: says "Created .node-version" when overwriting an existing fileEvtl. vergeben @CheHyeonYeong hat das heute übernommen. Offencontribution welcome documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
voidzero-dev/vite-plus#3370 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage: not actionable
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
voidzero-dev/vite-plus#3296 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
voidzero-dev/vite-plus#3235 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in voidzero-dev/vite-plus
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
langchain-ai/langchainjs#12157 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
activescott/home-infra-k8s-flux#511 ·
Maintainer antworten meist innerhalb von 1 Tag
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
lingdojo/kana-dojo#33753 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
android:player
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
follow-up needs-triage S3: minor
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
manaflow-ai/cmux#38032 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag