[🐛 Bug]: Videos are not always recorded due to video container not being aware of some sessions.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker
調査の方向性
まず、リンク先の selenium-missing-videos-bug プロジェクトで、提供された Docker Compose セットアップを使って reproduce.sh を実行し、その後、生成された動画数と添付ログ内のセッション ID を比較します。動画コンテナが新しいセッションをどのように認識するのか、特にセッション 7ee3e3d1-3f69-4022-ab5c-5f5537dd1433 について追跡します。完了の条件は、実行を繰り返したときにすべてのテストセッションに対して動画が生成されることです。
索引モデルが issue の本文から書いたものです。
説明
What happened?
I am running selenium grid with a video container on CI (Linux). The test suite runs over a 100 tests sequentially, one by one.
Every test opens and closes a new browser window and sets a unique name for the video. After the run I expected to see one video for every test ran, when in fact amount of videos is random, with many missing. (20 to 86, rarely 100+)
I was able to reproduce the same behaviour locally on MacOs, by starting the containers and manually running the same test multiple times in a row, checking the amount of videos after each execution. All possible logging was enabled, but still insufficient for me to get to the bottom of the problem. My best efforts resulted in conclusion that video container is not always aware a new session has been created to start recording it.
Full debug logs are attached. log.log
There test was ran 3 times, ID of the session that was not recorded is 7ee3e3d1-3f69-4022-ab5c-5f5537dd1433. IP of the video container in the logs is 172.18.0.4
To reproduce the issue, run reproduce.sh from this project I created specifically for this
You will need to install gradle to run the script.
The script will start the containers and run selenium test in a loop, checking amount of videos generated every iteration.
Command used to start Selenium Grid with Docker (or Kubernetes)
docker compose -f "docker-compose.yaml" --project-name test up --wait;
Relevant log output
selenium-hub | 21:08:39.172 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 48ef380c-161d-47f4-8697-8171e0618491
selenium-hub | 21:08:43.428 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 7ba51047-8ecd-4f2a-87ce-1835319ee384
selenium-hub | 21:08:46.760 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 7ee3e3d1-3f69-4022-ab5c-5f5537dd1433
Operating System
MacOs, Linux.
Docker Selenium version (image tag)
selenium/hub:4.25.0-20241024
Selenium Grid chart version (chart version)
No response
- 主要言語
- Go
- スター
- 8.7k
- フォーク
- 2.5k
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 37
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SeleniumHQ/docker-selenium のほかの issue
-
難易度 4/5 1〜2日 初心者へのやさしさ 25/100
SeleniumHQ/docker-selenium#3338 ·
メンテナーはふだん 1 日以内に返信
-
[🐛 Bug]: hub & node-chromium - cURL 8.22.0 & guava 33.6.0-android pulled in, needs security fixesオープンneeds-triaging
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
SeleniumHQ/docker-selenium#3332 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triaging
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
SeleniumHQ/docker-selenium#3299 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triaging
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SeleniumHQ/docker-selenium#3298 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triaging
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SeleniumHQ/docker-selenium#3279 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
SeleniumHQ/docker-selenium の issue をすべて見る
似ている issue
-
bug effort:s impact:med raised-by:desk risk:low
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
medici-finance/assay#8342 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bketelsen/truenas-mcp#120 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nwverse/persona#22164 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sresarehumantoo/cc-artex#559 ·