Readiness a definition can control: timeout, HTTP check, unsupervised resources, and flaky fixed-port tests

Abierto
#276 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
rust
Área
cli, testing

Línea de trabajo

Start by reading PR #257 and the related issues #243 and #255 to understand the existing starting state, prepare behavior, and ports --check flow. The issue raises several open design choices around duration settings, HTTP checks, port checks, and flaky tests; first decide which readiness behavior the project should support, then define acceptance criteria and tests for it.

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

Descripción

#257 (for #243) adds a starting state and a fixed 5 s wait after spawn. Left open:

  • Per-resource readiness. There's no ready_timeout, because the definition format has no duration type. A dev server that takes 20 s just shows starting. Is a fixed default enough, or do we want a duration type?
  • What "up" means. Some servers bind early and serve errors until compiled. Should a definition be able to name an HTTP readiness URL?
  • Unsupervised resources have no readiness at all. A resource with no supervised process is ready when prepare exits 0 (#255 showed how that lies). Should declared ports be checked after prepare, as ports --check does?
  • Test flakiness. #257's tests listen on fixed ports 54700/54750 and each "still starting" test waits the full 5 s. One run failed once and passed on rerun. Use OS-assigned ports and a shorter test-only wait?
Lenguaje dominante
Rust
Estrellas
0
Forks
0
Merge medio
6 h 21 min
PR fusionados (30 d)
173

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. 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 Spheroman/newgit

Todos los issues de Spheroman/newgit

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.