Flaky test: tunnel enabled_tunnel_starts_at_boot fails port_open on Linux CI
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
- 78/100
Línea de trabajo
Empieza por crates/atlas-cli/tests/tunnel.rs alrededor de la línea 240 e inspecciona el fixture enabled_tunnel_starts_at_boot_with_expected_ssh_args_and_stops_on_exit; después, lee spawn_and_wait y ensure_up en supervisor.rs. Haz que la aserción que falla incluya tunnel.log y f.invocations() para que el siguiente fallo permita distinguir una colisión de puertos de otra causa. Si los logs confirman una colisión, asigna al fixture un puerto que las pruebas concurrentes no puedan ocupar; el trabajo estará terminado cuando la prueba pase de forma fiable en CI de Linux en paralelo.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
atlas-cli::tunnel enabled_tunnel_starts_at_boot_with_expected_ssh_args_and_stops_on_exit failed today on Rust (Linux) in three unrelated PR runs, both attempts each time (nextest retry), always at the same line:
panicked at crates/atlas-cli/tests/tunnel.rs:240:5:
assertion failed: port_open(f.local_port)
Runs: 43915049469 (fix/release-notes-github-limit), 43894385419 (perf/virtualize-large-lists), 43887797630 (feat/yank-list). None of them touch the tunnel code; the full CI of 20b14c8b (main) passed.
What is known:
- The test waits until the status file says the tunnel is
running, then checks the port once (200 ms connect). - The supervisor only reports
Runningafter its own port check succeeds (supervisor.rsspawn_and_wait/ensure_up), so the product does not claim a port it has not seen open. ensure_upalso reportsRunningwithout starting ssh when the port is already accepting connections ("already accepting connections; not starting ssh").common::free_port()binds127.0.0.1:0, drops the listener and returns the port, and nextest runs ~4000 tests in parallel processes.
Hypothesis (not proven): another test's listener briefly held the same port when atlas started, atlas adopted it as "already open" and never ran the fake ssh, then that listener went away before the assertion. If so, f.invocations() is empty in the failing runs, and .logs/tunnel.log holds the "already accepting connections" line.
To close: make the failing assertion print tunnel.log and f.invocations(), which tells the two cases apart on the next failure; if it is the collision, give each fixture a port that no other test can take (hold a listener until the fake ssh is about to bind, or pick from a range outside the ephemeral one).
- Lenguaje dominante
- Rust
- Estrellas
- 3
- Forks
- 1
- Merge medio
- 9 h 51 min
- PR fusionados (30 d)
- 310
Preparar el entorno
- Sin Dockerfile ni 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 codeatlasdev/atlas
-
type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
codeatlasdev/atlas#597 ·
Los mantenedores suelen responder en 1 día
-
area: ci type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
codeatlasdev/atlas#596 ·
Los mantenedores suelen responder en 1 día
-
os: linux type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
codeatlasdev/atlas#591 ·
Los mantenedores suelen responder en 1 día
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)Abiertoarea: ci os: windows type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
codeatlasdev/atlas#550 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: terminal os: linux type: bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
codeatlasdev/atlas#549 ·
Los mantenedores suelen responder en 1 día
Todos los issues de codeatlasdev/atlas
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
tinystream-dev/tinystream#132 ·
-
contract good first issue testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Emmyt24/nova-launch#2436 ·
Los mantenedores suelen responder en 1 día