-
-
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][java]: relay service can set protocol version in fetching status #13849
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
PR Description updated to latest commit (e89e5bd)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
@diemol, can you review this and include it in the 4.20.0 release? |
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.
Thank you, @VietND96!
Can you check the code suggestions?
I fixed some points
java/src/org/openqa/selenium/grid/node/relay/RelaySessionFactory.java [219] This one already guarded in part of constructor, so can ignore |
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
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.
Thank you, @VietND96!
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
Fix: #13481
Pass the protocol version to the HttpClient config before executing the request in method
isServiceUp()
Required the CLI config
--service-protocol-version
orprotocol-version
in TOML configThe config accepts values following enum. For example:
HTTP/1.1
(orHTTP_1_1
),HTTP/2
(orHTTP_2
)TOML config looks like
For testing it works is mentioned in #13481 (comment)
Types of changes
Checklist
Type
Enhancement
Description
Changes walkthrough
RelayFlags.java
Add service protocol version configuration in RelayFlags
java/src/org/openqa/selenium/grid/node/relay/RelayFlags.java
specifying the HTTP protocol version when communicating with the
service status endpoint.
RelayOptions.java
Implement service protocol version handling in RelayOptions
java/src/org/openqa/selenium/grid/node/relay/RelayOptions.java
configuration.
isServiceUp
method to use the specified protocol version whencreating the HttpClient.
RelaySessionFactory.java
Support protocol version in RelaySessionFactory
java/src/org/openqa/selenium/grid/node/relay/RelaySessionFactory.java
constructor.
isServiceUp
method to configure the HttpClient with thespecified protocol version.
RelayOptionsTest.java
Add tests for service protocol version parsing in RelayOptions
java/test/org/openqa/selenium/grid/node/relay/RelayOptionsTest.java
protocol version.
protocol versions.