[🐛 Bug]: Videos are not always recorded due to video container not being aware of some sessions.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker
- Lĩnh vực
- devops, distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách chạy reproduce.sh từ dự án selenium-missing-videos-bug được liên kết với thiết lập Docker Compose đã cung cấp, sau đó so sánh số lượng video được tạo với các session ID trong các log đính kèm. Truy vết cách container video biết về các session mới, đặc biệt là session 7ee3e3d1-3f69-4022-ab5c-5f5537dd1433; hoàn thành nghĩa là các lần chạy lặp lại tạo ra một video cho mọi session kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 8.7k
- Fork
- 2.5k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SeleniumHQ/docker-selenium
-
Nightly build is failingĐang mở
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 25/100
SeleniumHQ/docker-selenium#3338 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[🐛 Bug]: hub & node-chromium - cURL 8.22.0 & guava 33.6.0-android pulled in, needs security fixesĐang mởneeds-triaging
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 54/100
SeleniumHQ/docker-selenium#3332 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triaging
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
SeleniumHQ/docker-selenium#3299 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triaging
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
SeleniumHQ/docker-selenium#3298 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triaging
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
SeleniumHQ/docker-selenium#3279 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của SeleniumHQ/docker-selenium
Issue tương tự
-
bug effort:s impact:med raised-by:desk risk:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
medici-finance/assay#8342 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug sweep
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bketelsen/truenas-mcp#120 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nwverse/persona#22164 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sresarehumantoo/cc-artex#559 ·