-
-
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
Add timeout and tests for curb, also added the gem curb that was not part of selenium #14285
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Seems something is failing in the build process? |
I will look into the failed-to-build tests tomorrow and also I will add the checksum update that I'm missing, thank you for executing the pipeline! |
@p0deje I ran |
@aguspe Can you run the following and share the output? Note that it's going to take a while.
|
…_fix_curb_http_client
Thank you so much @p0deje, that made the trick, the check sums are updated, so it's ready for re-review |
Thank you for the quick review @p0deje, ready for re-review |
@p0deje ready for re-review |
Could you look at #14285 (comment)? |
I added the required back @p0deje thank you for spotting that |
This Java test is failing, I can see that it is a new failure that was not there before, should I address it on this PR?
|
@aguspe You don't need to fix the Java test, but let's fix Ruby test. |
So the ruby test is failing due to be running on Jruby:
So I just added an unless for Jruby since in windows and linux now we have curl installed @p0deje |
I tried with Ruby engine locally, and the test gets ignore, is odd that it failed at the same point with Ruby Platform @p0deje |
Looks like you need to guard against TruffleRuby as well. Can you try the following in spec: require File.expand_path('../../spec_helper', __dir__)
return if Selenium::WebDriver::Platform.jruby? || Selenium::WebDriver::Platform.truffleruby? |
Updated to support truffle ruby |
Now the only test failing is the java one:
|
Thanks for the help @p0deje ! |
@aguspe Thank you for working it out! |
User description
Description
Based on #14121 we wanted to regain the ability to set timeout in our curb clients, to do this I added the attribute accessor timeout
Besides this tests were added and the gem curb was added as a dependency because it was not present in Selenium
Motivation and Context
It's important to provide users with different clients that they can set up and configure with the correct timeouts
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
timeout
attribute accessor toCurb
HTTP client.initialize
method inCurb
to accepttimeout
.client
method inCurb
to settimeout
if provided.curb
gem as a dependency in the gemspec.Curb
HTTP client, including tests for default and custom timeout values.Curl::Easy
class andCurb
class methods and attributes.Changes walkthrough 📝
remote.rb
Add autoload for Curb in Http module
rb/lib/selenium/webdriver/remote.rb
Curb
in theHttp
module.curb.rb
Add timeout handling to Curb HTTP client
rb/lib/selenium/webdriver/remote/http/curb.rb
timeout
attribute accessor.initialize
method to accepttimeout
.client
method to settimeout
if provided.curl.rbs
Add type signature for Curl::Easy class
rb/sig/gems/curb/curl.rbs
Curl::Easy
class.curb.rbs
Add type signatures for Curb class
rb/sig/lib/selenium/webdriver/remote/http/curb.rbs
Curb
class methods and attributes.selenium-webdriver.gemspec
Add curb gem dependency
rb/selenium-webdriver.gemspec
curb
gem as a dependency.curb_spec.rb
Add unit tests for Curb HTTP client
rb/spec/unit/selenium/webdriver/remote/http/curb_spec.rb
Curb
HTTP client.