Flaky test: tunnel enabled_tunnel_starts_at_boot fails port_open on Linux CI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia da crates/atlas-cli/tests/tunnel.rs intorno alla riga 240 ed esamina il fixture enabled_tunnel_starts_at_boot_with_expected_ssh_args_and_stops_on_exit, poi leggi spawn_and_wait e ensure_up in supervisor.rs. Fai in modo che l’asserzione che fallisce includa tunnel.log e f.invocations() così che il prossimo errore permetta di distinguere una collisione di porte da un’altra causa. Se i log confermano una collisione, assegna al fixture una porta che i test concorrenti non possano occupare; il lavoro è concluso quando il test passa in modo affidabile nella CI Linux parallela.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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).
- Lingua principale
- Rust
- Stelle
- 3
- Fork
- 1
- Merge medio
- 9h 51m
- PR unite (30g)
- 310
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codeatlasdev/atlas
-
type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
codeatlasdev/atlas#597 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ci type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
codeatlasdev/atlas#596 ·
I maintainer di solito rispondono entro 1 giorno
-
os: linux type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
codeatlasdev/atlas#591 ·
I maintainer di solito rispondono entro 1 giorno
-
flaky: Windows scripts job hits test timeouts (check-dco, i18n runner/translate, check-changed)Apertaarea: ci os: windows type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
codeatlasdev/atlas#550 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: terminal os: linux type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
codeatlasdev/atlas#549 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codeatlasdev/atlas
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tinystream-dev/tinystream#132 ·
-
contract good first issue testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Emmyt24/nova-launch#2436 ·
I maintainer di solito rispondono entro 1 giorno