Potential for bad refs from import

Đang mở
#2,594 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
2.3k
Fork
230
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
42

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bootc-dev/bootc

Tất cả issue của bootc-dev/bootc

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.