Coordinator: external-command PostgreSQL tests time out on a busy machine

Aperta Adatta ai principianti
#2,507 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
postgresql, rust
Ambito
databases, testing

Direzione di ricerca

Leggi crates/registry-coordinator/tests/external_command_postgres.rs, in particolare la configurazione del timeout vicino alla riga 131 e il test specifico del timeout vicino alla riga 566. Aumenta il timeout dei tentativi per gli altri test a circa 30 secondi, mantenendo breve il controllo del timeout con un ritardo più lungo. Esegui il file di test PostgreSQL e conferma che i test ordinari raggiungono finished, mentre il test del timeout raggiunge ancora attention.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:coordinator criticality:p3

The PostgreSQL tests for external.command/v1 can fail when the machine is busy.

What happens

In crates/registry-coordinator/tests/external_command_postgres.rs:131, the test harness sets attempt_timeout_milliseconds = 1_500. On a busy machine (load average 18 to 28), an ordinary attempt can take longer than 1.5 s. The attempt then ends attempt-timeout, and the run waits in attention instead of reaching finished. In one local run, 8 of the 9 tests failed this way. They passed when rerun alone and in the full suite.

Fix

Use a generous attempt timeout, for example 30 s, in every test except the one that checks the timeout itself (it asserts attention around line 566). That test keeps its short timeout and a delay longer than it.

decision_protocol also failed 9 tests once under the same load and passed on rerun. Its tests use the 8 s default timeout, plus one 800 ms timeout against a 2 s delay (tests/decision_protocol.rs:431-438). We have no failing log, so the cause there is unconfirmed.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
9h 16m
PR unite (30g)
209

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di registrystack/registry-stack

Tutte le issue di registrystack/registry-stack

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.