Timing- and isolation-sensitive tests: bind-limit insert, admin read cancel, OTLP telemetry

Aperta
#680 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, rust
Ambito
databases, testing

Direzione di ricerca

Start by reading AGENTS.md for the ci_timing::scaled_timeout guidance, then inspect the named integration, admin read cancel, and telemetry tests and how they share or isolate databases. Reproduce the bind-limit row-count drift alongside the test binary, and check which waits use unscaled timeouts. Done when the database interference is isolated or traced and both remaining waits use the prescribed helpers, with the tests passing under ordinary local conditions.

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

Descrizione

Three tests are sensitive to timing or to tests sharing a database. All three pass in CI today, and all three fail locally under ordinary conditions:

  1. integration_test::test_insert_many_exceeding_bind_parameter_limit: run alongside the rest of its binary against a shared database, the stored row count for its queue drifts. Observed: 5,956, 5,965, 5,989 and 6,001 against an expected 6,000. It passes in isolation and with --test-threads=1, and fails the same way on v0.6.13. Some concurrent test in the binary is adding or removing rows that count toward this queue, through the compat awa.jobs view.
  2. admin_read_cancel_test::cancelled_{job_list,kind_overviews}_begin_does_not_return_open_transaction: they fail locally with Elapsed under the strict 5 s bound() and pass with CI=true. Before reaching its gated BEGIN, the read takes longer than the local bound.
  3. telemetry_test::test_otlp_metrics_reach_prometheus: it waits for completions with an unscaled 60 s wall-clock timeout, which AGENTS.md says should go through ci_timing::scaled_timeout. It failed once in CI with 0 of 3 jobs completed, and passed on re-run.

Proposal

  • Give the bind-limit test an isolated database, or find the test whose cleanup or routing touches its queue.
  • Scale the remaining two waits with the ci_timing helpers.
Lingua principale
Rust
Stelle
37
Fork
8
Merge medio
14h 16m
PR unite (30g)
244

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 hardbyte/awa

Tutte le issue di hardbyte/awa

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.