[DRE-maint] Bug#1095886: ruby-rspec-rails: autopkgtest failure with rails 7: Failure/Error: expect(example.metadata[:execution_result].exception).to be_a RuntimeError

Antonio Terceiro terceiro at debian.org
Thu Feb 13 10:20:01 GMT 2025


Source: ruby-rspec-rails
Version: 6.1.5-2
Severity: serious
Justification: autopkgtest failure
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: rails7

Hi,

We are about to upload rails 7 to unstable, as we are targetting to have rails
7 being released with Trixie.

After the last upload of rails 7 to experimental, we noticed that ruby-rspec-rails
fails its autopkgtests when run against that version of rails.

To reproduce this failure locally, you can run autopkgtest with the following
options:

--add-apt-release=experimental --pin-packages=experimental=src:rails

(or wait until rails 7 is uploaded to unstable)

Relevant part (hopefully):
> with a common _default_file_to_render
> it returns the directory
> #params
> delegates to the controller
> 
> Pending: (Failures listed here are expected and do not affect your suite's status)
> 
> 1) HaveEnqueuedMail matchers have_enqueued_mail when parameterized passes when mixing parameterized and non-parameterized emails
> # No reason given
> # ./spec/rspec/rails/matchers/have_enqueued_mail_spec.rb:375
> 
> 2) HaveEnqueuedMail matchers have_enqueued_mail when parameterized passes when mailer is parameterized
> # No reason given
> # ./spec/rspec/rails/matchers/have_enqueued_mail_spec.rb:369
> 
> 3) HaveEnqueuedMail matchers have_enqueued_mail when parameterized passes with provided argument matchers
> # No reason given
> # ./spec/rspec/rails/matchers/have_enqueued_mail_spec.rb:382
> 
> 4) Configuration clears ActionMailer::Base::Deliveries after each example only has deliveries from this test (e.g. from email_2 at example.com)
> # Temporarily skipped with xit
> # ./spec/rspec/rails/configuration_spec.rb:378
> 
> 5) Configuration clears ActionMailer::Base::Deliveries after each example only has deliveries from this test (e.g. from email at example.com)
> # Temporarily skipped with xit
> # ./spec/rspec/rails/configuration_spec.rb:372
> 
> Failures:
> 
> 1) RSpec::Rails::SystemExampleGroup#take_screenshot handles Rails calling metadata
> Failure/Error: expect(example.metadata[:execution_result].exception).to be_a RuntimeError
> expected #<NameError: uninitialized constant Selenium::WebDriver::DriverFinder> to be a kind of RuntimeError
> # ./spec/rspec/rails/example/system_example_group_spec.rb:112:in `block (3 levels) in <module:Rails>'
> # ./spec/spec_helper.rb:82:in `block (3 levels) in <top (required)>'
> # ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
> 
> 2) RSpec::Rails::SystemExampleGroup#driver uses :selenium driver by default
> Failure/Error: group.hooks.run(:before, :example, example)
> 
> NameError:
> uninitialized constant Selenium::WebDriver::DriverFinder
> # /usr/share/rubygems-integration/all/gems/actionpack-7.2.2.1/lib/action_dispatch/system_testing/browser.rb:79:in `resolve_driver_path'
> # /usr/share/rubygems-integration/all/gems/actionpack-7.2.2.1/lib/action_dispatch/system_testing/browser.rb:45:in `preload'
> # /usr/share/rubygems-integration/all/gems/actionpack-7.2.2.1/lib/action_dispatch/system_testing/driver.rb:21:in `initialize'
> # /usr/share/rubygems-integration/all/gems/actionpack-7.2.2.1/lib/action_dispatch/system_test_case.rb:161:in `new'
> # /usr/share/rubygems-integration/all/gems/actionpack-7.2.2.1/lib/action_dispatch/system_test_case.rb:161:in `driven_by'
> # ./spec/rspec/rails/example/system_example_group_spec.rb:38:in `block (3 levels) in <module:Rails>'
> # ./spec/spec_helper.rb:82:in `block (3 levels) in <top (required)>'
> # ./spec/spec_helper.rb:76:in `block (2 levels) in <top (required)>'
> 
> 3) RSpec::Rails::SystemExampleGroup#metadata fakes out the rails expected method
> Failure/Error: expect(example.execution_result.status).to eq :passed
> 
> expected: :passed
> got: :failed
> 
> (compared using ==)
> 
> Diff:
> @@ -1 +1 @@
> -:passed


The full autopkgtest logs are available and linked from
https://release.debian.org/britney/pseudo-excuses-experimental.html#rails
and after rails 7 gets into unstable, at
https://qa.debian.org/excuses.php?package=rails
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20250213/7fa9e615/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list