-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
migrate video_nodeQuery.sh to python #2851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
PR Code Suggestions ✨Explore these optional code suggestions:
|
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
@VietND96 is there some doc on how to replicate CI failures locally? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces the existing shell-based video query logic with a Python implementation and updates the main video script to call the new Python script.
- Remove legacy
video_nodeQuery.sh
and addvideo_nodeQuery.py
- Update
video.sh
to invoke Python instead of Bash - Reimplement normalization and capability parsing in Python
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
Video/video_nodeQuery.sh | Removed legacy Bash implementation |
Video/video_nodeQuery.py | Added new Python script for session video configuration |
Video/video.sh | Updated call site to use the Python script |
Comments suppressed due to low confidence (2)
Video/video_nodeQuery.py:10
- There are no tests covering
main()
ornormalize_filename()
. Consider adding unit tests for argument parsing, JSON decoding, and filename normalization to ensure correctness.
def main() -> None:
Video/video_nodeQuery.py:29
- [nitpick] The variable name
video_file_name_trim
might be more descriptive if it reflected that it's a regex (e.g.,file_name_trim_regex
).
video_file_name_trim = os.environ.get("SE_VIDEO_FILE_NAME_TRIM_REGEX", "[:alnum:]-_")
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
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
migrate the video_nodeQuery.sh to python
partially closes #2650
Motivation and Context
Types of changes
Checklist