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

オープン
#226 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
57/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp, github-actions

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
16.4k
フォーク
539
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Snapchat/Valdi のほかの issue

Snapchat/Valdi の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。