Check fadace disk for available space before cloning

Đang mở
#496 1 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 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

Start by locating the configured facade clone path, the existing anticipated repository clone-size check from #459, and the clone task entry point. Add configurable reserve space, compare available filesystem space minus that reserve with the anticipated clone size, and verify that insufficient space rejects the clone or fails the task chain.

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

Mô tả

task:facade

This is similar to #458, however instead of checking with a user defined per-repo limit, we should check against the actual on disk conditions.

In this issue i propose we add a config value (maybe: facade_clone_reserve_space) to allow the user to configure an amount of space that should be kept free for facade clones.

The purpose of this reserve space is to prevent full-disk scenarios and/or full system lockups.

We already plan to check anticipated repo clone sizes in #459. In addition we should:

  1. query the filesystem that the configured facade clone path is on and measure its available space
  2. subtract the configured reserve space from that value
  3. check whether the remaining space is enough for the anticipated clone (assuming it passed the per-repo clone size check)
  4. raise an error and reject the clone/fail the whole task chain if there is insufficient space
Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
12

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 chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

Issue tương tự

Thêm issue về Python

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.