GitForge runner: bound the container-reap and backend-health calls on the failure path

Abierto
#37 0 comentarios 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
67/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
docker, rust
Área
backend, devops

Línea de trabajo

Start in crates/gitforge-runner/src/executor.rs and compare the failure path with the preflight teardown path that already uses a 15-second timeout. Trace backend_health() into crates/gitforge-sandbox/src/docker.rs to understand the Docker container listing call. Done means both failure-path calls are bounded and a reap timeout surfaces as a distinct runner error within the timeout.

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

Descripción

bug ci

On the job failure path, crates/gitforge-runner/src/executor.rs arms call self.reap_attempt_containers(job_id).await and backend_health().await with no timeout, while the preflight-teardown path uses timeout(Duration::from_secs(15), …). The unbounded backend_health goes on to an unbounded bollard list_containers in crates/gitforge-sandbox/src/docker.rs. A wedged Docker daemon therefore wedges the runner instead of failing the job.

Work

  • Bound both calls with the same 15-second budget the preflight path already uses.
  • Surface a distinct failure class when the reap times out, so a runner wedge is not reported as a job failure.

Acceptance

  • A job whose containers cannot be reaped fails with a runner error within the timeout instead of hanging.

Tracking: task #202.

Lenguaje dominante
Rust
Estrellas
11
Forks
1
Merge medio
9 h 48 min
PR fusionados (30 d)
13

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 aliasfoxkde/FireCraft

Todos los issues de aliasfoxkde/FireCraft

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.