-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[grid]: Capability se:vncEnabled value based on list of vnc-env-var #14584
Conversation
Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
CI Failure Feedback 🧐(Checks updated until commit 877e0c5)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Fixes SeleniumHQ/docker-selenium#2373
In docker-selenium, there are 3 env vars, and its dependency is AND logic - https://github.com/SeleniumHQ/docker-selenium/blob/trunk/NodeBase/start-novnc.sh
For example noVNC can be started only when
SE_START_XVFB=true
&&SE_START_VNC=true
In above scenario, when SE_START_XVFB=true, SE_START_VNC=false, SE_START_NO_VNC=false, in Node stereotype could be seen cap
"se:noVncPort":7900,"se:vncEnabled":true
Due to current implementation only check env var
SE_START_XVFB
is trueExpand the checks based on the combination of list env vars - align with docker-selenium implementation.
On Grid UI, it will prevent the case that the video preview icon is visible even vnc & noVNC not really enabled.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
isVncEnabled
method to check all specified environment variables, ensuring all must be true for VNC to be enabled.Changes walkthrough 📝
NodeFlags.java
Update VNC environment variable handling to support lists
java/src/org/openqa/selenium/grid/node/config/NodeFlags.java
vnc-env-var
to accept a list of environment variables.NodeOptions.java
Modify VNC environment variable logic to use lists
java/src/org/openqa/selenium/grid/node/config/NodeOptions.java
isVncEnabled
method to check all environment variables.NodeOptionsTest.java
Add tests for VNC environment variable list handling
java/test/org/openqa/selenium/grid/node/config/NodeOptionsTest.java