ostree-ext: Failed assertion in `Chunking::process_mapping`
- Lingua principale
- Rust
- Stelle
- 2.3k
- Fork
- 230
- Merge medio
- 3g 3h
- PR unite (30g)
- 36
Descrizione
When rechunking certain images using `rpm-ostree compose build-chunked-oci`, an assertion in [ostree_ext::chunking::Chunking::process_mapping](https://github.com/bootc-dev/bootc/blob/5ec2c5ce690a01c35cd6cfb43cc03e176ab8e96a/crates/ostree-ext/src/chunking.rs#L423) fails, causing a panic. Here are two image builds where this happens:
* https://github.com/get-aurora-dev/aurora-test/actions/runs/20599380284/job/59161093895?pr=4#step:17:29
* https://github.com/Lumaeris/vedaos/actions/runs/20597343502/job/59154715757#step:3:6735
This only happens with certain images, not with all images, and I'm unsure what exactly triggers it. However, it seems to have something to do with basing the layer plan on a previous build manifest, as this bug was not occurring with the same images when the previous build manifest was not being taken into account. (If someone could figure out a more minimal reproduction of this bug, that would be great.)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia in crates/ostree-ext/src/chunking.rs, in Chunking::process_mapping, e analizza l’assertion indicata nell’issue. Riproduci il problema con rpm-ostree compose build-chunked-oci usando le build collegate di Aurora e VedaOS, confrontando il comportamento con e senza il manifest della build precedente. Il lavoro è completato quando viene identificato il mapping che lo attiva e viene impedito il panic, idealmente con una riproduzione minima.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- build-system
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 38/100