Update tests for delta optimization

Aperta
#76 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
testing-qa

Direzione di ricerca

Inizia esaminando i test interessati da PR #70 e l’ottimizzazione delta che copia direttamente i file più piccoli del percorso del file sorgente delta. Verifica il comportamento della coverage con codecov o la suite di test, quindi modifica le dimensioni dei file di test in modo che i percorsi di codice delta precedentemente coperti vengano eseguiti nuovamente e la coverage torni al livello precedente.

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

Descrizione

Pr #70 introduced an optimization that results in small files (smaller than the pathname of the delta source) being copied directly to the delta, skipping the delta process on those files. This helps speed things up, especially with bootc images.

However, this also broke codecov a bit. The new optimization results in old codepaths not being executed. This then makes codecov sad, as it thinks we're not testing as much code as we used to be.

This is likely due to the tests using small files, hitting the optimization, and skipping the codepaths they used to traverse. Thus, we need to update the tests to ensure that the old codepaths are hit again as they used to be. (I think this should largely be solved by increasing test file size, although I haven't totally confirmed myself yet.)

TLDR: tests need to be updated to return to traversing the codepaths they used to cover, likely by increasing the test file size.

Lingua principale
Go
Stelle
66
Fork
27
Merge medio
14g 3h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

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 containers/tar-diff

Tutte le issue di containers/tar-diff

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.