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
Action View test:ujs
fails due to lower version of webdrivers (2.4.0)
is chosen
#43455
Comments
It looks like
$ git diff
diff --git a/Gemfile b/Gemfile
index 5459c781d1..56f14341d4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -12,7 +12,7 @@ gem "rake", ">= 11.1"
gem "sprockets-rails", ">= 2.0.0"
gem "propshaft", ">= 0.1.7"
gem "capybara", ">= 3.26"
-gem "selenium-webdriver", ">= 4.0.0.alpha7"
+gem "selenium-webdriver", ">= 4.0.0.alpha7", path: '/home/yahonda/src/github.com/SeleniumHQ/selenium'
gem "rack-cache", "~> 1.2"
gem "stimulus-rails"
$
|
yahonda
added a commit
to yahonda/webdrivers
that referenced
this issue
Oct 14, 2021
This pull request will resolves the Rails issue rails/rails#43455 Since `selenium-webdriver` 4.0.0 has been released, webdriver 4.6 is not allowed likely due to version limitation in `webdrivers.gemspec`. * bundle install failure at Rails issue 43455 ``` $ bundle install Warning: the running version of Bundler (2.2.22) is older than the version that created the lockfile (2.2.29). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.29`. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies......... Bundler could not find compatible versions for gem "selenium-webdriver": In Gemfile: selenium-webdriver (>= 4.0.0.alpha7) webdrivers was resolved to 4.6.0, which depends on selenium-webdriver (>= 3.0, < 4.0) Could not find gem 'selenium-webdriver (>= 3.0, < 4.0)', which is required by gem 'webdrivers', in source at `/home/yahonda/src/github.com/SeleniumHQ/selenium`. Bundler could not find compatible versions for gem "webdrivers": In snapshot (Gemfile.lock): webdrivers (= 4.6.0) In Gemfile: webdrivers Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. $ ``` Refer https://rubygems.org/gems/selenium-webdriver/versions/4.0.0
Opened titusfortner/webdrivers#218 |
yahonda
added a commit
to yahonda/rails
that referenced
this issue
Oct 14, 2021
This pull request forces bundler to use webdriver 4.6.1 or higher to workaround rails#43455 until titusfortner/webdrivers#218 is merged and released. Fix rails#43455 titusfortner/webdrivers#218
titusfortner
pushed a commit
to titusfortner/webdrivers
that referenced
this issue
Oct 14, 2021
This pull request will resolves the Rails issue rails/rails#43455 Since `selenium-webdriver` 4.0.0 has been released, webdriver 4.6 is not allowed likely due to version limitation in `webdrivers.gemspec`. * bundle install failure at Rails issue 43455 ``` $ bundle install Warning: the running version of Bundler (2.2.22) is older than the version that created the lockfile (2.2.29). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.29`. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies......... Bundler could not find compatible versions for gem "selenium-webdriver": In Gemfile: selenium-webdriver (>= 4.0.0.alpha7) webdrivers was resolved to 4.6.0, which depends on selenium-webdriver (>= 3.0, < 4.0) Could not find gem 'selenium-webdriver (>= 3.0, < 4.0)', which is required by gem 'webdrivers', in source at `/home/yahonda/src/github.com/SeleniumHQ/selenium`. Bundler could not find compatible versions for gem "webdrivers": In snapshot (Gemfile.lock): webdrivers (= 4.6.0) In Gemfile: webdrivers Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. $ ``` Refer https://rubygems.org/gems/selenium-webdriver/versions/4.0.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CI for Action View
test:ujs
has been failing since https://buildkite.com/rails/rails/builds/81759#9b57dc4b-924d-4e1b-85c0-e65ff2de97b6I have identified this failure is due to
webdrivers (2.4.0)
is chosen which waswebdrivers (4.6.1)
.Steps to reproduce
Expected behavior
It should work successfully as follows.
Actual behavior
It raises
uninitialized constant Selenium
System configuration
Rails version: main branch
Ruby version: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
Additional information
Compared Gemfile.lock output from the last successful build (81738) and the first failed one. Somehow
webdrivers
version is lowered from 4.6.1 to 2.4.0. I have not found which gem needs to lower webdrivers version yet.https://buildkite.com/rails/rails/builds/81738#f80ff5b2-b7d6-4239-a583-7527fc4e0db2/219-967
https://buildkite.com/rails/rails/builds/81759#9b57dc4b-924d-4e1b-85c0-e65ff2de97b6/227-975
The text was updated successfully, but these errors were encountered: