Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671378 - dev-ruby/capybara-3.37.1: test failure
Summary: dev-ruby/capybara-3.37.1: test failure
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-11-17 23:13 UTC by Thomas Deutschmann (RETIRED)
Modified: 2022-09-19 07:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,13.99 KB, text/plain)
2018-11-17 23:13 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2018-11-17 23:13:38 UTC
Created attachment 555476 [details]
build.log

>>> Test phase: dev-ruby/capybara-3.11.1
 * Running test phase for ruby23 ...
 * Scanning for an open DISPLAY to start Xvfb ...
 * Starting Xvfb on $DISPLAY=0 ...
Run options:
  include {:focus_=>true}
  exclude {:requires=>#<Proc:0x02e743dc>}

All examples were filtered out; ignoring {:focus_=>true}
............................................................................................................................................................................................................................................................................................................................................................................................................Attempt to select disabled option: Other
.....................................*F..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:36255
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:41435
....................................Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:34399
.....................................................................................................................................................................................................................................................................................................................................................................................................Attempt to select disabled option: Other
.....................................*F................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:42935
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:44757
..........................................*....................................................**...*..............................................................................Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:43507
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:36169
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:35559
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:22789
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:22790
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:37353
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:42081
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on ssl://127.0.0.1:38965?key=/var/tmp/portage/dev-ruby/capybara-3.11.1/work/ruby23/capybara-3.11.1/spec/fixtures/key.pem&cert=/var/tmp/portage/dev-ruby/capybara-3.11.1/work/ruby23/capybara-3.11.1/spec/fixtures/certificate.pem
2018-11-17 22:46:26 +0100: SSL error, peer: 127.0.0.1, peer cert: , #<Puma::MiniSSL::SSLError: OpenSSL error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request - 336027804>
2018-11-17 22:46:27 +0100: SSL error, peer: 127.0.0.1, peer cert: , #<Puma::MiniSSL::SSLError: OpenSSL error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request - 336027804>
2018-11-17 22:46:28 +0100: SSL error, peer: 127.0.0.1, peer cert: , #<Puma::MiniSSL::SSLError: OpenSSL error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request - 336027804>
2018-11-17 22:46:29 +0100: SSL error, peer: 127.0.0.1, peer cert: , #<Puma::MiniSSL::SSLError: OpenSSL error: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request - 336027804>
...Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:38891
..Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:38071
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:43191
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:44601
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:40003
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:46569
.Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:42907
Capybara starting Puma...
* Version 3.12.0 , codename: Llamas in Pajamas
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:38511
.......

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Capybara::Session DSL #has_css? should support case insensitive :class and :id options
     # Nokogiri doesn't support case insensitive CSS attribute matchers
     Failure/Error: raise ArgumentError, "This driver doesn't support case insensitive attribute matching when using CSS base selectors"
     
     ArgumentError:
       This driver doesn't support case insensitive attribute matching when using CSS base selectors
     # ./lib/capybara/rack_test/driver.rb:81:in `rescue in find_css'
     # ./lib/capybara/rack_test/driver.rb:76:in `find_css'
     # ./lib/capybara/node/base.rb:99:in `find_css'
     # ./lib/capybara/queries/selector_query.rb:149:in `find_nodes_by_selector_format'
     # ./lib/capybara/queries/selector_query.rb:108:in `block in resolve_for'
     # ./lib/capybara/node/base.rb:77:in `synchronize'
     # ./lib/capybara/queries/selector_query.rb:107:in `resolve_for'
     # ./lib/capybara/node/matchers.rb:738:in `block in _verify_selector_result'
     # ./lib/capybara/node/base.rb:83:in `synchronize'
     # ./lib/capybara/node/matchers.rb:737:in `_verify_selector_result'
     # ./lib/capybara/node/matchers.rb:102:in `assert_selector'
     # ./lib/capybara/session.rb:732:in `block (2 levels) in <class:Session>'
     # ./lib/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
     # ./lib/capybara/rspec/matchers/have_selector.rb:10:in `element_matches?'
     # ./lib/capybara/rspec/matchers/base.rb:43:in `matches?'
     # ./lib/capybara/spec/session/has_css_spec.rb:38:in `block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # Nokogiri::CSS::SyntaxError:
     #   unexpected ' ' after '[:substring_match, "'UITARI'"]'
     #   ./lib/capybara/rack_test/browser.rb:101:in `find'

  2) Capybara::Session RackTest #has_css? should support case insensitive :class and :id options
     # Nokogiri doesn't support case insensitive CSS attribute matchers
     Failure/Error: raise ArgumentError, "This driver doesn't support case insensitive attribute matching when using CSS base selectors"
     
     ArgumentError:
       This driver doesn't support case insensitive attribute matching when using CSS base selectors
     # ./lib/capybara/rack_test/driver.rb:81:in `rescue in find_css'
     # ./lib/capybara/rack_test/driver.rb:76:in `find_css'
     # ./lib/capybara/node/base.rb:99:in `find_css'
     # ./lib/capybara/queries/selector_query.rb:149:in `find_nodes_by_selector_format'
     # ./lib/capybara/queries/selector_query.rb:108:in `block in resolve_for'
     # ./lib/capybara/node/base.rb:77:in `synchronize'
     # ./lib/capybara/queries/selector_query.rb:107:in `resolve_for'
     # ./lib/capybara/node/matchers.rb:738:in `block in _verify_selector_result'
     # ./lib/capybara/node/base.rb:83:in `synchronize'
     # ./lib/capybara/node/matchers.rb:737:in `_verify_selector_result'
     # ./lib/capybara/node/matchers.rb:102:in `assert_selector'
     # ./lib/capybara/session.rb:732:in `block (2 levels) in <class:Session>'
     # ./lib/capybara/rspec/matchers/have_selector.rb:10:in `element_matches?'
     # ./lib/capybara/rspec/matchers/base.rb:43:in `matches?'
     # ./lib/capybara/spec/session/has_css_spec.rb:38:in `block (2 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # Nokogiri::CSS::SyntaxError:
     #   unexpected ' ' after '[:substring_match, "'UITARI'"]'
     #   ./lib/capybara/rack_test/browser.rb:101:in `find'

  3) Capybara::String should use gumbo
     # Only  valid if gumbo is included
     # ./spec/rack_test_spec.rb:241

  4) if xfeature aliases to pending then this should be 'temporarily disabled with xfeature'
     # Temporarily disabled with xfeature
     # ./spec/rspec/features_spec.rb:79

  5) if xfeature aliases to pending then this also should be 'temporarily disabled with xfeature'
     # Temporarily disabled with xfeature
     # ./spec/rspec/features_spec.rb:82

  6) if xscenario aliases to pending then this test should be 'temporarily disabled with xscenario'
     # Temporarily disabled with xscenario
     # ./spec/rspec/scenarios_spec.rb:17


Failures:

  1) Capybara::Session DSL #has_css? should allow escapes in the CSS selector
     Failure/Error: expect(@session).to have_css('p[data-random="abc\\\\def"]')
       expected to find css "p[data-random=\"abc\\\\def\"]" but there were no matches
     # ./lib/capybara/spec/session/has_css_spec.rb:181:in `block (2 levels) in <top (required)>'

  2) Capybara::Session RackTest #has_css? should allow escapes in the CSS selector
     Failure/Error: expect(@session).to have_css('p[data-random="abc\\\\def"]')
       expected to find css "p[data-random=\"abc\\\\def\"]" but there were no matches
     # ./lib/capybara/spec/session/has_css_spec.rb:181:in `block (2 levels) in <top (required)>'

Finished in 58.83 seconds (files took 1.1 seconds to load)
2249 examples, 2 failures, 6 pending

Failed examples:

rspec ./lib/capybara/spec/spec_helper.rb[1:41:16] # Capybara::Session DSL #has_css? should allow escapes in the CSS selector
rspec ./lib/capybara/spec/spec_helper.rb[2:41:16] # Capybara::Session RackTest #has_css? should allow escapes in the CSS selector

 * ERROR: dev-ruby/capybara-3.11.1::gentoo failed (test phase):
 *   Failed to run '/usr/bin/ruby23 -Ilib -S rspec-3 spec'
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_test
 *   environment, line 4491:  Called ruby-ng_src_test
 *   environment, line 4203:  Called _ruby_each_implementation 'each_ruby_test'
 *   environment, line  549:  Called _ruby_invoke_environment 'ruby23' 'each_ruby_test'
 *   environment, line  674:  Called each_ruby_test
 *   environment, line  893:  Called virtx '/usr/bin/ruby23' '-Ilib' '-S' 'rspec-3' 'spec'
 *   environment, line 5400:  Called die
 * The specific snippet of code:
 *       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 *
Comment 1 Agostino Sarubbo gentoo-dev 2022-09-19 07:55:08 UTC
lto_tinderbox has reproduced this issue with version 3.37.1 - Updating summary.