[DRE-maint] Bug#1027341: ruby-bourne: FTBFS: ERROR: Test "ruby3.1" failed: Error: test_should_stub_two_different_class_methods_again(StubbaExampleTest): ArgumentError: wrong number of arguments (given 4, expected 3)

Lucas Nussbaum lucas at debian.org
Fri Dec 30 16:21:30 GMT 2022


Source: ruby-bourne
Version: 1.6.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221230 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> Error: test_should_stub_two_different_class_methods_again(StubbaExampleTest): ArgumentError: wrong number of arguments (given 4, expected 3)
> /<<PKGBUILDDIR>>/lib/bourne/invocation.rb:8:in `initialize'
> /usr/share/rubygems-integration/all/gems/mocha-1.16.1/lib/mocha/mock.rb:319:in `new'
> /usr/share/rubygems-integration/all/gems/mocha-1.16.1/lib/mocha/mock.rb:319:in `handle_method_call'
> /usr/share/rubygems-integration/all/gems/mocha-1.16.1/lib/mocha/stubbed_method.rb:60:in `block in define_new_method'
> /<<PKGBUILDDIR>>/test/acceptance/stubba_example_test.rb:90:in `should_stub_two_different_class_methods'
> /<<PKGBUILDDIR>>/test/acceptance/stubba_example_test.rb:69:in `test_should_stub_two_different_class_methods_again'
>      66:   end
>      67: 
>      68:   def test_should_stub_two_different_class_methods_again
>   => 69:     should_stub_two_different_class_methods
>      70:   end
>      71: 
>      72:   private
> ===============================================================================
> : (0.001355)
> 
> Finished in 0.452356416 seconds.
> -------------------------------------------------------------------------------
> 137 tests, 79 assertions, 3 failures, 81 errors, 0 pendings, 0 omissions, 0 notifications
> 38.6861% passed
> -------------------------------------------------------------------------------
> 302.86 tests/s, 174.64 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/acceptance/mocha_example_test.rb" "test/acceptance/spy_test.rb" "test/acceptance/stubba_example_test.rb" "test/unit/assert_received_test.rb" "test/unit/have_received_test.rb" "test/unit/invocation_test.rb" "test/unit/mock_test.rb" "test/unit/mockery_test.rb" "test/test_helper.rb" "test/test_runner.rb"  -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed: 


The full build log is available from:
http://qa-logs.debian.net/2022/12/30/ruby-bourne_1.6.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221230;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221230&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



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