Check fadace disk for available space before cloning

Abierto
#496 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
18
Forks
33
Merge medio
2 d 16 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de chaoss/CollectOSS

Todos los issues de chaoss/CollectOSS

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.