Potential for bad refs from import

Offen
#2,594 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust
Bereich
backend

Rechercherichtung

Read the linked discussion in pull request #2449 to find the import path and its diff_id validation steps. Trace when the ref is linked into the repo and how retries handle it; done means an unvalidated ref cannot be reused after a crash or power loss. The issue names no files or tests, so locate the relevant code and coverage from that entry point.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

xref https://github.com/bootc-dev/bootc/pull/2449#discussion_r4391329884

I think we can improve this so we don't link the ref into the repo until after diff_id validation. Otherwise if we have an untimely crash / power loss a retry of the operation is going to see the potentially bad ref and blindly try to use it.

Vorherrschende Sprache
Rust
Sterne
2.3k
Forks
230
Ø Merge
2 T. 11 Std.
Gemergte PRs (30 T.)
42

Entwicklungsumgebung

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 bootc-dev/bootc

Alle Issues in bootc-dev/bootc

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

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