-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[grid] Set session-request-timeout as client readTimeout in RemoteNewSessionQueue #14272
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
…SessionQueue Signed-off-by: Viet Nguyen Duc <[email protected]>
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. |
diemol
left a comment
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.
This makes sense, thank you, @VietND96!
…SessionQueue (SeleniumHQ#14272) Signed-off-by: Viet Nguyen Duc <[email protected]>
…SessionQueue (SeleniumHQ#14272) Signed-off-by: Viet Nguyen Duc <[email protected]>
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.