Binary Diff for package upgrades

Aperta
#1,869 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
c
Ambito
cli

Direzione di ricerca

L’issue non indica file né test. Inizia mappando il flusso di digest, download, verifica della firma e installazione di pkg rispetto ai passaggi elencati; quindi ricerca gli approcci esistenti per le differenze binarie e misura i compromessi in termini di spazio di archiviazione, memoria e CPU. Il lavoro sarà considerato completato quando sarà disponibile un design concreto e firmato in modo sicuro, con metadati del pacchetto documentati, comportamento di fallback e risultati sull’efficienza.

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

Descrizione

Currently tracking packages on head every package needs uploaded to pkg server and redownloaded if even a single byte changes. I.E. An abi change cause cdn for packages to completely update to new only identical files. I propose a system similar to differential backups where a binary diff of a package(untarred contents) could be applied and at max you have two "types". Full build of a package from given version and a differential. Either some heuristic or manual intervention is used to setup a new "full" version of the package as necessary.

Steps

  1. Download package via data in digests.
  2. Check if package is differential or full.
    3a. If full package continue as normal
    3b If Package is a differential download full package(may already be cached on disk)
  3. Apply Binary diff to individual files
  4. Install newly rebuilt pkg

This is especially important for something like cloud storage where uploading new data may have a cost and it should cause smaller updates at least part of time if an already installed packages. I'm willing to start work on this but I know this is a very bikeshedable topic and wanted to get feedback early. Some people have probably tried and failed and I'm very interested in any existing work.

I still need to do research on exact efficiency gained by this method/max memory needed for diffing/compute cycles need to do diff etc.

But to do this safely and securely in a fully signed fashion I believe all the fetching and applying diffs needs done inside pkg itself.

I apologize if this is a duplicate of an existing issue but surprisingly I could not find one

Also this is completely my own goal and work on personal time not connected to my employer.

Lingua principale
C
Stelle
835
Fork
313
Merge medio
3g 7h
PR unite (30g)
6

Preparare l'ambiente

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 freebsd/pkg

Tutte le issue di freebsd/pkg

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.