App canary health-check runs before the new release is activated, so it validates the OLD running podd

Abierto
#38 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
rust
Área
backend, devops

Línea de trabajo

Read crates/pod-updater/src/release.rs around install_app alongside crates/pod-updater/src/install.rs for staging and health checks, then inspect agent.rs rollback handling and the existing failing_health_check test. Trace when the new release starts and which release the health check observes; done means a failed new release is detected and rolled back automatically, with tests covering the real release flow.

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

Descripción

bug

In install_app (crates/pod-updater/src/release.rs:117-133) the order is: stage() -> health.healthy() -> flip previous -> flip current -> installer.restart(). But stage() (SystemInstaller, install.rs:62) only mounts the squashfs read-only; it never launches the new podd. HttpHealthCheck (install.rs:118-140) polls http://127.0.0.1:3000/api/serverStatus, which is served by the still-running OLD release, because restart() doesn't happen until after the current flip. So the canary always reflects the old release's health: a new app build that crashes on boot still passes the canary, current gets flipped, and the service restarts into the broken release. There is also no post-restart verification and rollback() is never called automatically (only exposed as a manual method, agent.rs:318), so the advertised 'canary + instant rollback' safety net (lib.rs:22-24) does not actually protect against a bad app release. The failing_health_check test only passes because FnHealthCheck is decoupled from the real service.


Filed from a repo-wide code audit (working tree at bcad746).

Lenguaje dominante
Rust
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

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 GoogleBot42/podd

Todos los issues de GoogleBot42/podd

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.