Check fadace disk for available space before cloning

未关闭
#496 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Python
星标
18
派生
33
平均合并
2 天 16 小时
30 天内合并 PR
12

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

chaoss/CollectOSS 的其他 Issue

查看 chaoss/CollectOSS 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。