TestPoolOfLiarsFallsBackToTrusted fails under full-suite load
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Empieza en internal/scan/retry_edges_test.go:154-168 y lee TestPoolOfLiarsFallsBackToTrusted; el issue identifica los tiempos de espera ajustados del resolver y los recuentos exactos de resultados como origen del fallo intermitente. Ejecuta go test ./internal/scan/ -run TestPoolOfLiarsFallsBackToTrusted -count=20. Ajusta la prueba para que tolere una respuesta lenta de loopback y amplía el mensaje de error para informar de los resultados de los nombres que faltan; confirma que la prueba específica pasa.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
TestPoolOfLiarsFallsBackToTrusted gives both resolvers a 1 s timeout and a single attempt, then asserts exact counts. Under full-suite load, one late loopback answer is enough to fail it.
Where
internal/scan/retry_edges_test.go:154-168internal/scan/runner.go:723-743(resolveViaPoolreturns the trusted lookup's failure outcome as is)
Details
// Timeout: time.Second, Attempts: 1 on both the lying member and the trusted resolver
if st.Found != 1 || st.NXDomain != int64(len(entries)-1) {
A local full-suite run (go test -count=1 -coverpkg=./... ./...) failed with found 1 nxdomain 19; want only www… after 1.06 s. A passing run takes about 50 ms, so one name used up the whole per-query budget. The failure message prints only Found and NXDomain, so it does not say which outcome the missing name got.
Impact
Occasional red builds on a loaded runner. CI's Linux leg runs this package with -race and -coverpkg, which is slower still. This is the same class as the closed timeout flakes #289 and #235.
Steps to reproduce
Seen once in two local full-suite runs (Windows, go1.26.11). Not reproduced in isolation: go test -count=40 -run 'TestPoolOfLiarsFallsBackToTrusted$' ./internal/scan/ passed every time.
Suggested fix
Give both resolvers headroom: Attempts: 2, or a 3 s timeout on dns.NewResolver, dns.NewPool and Config.Timeout. Add st.Timeout, st.Other and st.Unconfirmed to the failure message.
Acceptance criteria
- The test tolerates one slow loopback answer
- The failure message names the outcome of the missing names
Getting started
- Relevant files:
internal/scan/retry_edges_test.go - How to run tests:
go test ./internal/scan/ -run TestPoolOfLiarsFallsBackToTrusted -count=20 - Related: #289, #235
Filed by repo-audit/full-audit at dd5b156. Severity: low. Effort: S. audit-key: testing|internal/scan/retry_edges_test.go|TestPoolOfLiarsFallsBackToTrusted
- Lenguaje dominante
- Go
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 7 h 18 min
- PR fusionados (30 d)
- 23
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 TMHSDigital/subenum
-
severity: low tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TMHSDigital/subenum#414 ·
Los mantenedores suelen responder en 1 día
-
area: tui good first issue severity: low testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/subenum#413 ·
Los mantenedores suelen responder en 1 día
-
good first issue performance severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/subenum#411 ·
Los mantenedores suelen responder en 1 día
-
bug github-actions good first issue severity: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/subenum#407 ·
Los mantenedores suelen responder en 1 día
-
area: cli severity: medium tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
TMHSDigital/subenum#402 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/subenum
Issues similares
-
area/api integration/inbound
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
go-vikunja/vikunja#4446 ·
Los mantenedores suelen responder en 2 días
-
Additional underlay with a different id than the channel owner is acceptedPosiblemente ocupada @dmuensterer la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
stacklok/toolhive-catalog#1976 ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
projectdiscovery/nuclei#8159 ·
Los mantenedores suelen responder en 1 día
-
MemoryStore.GetConversationChain logs while holding the store read lock, stalling every writerAbiertoneeds-acceptance
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
vllm-project/semantic-router#6785 ·
Los mantenedores suelen responder en 1 día