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

Abierto
#680 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
53/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
postgresql, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
37
Forks
8
Merge medio
14 h 16 min
PR fusionados (30 d)
244

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hardbyte/awa

Todos los issues de hardbyte/awa

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.