Upload a build once and install it on many leases

Offen
#1,998 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
24/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
infrastructure

Rechercherichtung

Start by reading packages/remote/src/upload-client.ts and packages/daemon/src/server/resumable-upload.ts, then trace how agent-device installs builds and how leases expose files. The issue leaves the upload audience, storage location, retention, disk limits, and access rules open, so clarify those design choices before implementation; done means one build can be uploaded once and installed across many leases.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

feature:spec

Request: #945

Problem

A CI run that installs one build on many leased devices sends it once per lease. budgie's e2e suite (budgie-at/budgie#1867) uploads the same .app through the gateway for each of 10 leases. A request past 100 s ends in a Cloudflare 524, so it uploads at most 3 at a time, and about 4 of the run's 15 minutes are setup.

Split from #1636 in its spec session of 2026-11-30: folders and app container files share no design with it. Found there:

  • budgie and @simlock/e2e install through agent-device's own upload, not through a lease's files, so a shared upload saves them nothing unless that install step uses it.
  • agent-device's client sends the build's SHA-256 before each upload and accepts an answer that skips it (packages/remote/src/upload-client.ts). Its daemon never gives that answer (cacheHit: false, packages/daemon/src/server/resumable-upload.ts), both at v0.21.41.
  • With one lease per worker, as budgie has, one copy per worker saves nothing: the build has to be kept on the gateway. Today a gateway holds no file.

Who it is for

A CI run that installs one build on many leased devices of a farm reached over a slow or limited link.

Open questions

  • Is the shared upload for agent-device users (answer its SHA-256 question), for lease files, or for both?
  • Where the build lives (gateway, worker or both), how long it is kept, how much disk it may take, and who may install from it.

Written by an agent.

Vorherrschende Sprache
TypeScript
Sterne
730
Forks
44
Ø Merge
15 Std. 28 Min.
Gemergte PRs (30 T.)
387

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus callstackincubator/simlock

Alle Issues in callstackincubator/simlock

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.