[DRE-maint] Bug#1095380: ruby-omniauth-rails-csrf-protection: FTBFS: failing tests
Santiago Vila
sanvila at debian.org
Fri Feb 7 12:12:47 GMT 2025
Package: src:ruby-omniauth-rails-csrf-protection
Version: 1.0.1-2
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=ruby --with ruby
dh_auto_clean -O--buildsystem=ruby
dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
dh_autoreconf_clean -O--buildsystem=ruby
dh_clean -O--buildsystem=ruby
debian/rules binary
dh binary --buildsystem=ruby --with ruby
dh_update_autotools_config -O--buildsystem=ruby
dh_autoreconf -O--buildsystem=ruby
dh_auto_configure -O--buildsystem=ruby
dh_ruby --configure
dh_auto_build -O--buildsystem=ruby
dh_ruby --build
dh_auto_test -O--buildsystem=ruby
dh_ruby --test
create-stamp debian/debhelper-build-stamp
dh_testroot -O--buildsystem=ruby
dh_prep -O--buildsystem=ruby
dh_auto_install --destdir=debian/ruby-omniauth-rails-csrf-protection/ -O--buildsystem=ruby
dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection
┌──────────────────────────────────────────────────────────────────────────────â”
│ ruby-omniauth-rails-csrf-protection: Installing files and building extensions for ruby3.3│
└──────────────────────────────────────────────────────────────────────────────┘
/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20250207-63346-31jzeh/gemspec
WARNING: open-ended dependency on actionpack (>= 4.2) is not recommended
if actionpack is semantically versioned, use:
add_runtime_dependency "actionpack", "~> 4.2"
WARNING: open-ended dependency on bundler (>= 0, development) is not recommended
use a bounded requirement, such as "~> x.y"
WARNING: open-ended dependency on minitest (>= 0, development) is not recommended
use a bounded requirement, such as "~> x.y"
WARNING: open-ended dependency on rails (>= 0, development) is not recommended
use a bounded requirement, such as "~> x.y"
WARNING: open-ended dependency on rake (>= 0, development) is not recommended
use a bounded requirement, such as "~> x.y"
WARNING: make sure you specify the oldest ruby version constraint (like ">= 3.0") that you want your gem to support by setting the `required_ruby_version` gemspec attribute
WARNING: See https://guides.rubygems.org/specification-reference/ for help
Successfully built RubyGem
Name: omniauth-rails_csrf_protection
Version: 1.0.1
File: omniauth-rails_csrf_protection-1.0.1.gem
/usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all /tmp/d20250207-63346-31jzeh/omniauth-rails_csrf_protection-1.0.1.gem
/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all/gems/omniauth-rails_csrf_protection-1.0.1/lib/omniauth/rails_csrf_protection.rb
/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all/gems/omniauth-rails_csrf_protection-1.0.1/lib/omniauth/rails_csrf_protection/railtie.rb
/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all/gems/omniauth-rails_csrf_protection-1.0.1/lib/omniauth/rails_csrf_protection/token_verifier.rb
/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all/gems/omniauth-rails_csrf_protection-1.0.1/lib/omniauth/rails_csrf_protection/version.rb
Successfully installed omniauth-rails_csrf_protection-1.0.1
1 gem installed
cd debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all
rm -rf bin
rm -rf build_info
rm -rf cache
rm -rf doc
rm -rf extensions
rmdir plugins
cd gems/omniauth-rails_csrf_protection-1.0.1
rm -f
chmod 644 lib/omniauth/rails_csrf_protection/railtie.rb lib/omniauth/rails_csrf_protection/token_verifier.rb lib/omniauth/rails_csrf_protection/version.rb lib/omniauth/rails_csrf_protection.rb
find lib/ -type d -empty -delete
cd -
cd -
/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner
┌──────────────────────────────────────────────────────────────────────────────â”
│ Checking Rubygems dependency resolution on ruby3.3 │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -e gem\ \"omniauth-rails_csrf_protection\"
┌──────────────────────────────────────────────────────────────────────────────â”
│ Run tests for ruby3.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.3 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/application_test.rb" "test/test_helper.rb" -v
/usr/share/rubygems-integration/all/gems/activesupport-6.1.7.3/lib/active_support/core_ext/class/subclasses.rb:30: warning: method redefined; discarding old subclasses
/usr/share/rubygems-integration/all/gems/rack-3.0.8/lib/rack/file.rb:5: warning: Rack::File is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/rack-3.0.8/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/actionpack-6.1.7.3/lib/action_dispatch/middleware/cookies.rb:413: warning: add_cookie_to_header is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/actionpack-6.1.7.3/lib/action_dispatch/middleware/cookies.rb:413: warning: add_cookie_to_header is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/actionpack-6.1.7.3/lib/action_dispatch/middleware/cookies.rb:413: warning: add_cookie_to_header is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/actionpack-6.1.7.3/lib/action_dispatch/middleware/cookies.rb:413: warning: add_cookie_to_header is deprecated and will be removed in Rack 3.1
/usr/share/rubygems-integration/all/gems/actionpack-6.1.7.3/lib/action_dispatch/middleware/cookies.rb:413: warning: add_cookie_to_header is deprecated and will be removed in Rack 3.1
Running test against Rails 6.1.7.3
Run options: -v --seed 14169
# Running:
ApplicationTest#test_request_phrase_without_token_via_post = 0.02 s = .
ApplicationTest#test_request_phrase_not_accessible_via_get = 0.00 s = .
ApplicationTest#test_request_phrase_with_bad_token_via_post = 0.00 s = .
ApplicationTest#test_request_phrase_with_correct_token_via_post = 0.01 s = F
Failure:
ApplicationTest#test_request_phrase_with_correct_token_via_post [application_test.rb:29]:
Expected false to be truthy.
rails test application_test.rb:26
Finished in 0.028417s, 140.7599 runs/s, 140.7599 assertions/s.
4 runs, 4 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/application_test.rb" "test/test_helper.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby3.3" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-omniauth-rails-csrf-protection returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202502/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ruby-omniauth-rails-csrf-protection, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Pkg-ruby-extras-maintainers
mailing list