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

Aperta
#226 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
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp, github-actions

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
C++
Stelle
16.4k
Fork
539
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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

Tutte le issue di Snapchat/Valdi

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.