Start test servers on a port no other program can take
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
- 66/100
Línea de trabajo
Start by reading FreeAddr and WaitForListening, then find the tests that start a server and poll its address. Check how the listening line is captured and how a bind failure is reported; the proposal is complete when tests can start servers on port 0, use the address from that line, and fail the wait if binding fails.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
A test should never fail because another program took its port.
Current state: FreeAddr opens a listener on port 0, closes it and returns the address. Another program can take it before the server binds. The server then fails to bind, and a test that polls the address talks to that program instead. In a check, the next 40 port 0 binds took 29 of 5000 freed ports.
Proposal: Make WaitForListening return the address the listening line names. Tests then start their server on port 0 and read its log through a pipe. A server that cannot bind then fails the wait, not a later request. FreeAddr stays for an address nothing answers at.
Trigger: A downstream application's CI failed once this way, then passed on a rerun.
- Lenguaje dominante
- Go
- Estrellas
- 69
- Forks
- 3
- Merge medio
- 9 h 11 min
- PR fusionados (30 d)
- 38
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de gopherium/framework
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
enhancement help wanted
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
Todos los issues de gopherium/framework
Issues similares
-
[BUG] deploy.restart_policy without condition drops the restart policyPosiblemente ocupada @akshat-lakhera la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
docker/compose#14383 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
AvengeMedia/dank-greeter#39 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dokku/dokku-datastore#367 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: ap gateway image build cannot find local policies on WindowsPosiblemente ocupada @Jayzilva la tomó hoy. AbiertoAspect/Configuration Severity/Major
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
wso2/api-platform#3912 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días