You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for contributing to the Docker-Selenium project! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
The ffmpeg command at line 268-272 is missing error handling. If ffmpeg fails to start, the FFMPEG_PID variable will be empty but the code assumes it's valid. This could lead to unexpected behavior.
The random sleep duration (RANDOM % 16 + poll_interval) might cause unpredictable behavior. Consider using a fixed or configurable value instead of a random one for more consistent performance.
The action failed because shell scripts in the repository are not properly formatted. The error occurred during the execution of the format_shell_scripts target in the Makefile (line 77). The system detected formatting issues in the Video/video.sh file and instructed to run 'make format_shell_scripts' to fix the formatting.
The action failed because shell scripts in the repository are not properly formatted. The error occurred during the execution of the make format_shell_scripts target (Makefile:77). Specifically, the Video/video.sh file has formatting issues with 8 insertions and 8 deletions needed. The action is expecting all shell scripts to be formatted according to the project's standards.
The random sleep duration could cause unpredictable behavior. Using a fixed interval would provide more consistent and predictable polling behavior, which is important for system stability and resource usage.
+ echo "$(date -u +"${ts_format}") [${process_name}] - No session is created yet, waiting for a new session to start"
-+ sleep $((RANDOM % 16 + poll_interval))++ sleep ${poll_interval}
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 4
__
Why: The suggestion promotes predictable polling behavior, but the random component might be intentionally added to prevent synchronized polling from multiple instances. This is a minor behavioral optimization.
Low
Increase video encoding bitrates
The -maxrate and -bufsize parameters are set too low for high-resolution videos, which could cause quality degradation. Increase these values or make them proportional to the video resolution to maintain better quality.
[To ensure code accuracy, apply this suggestion manually]
Suggestion importance[1-10]: 3
__
Why: While higher bitrates could improve video quality, the current values are configurable via environment variables (SE_VIDEO_MAXRATE and SE_VIDEO_BUFSIZE). This is a minor optimization suggestion since users can already adjust these parameters as needed.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to the Docker-Selenium project!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines, applied for this repository.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Fixes #2788
Motivation and Context
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
Optimize ffmpeg video recording to reduce Node CPU usage
Improve video recording polling and logging logic
Update test Docker Compose files for video recording
Set browser download capability to false in tests
Changes walkthrough 📝
video.sh
Optimize ffmpeg usage and polling for video recording
Video/video.sh
environment variables.
get_started.py
Disable browser downloads in test setup
tests/get_started.py
enable_downloads
) to False for allbrowsers.
docker-compose-v3-dev-arm64.yml
Enable video recording in dev ARM64 Docker Compose
tests/docker-compose-v3-dev-arm64.yml
SE_RECORD_VIDEO=true
) for Chrome and FirefoxNode services.
docker-compose-v3-get-started-arm64.yml
Scale up Node replicas and clean up ports in get-started config
tests/docker-compose-v3-get-started-arm64.yml