[🐛 Bug]: Videos are not always recorded due to video container not being aware of some sessions.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker
调研方向
首先,使用提供的 Docker Compose 设置运行链接的 selenium-missing-videos-bug 项目中的 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 小时
- 30 天内合并 PR
- 37
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
BasicEventElement `messageBroker` is never returned on read (jsonb decoded into `sql.NullString`)未关闭
难度 2/5 1-3 小时 新手友好度 83/100
eclipse-basyx/basyx-go-components#963 ·
维护者通常 1 天内回复
-
Area/Console Aspect/UI Type/Bug
难度 2/5 1-3 小时 新手友好度 74/100
wso2/agent-manager#2743 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
tech-debt
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复