[DRE-maint] Bug#906685: ruby-mocha breaks ruby-bourne autopkgtest

Paul Gevers elbrus at debian.org
Sun Aug 19 18:53:50 BST 2018


Source: ruby-mocha, ruby-bourne
Version: ruby-mocha/1.7.0-1
Version: ruby-bourne/1.6.0-1
X-Debbugs-CC: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: breaks needs-update

Dear maintainers,

With a recent upload of ruby-mocha the autpkgtest of ruby-bourne started
to fail in testing. I copied the output below.

Currently this regression is contributing to the delay of the migration
of ruby-mocha to testing [1]. Could you please investigate the situation
and reassign the bug to the right package? If needed, please change the
bug's severity as appropriate.

Looking at the error I would not be surprised if the test suite of
ruby-bourne just needs an update for a deprecated function, but the
upstream of ruby-bourne may be warned about this (or may have already
fixed it). If ruby-bourne is fixed soon, than ruby-mocha may want to add
a versioned Breaks to speed up migration.

More information about this bug and the reason for filing it can be
found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=ruby-mocha

https://ci.debian.net/data/autopkgtest/testing/amd64/r/ruby-bourne/846106/log.gz

autopkgtest [09:23:56]: test command1: gem2deb-test-runner --autopkgtest
--check-dependencies 2>&1
autopkgtest [09:23:56]: test command1: [-----------------------

┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby2.5
      │
└──────────────────────────────────────────────────────────────────────────────┘

GEM_PATH= ruby2.5 -e gem\ \"bourne\"

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.5 from debian/ruby-test-files.yaml
      │
└──────────────────────────────────────────────────────────────────────────────┘

mv lib .gem2deb.lib
RUBYLIB=. GEM_PATH= ruby2.5 -ryaml -e
YAML.load_file\(\"debian/ruby-test-files.yaml\"\).each\ \{\ \|f\|\
require\ f\ \}
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:

/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/mini_test_result.rb:3:in
`<top (required)>'
  -e:1:in `block in <main>'
  -e:1:in `each'
  -e:1:in `<main>'
Loaded suite -e
Started
E
===============================================================================
Error: test_fails_if_invocation_count_too_high(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_count_too_low(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_doesnt_exist(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_only_on_other_mock(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_with_different_arguments(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_count_correct(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_exists(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_for_impersonating_mock(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_exact_arguments(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_wildcard_arguments(AssertReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/assert_received_test.rb:14:in
`teardown'
===============================================================================
...............................................................E
===============================================================================
Error: test_should_expire_mockery_instance_cache(MockeryTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/mockery_test.rb:24:in
`test_should_expire_mockery_instance_cache'
     21:
     22:   def test_should_expire_mockery_instance_cache
     23:     mockery_1 = Mockery.instance
  => 24:     Mockery.reset_instance
     25:     mockery_2 = Mockery.instance
     26:     assert_not_same mockery_1, mockery_2
     27:   end
===============================================================================Mocha
deprecation warning at
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/mockery_test.rb:31:in
`test_should_raise_expectation_error_because_not_all_expectations_are_satisfied':
Passing a block is deprecated. Use Object#tap or define
stubs/expectations with an explicit receiver instead.
Mocha deprecation warning at
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/mockery_test.rb:32:in
`test_should_raise_expectation_error_because_not_all_expectations_are_satisfied':
Passing a block is deprecated. Use Object#tap or define
stubs/expectations with an explicit receiver instead.

..Mocha deprecation warning at
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/mockery_test.rb:40:in
`test_should_reset_list_of_mocks_on_teardown': Passing a block is
deprecated. Use Object#tap or define stubs/expectations with an explicit
receiver instead.
...E
===============================================================================
Error: test_fails_if_invocation_count_incorrect(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_count_too_high(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_count_too_low(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_doesnt_exist(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_only_on_other_mock(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_with_different_arguments(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_count_correct(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_exists(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_for_impersonating_mock(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_exact_arguments(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_wildcard_arguments(PartialHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
.............E
===============================================================================
Error: test_fails_if_invocation_count_incorrect(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_count_too_high(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_count_too_low(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_fails_if_invocation_doesnt_exist(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_only_on_other_mock(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_fails_if_invocation_exists_with_different_arguments(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_count_correct(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error: test_passes_if_invocation_exists(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_for_impersonating_mock(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_exact_arguments(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
E
===============================================================================
Error:
test_passes_if_invocation_exists_with_wildcard_arguments(PureHaveReceivedTest):
  NoMethodError: undefined method `reset_instance' for Mocha::Mockery:Class
  Did you mean?  reset_mocha
/tmp/autopkgtest-lxc.ze38g2wo/downtmp/build.XBn/src/test/unit/have_received_test.rb:13:in
`teardown'
===============================================================================
.......................
Finished in 0.223995898 seconds.
-------------------------------------------------------------------------------
137 tests, 365 assertions, 0 failures, 33 errors, 0 pendings, 0
omissions, 0 notifications
99.2701% passed
-------------------------------------------------------------------------------
611.62 tests/s, 1629.49 assertions/s
mv .gem2deb.lib lib
autopkgtest [09:23:57]: test command1: -----------------------]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20180819/bae5b5aa/attachment-0001.sig>


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