[grid] Set session-request-timeout as client readTimeout in RemoteNewSessionQueue#14272
[grid] Set session-request-timeout as client readTimeout in RemoteNewSessionQueue#14272diemol merged 2 commits intoSeleniumHQ:trunkfrom
Conversation
…SessionQueue Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## trunk #14272 +/- ##
==========================================
+ Coverage 57.18% 57.46% +0.28%
==========================================
Files 89 89
Lines 5514 5549 +35
Branches 232 228 -4
==========================================
+ Hits 3153 3189 +36
- Misses 2129 2132 +3
+ Partials 232 228 -4 ☔ View full report in Codecov by Sentry. |
…SessionQueue (SeleniumHQ#14272) Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
…SessionQueue (SeleniumHQ#14272) Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
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
[grid] Set session-request-timeout as client readTimeout in RemoteNewSessionQueue
Motivation and Context
In CI tests for Selenium Grid autoscaling on K8s in repo https://github.com/SeleniumHQ/docker-selenium. Sometime could see below error even set
--session-request-timeoutover the default300secondsI suspect that is due to timeout in HTTP client created by default config. So in this change, get
session-request-timeoutand set it as read timeout for HTTP client in RemoteNewSessionQueueCan you also review the change is able to resolve the problem mentioned in #13718?
Types of changes
Checklist
PR Type
Enhancement
Description
RemoteNewSessionQueueto set the session-request-timeout as the client readTimeout.ClientConfigandDuration) to support the new functionality.createmethod to includesessionRequestTimeoutand configure theHttpClientaccordingly.Changes walkthrough 📝
RemoteNewSessionQueue.java
Set session-request-timeout as client readTimeout inRemoteNewSessionQueuejava/src/org/openqa/selenium/grid/sessionqueue/remote/RemoteNewSessionQueue.java
ClientConfigandDurationclasses.sessionRequestTimeouttoRemoteNewSessionQueue.createmethod.HttpClientwithsessionRequestTimeoutusingClientConfig.