Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #384184

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

From Antonio Terceiro <terceiro@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1095886: ruby-rspec-rails: autopkgtest failure with rails 7: Failure/Error: expect(example.metadata[:execution_result].exception).to be_a RuntimeError
Date 2025-02-13 11:30 +0100
Message-ID <KfEDL-gsRO-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: ruby-rspec-rails
Version: 6.1.5-2
Severity: serious
Justification: autopkgtest failure
Tags: trixie sid ftbfs
User: debian-ruby@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@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@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

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

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@debian.org> - 2025-02-13 11:30 +0100
  Bug#1095886: marked as done (ruby-rspec-rails: autopkgtest  failure with rails 7: Failure/Error: expect(example.metadata[:execution_result].exception).to  be_a RuntimeError) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-03-10 22:40 +0100

csiph-web