[DRE-maint] Bug#952063: ruby-htree: FTBFS: ERROR: Test "ruby2.7" failed.
Lucas Nussbaum
lucas at debian.org
Sun Feb 23 07:45:02 GMT 2020
Source: ruby-htree
Version: 0.8+dfsg-3
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /usr/bin/ruby2.7 /usr/bin/gem2deb-test-runner
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby2.7 │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-htree/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -e gem\ \"htree\"
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby2.7 from debian/ruby-tests.rb │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-htree/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-htree/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 debian/ruby-tests.rb
> Loaded suite debian/ruby-tests
> Started
> ...............................................................................
> ............................./<<PKGBUILDDIR>>/test/test-security.rb:8: warning: $SAFE will become a normal global variable in Ruby 3.0
> /<<PKGBUILDDIR>>/test/test-security.rb:10: warning: $SAFE will become a normal global variable in Ruby 3.0
> /<<PKGBUILDDIR>>/test/test-security.rb:11: warning: $SAFE will become a normal global variable in Ruby 3.0
> /<<PKGBUILDDIR>>/test/test-security.rb:19: warning: $SAFE will become a normal global variable in Ruby 3.0
> #<Thread:0x0000556fa9ca6d18 /<<PKGBUILDDIR>>/test/test-security.rb:9 run> terminated with exception (report_on_exception is true):
> /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:59:in `block in assert_block': <SecurityError> exception was expected but none was thrown. (Test::Unit::AssertionFailedError)
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:1635:in `_wrap_assertion'
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:53:in `assert_block'
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:1681:in `block in _assert_raise'
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:1640:in `_wrap_assertion'
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:1667:in `_assert_raise'
> from /usr/share/rubygems-integration/all/gems/test-unit-3.3.4/lib/test/unit/assertions.rb:286:in `assert_raise'
> from /<<PKGBUILDDIR>>/test/test-security.rb:21:in `block in test_parse'
> from /<<PKGBUILDDIR>>/test/test-security.rb:12:in `block in safe'
> F
> ===============================================================================
> Failure: test_parse(TestSecurity): <SecurityError> exception was expected but none was thrown.
> /<<PKGBUILDDIR>>/test/test-security.rb:21:in `block in test_parse'
> 18: safe(1) {
> 19: assert_equal(1, $SAFE)
> 20: assert_nothing_raised { HTree.parse("") }
> => 21: assert_raise(SecurityError) { HTree.parse("".taint) }
> 22: }
> 23: assert_nothing_raised { HTree.parse("") }
> 24: assert_nothing_raised { HTree.parse("".taint) }
> /<<PKGBUILDDIR>>/test/test-security.rb:12:in `block in safe'
> ===============================================================================/<<PKGBUILDDIR>>/test/test-security.rb:8: warning: $SAFE will become a normal global variable in Ruby 3.0
>
> F
> ===============================================================================
> Failure: test_template(TestSecurity)
> /<<PKGBUILDDIR>>/test/test-security.rb:8:in `safe'
> /<<PKGBUILDDIR>>/test/test-security.rb:28:in `test_template'
> 25: end
> 26:
> 27: def test_template
> => 28: safe(1) {
> 29: assert_nothing_raised { HTree.expand_template("/dev/null", nil, '') }
> 30: assert_raise(SecurityError) { HTree.expand_template("/dev/null".taint, nil, '') }
> 31: }
> <0> expected but was
> <1>
> ===============================================================================
> ................................................
> Finished in 0.072014672 seconds.
> -------------------------------------------------------------------------------
> 158 tests, 607 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
> 98.7342% passed
> -------------------------------------------------------------------------------
> 2194.00 tests/s, 8428.84 assertions/s
> ERROR: Test "ruby2.7" failed.
The full build log is available from:
http://qa-logs.debian.net/2020/02/22/ruby-htree_0.8+dfsg-3_unstable.log
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!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Pkg-ruby-extras-maintainers
mailing list