-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Ignore extension caps with special suffixes #15322
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
651d184
to
7dcb7b2
Compare
7dcb7b2
to
442cdcf
Compare
The first two suggestions made by |
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.
Motivation and Context
Currently, extension capabilities with suffixes "options", "Options", "loggingPrefs", and "debuggerAddress" are considered for purposed of Grid node slot matching. This means that capabilities defined as configuration options are treated as "identity" values. The revisions in this PR enable the extension matcher to ignore capabilities with these suffixes.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Updated slot matching logic to ignore specific extension capabilities.
Added new suffix-based filtering for extension capabilities.
Enhanced test coverage for slot matching with various capability scenarios.
Improved code readability and logic consistency in slot matching implementation.
Changes walkthrough 📝
DefaultSlotMatcher.java
Enhance slot matching with suffix-based filtering
java/src/org/openqa/selenium/grid/data/DefaultSlotMatcher.java
matching.
DefaultSlotMatcherTest.java
Add tests for enhanced slot matching logic
java/test/org/openqa/selenium/grid/data/DefaultSlotMatcherTest.java
NodeOptionsTest.java
Update NodeOptionsTest for slot matching changes
java/test/org/openqa/selenium/grid/node/config/NodeOptionsTest.java