The remote cache keeps one entry per task, so branches overwrite each other's results
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
Read the remote cache server API and upload flow alongside the linked issues voidzero-dev/vite-task#713 and #755. The issue describes why one entry per task causes branch uploads to overwrite each other, and why input digests alone cannot cover dynamically detected inputs. Explore an API design that can return multiple candidates for a key; done means entries for different input states coexist and runs can hit a matching entry from another branch.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
A remote cache entry is stored under a key made from the task's command, arguments, env, and input/output globs. The contents of the input files aren't part of the key. They're checked after the entry is fetched.
So all input states of a task share one entry. When main and PR branches run the same task with different sources, each upload replaces the previous one, and a fetch hits only if the latest upload came from the same inputs. The more branches share a remote cache, the fewer hits each gets.
The secondary key doesn't help: it only identifies the task, and a fallback through it is used only to explain the miss.
Adding a digest of the input files to the key only covers tasks with explicit input globs. By default, inputs are detected while the task runs, so they aren't known at lookup time. Covering them needs a lookup that can return several candidate entries for one key.
Expected: entries for different input states coexist, so a run can hit an entry uploaded from another branch.
Affects the server API design (voidzero-dev/vite-task#713) and remote cache uploads (voidzero-dev/vite-task#755).
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 0
- Ø Merge
- 2 T. 14 Std.
- Gemergte PRs (30 T.)
- 38
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
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-remote-cache-cloudflare
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#16 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Dependency DashboardOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
voidzero-dev/vite-plus-remote-cache-cloudflare#6 ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in voidzero-dev/vite-plus-remote-cache-cloudflare
Ähnliche Issues
-
area: web bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
kinqsradio/orbyn-engineering#227 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
joeldesante/TurfBuilder#258 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ncecere/open-mcp-portal#85 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
loathers/garbage-collector#2865 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test-reliability
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Azure/azure-sdk-for-js#40672 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag