Re-enable the 5 worker tests quarantined on public CI in Runtime_tests.cpp

Abierto
#226 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
57/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp, github-actions

Línea de trabajo

Read valdi/test/integration/Runtime_tests.cpp and tools/ci/run_tests.sh, then inspect the host teardown behavior controlled by VALDI_ENABLE_TEARDOWN_STOP_ORPHANED_WORKERS. Run bazel test //valdi:test_integration --test_filter='*orker*' --runs_per_test=20. Done means all five named worker tests pass repeatedly on GitHub Actions without the quarantine variable.

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

Descripción

Five tests in valdi/test/integration/Runtime_tests.cpp are skipped on GitHub Actions:

  • FLAKY_workerWorks
  • workerCanBeTerminatedBeforeInitialization
  • busyWorkerCanBeTerminated
  • busyWorkerWithTransferredPortCanBeTerminated
  • idleWorkerCanBeTerminated

Each one ends with a worker still running. Host teardown doesn't join that worker, so the worker can touch the freed host and crash a later test on the small public runners. tools/ci/run_tests.sh sets VALDI_QUARANTINE_ORPHANED_WORKER_TESTS=1 on GitHub Actions, and orphanedWorkerTestsQuarantined() skips the tests when it's set.

What to do: make host teardown stop orphaned workers by default. The behavior already exists behind VALDI_ENABLE_TEARDOWN_STOP_ORPHANED_WORKERS, which is off by default. Then remove orphanedWorkerTestsQuarantined(), its callers and the run_tests.sh line, and rename FLAKY_workerWorks to workerWorks.

How to run

bazel test //valdi:test_integration --test_filter='*orker*' --runs_per_test=20

Done when: all five tests run on GitHub Actions without the quarantine variable and pass repeatedly.

See CONTRIBUTING.md before opening a pull request.

Lenguaje dominante
C++
Estrellas
16.4k
Forks
539
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 Snapchat/Valdi

Todos los issues de Snapchat/Valdi

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.