[DRE-maint] Bug#869164: ruby-net-scp FTBFS: test failures
Adrian Bunk
bunk at debian.org
Fri Jul 21 08:08:01 UTC 2017
Source: ruby-net-scp
Version: 1.2.1-4
Severity: serious
Tags: buster sid
Some recent change in unstable makes ruby-net-scp FTBFS:
https://tests.reproducible-builds.org/debian/history/ruby-net-scp.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-net-scp.html
...
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=/build/1st/ruby-net-scp-1.2.1/debian/ruby-net-scp/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-net-scp/usr/share/rubygems-integration/all:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.3 -w "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/test_all.rb" "test/test_download.rb" "test/test_scp.rb" "test/test_upload.rb" -v
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:16: warning: assigned but unused variable - file
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:30: warning: assigned but unused variable - file
/build/1st/ruby-net-scp-1.2.1/lib/net/scp.rb:365: warning: shadowing outer local variable - ch
/build/1st/ruby-net-scp-1.2.1/lib/net/scp.rb:366: warning: shadowing outer local variable - ch
/build/1st/ruby-net-scp-1.2.1/lib/net/scp.rb:367: warning: shadowing outer local variable - ch
/build/1st/ruby-net-scp-1.2.1/lib/net/scp.rb:368: warning: shadowing outer local variable - ch
/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55: warning: loading in progress, circular require considered harmful - /build/1st/ruby-net-scp-1.2.1/test/test_all.rb
from /usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb:4:in `<main>'
from /usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb:4:in `select'
from /usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb:15:in `block in <main>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /build/1st/ruby-net-scp-1.2.1/test/test_all.rb:1:in `<top (required)>'
from /build/1st/ruby-net-scp-1.2.1/test/test_all.rb:1:in `chdir'
from /build/1st/ruby-net-scp-1.2.1/test/test_all.rb:2:in `block in <top (required)>'
from /build/1st/ruby-net-scp-1.2.1/test/test_all.rb:2:in `each'
from /build/1st/ruby-net-scp-1.2.1/test/test_all.rb:2:in `block (2 levels) in <top (required)>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
Started
Net::SCP::TestCase:
default_test: .: (0.000337)
TestDownload:
test_download_bang_without_target_should_return_string:.: (0.010297)
test_download_directory_should_create_directory_and_files_locally:E
===============================================================================
Error: test_download_directory_should_create_directory_and_files_locally(TestDownload): TypeError: no implicit conversion of Net::SSH::Test::Socket into IO
/build/1st/ruby-net-scp-1.2.1/test/common.rb:151:in `scp'
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:181:in `test_download_directory_should_create_directory_and_files_locally'
F
===============================================================================
Failure:
unexpected invocation: File.open('/build/1st/ruby-net-scp-1.2.1/test/test_download.rb')
satisfied expectations:
- allowed any number of times, not yet invoked: Dir.entries('/path/to/local/remote/sub')
- allowed any number of times, not yet invoked: Dir.mkdir()
- allowed any number of times, not yet invoked: Dir.entries('/path/to/local/remote')
- allowed any number of times, not yet invoked: Dir.mkdir()
- allowed any number of times, not yet invoked: Dir.entries('/path/to/local')
- allowed any number of times, not yet invoked: Dir.mkdir()
- allowed any number of times, not yet invoked: File.new('/path/to/local/remote/sub/remote.txt', 'wb', 438)
- allowed any number of times, not yet invoked: File.open('/path/to/local/remote/sub/remote.txt', 'rb')
- allowed any number of times, not yet invoked: File.file?('/path/to/local/remote/sub/remote.txt')
- allowed any number of times, not yet invoked: File.directory?('/path/to/local/remote/sub/remote.txt')
- allowed any number of times, not yet invoked: File.stat('/path/to/local/remote/sub/remote.txt')
- allowed any number of times, not yet invoked: File.file?('/path/to/local/remote/sub')
- allowed any number of times, not yet invoked: File.directory?('/path/to/local/remote/sub')
- allowed any number of times, not yet invoked: File.stat('/path/to/local/remote/sub')
- allowed any number of times, not yet invoked: File.file?('/path/to/local/remote')
- allowed any number of times, not yet invoked: File.directory?('/path/to/local/remote')
- allowed any number of times, not yet invoked: File.stat('/path/to/local/remote')
- allowed any number of times, not yet invoked: File.file?('/path/to/local')
- allowed any number of times, not yet invoked: File.directory?('/path/to/local')
- allowed any number of times, not yet invoked: File.stat('/path/to/local')
test_download_directory_should_create_directory_and_files_locally(TestDownload)
===============================================================================
: (0.026195)
test_download_directory_without_recursive_should_raise_error:F
===============================================================================
Failure: test_download_directory_without_recursive_should_raise_error(TestDownload)
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:156:in `test_download_directory_without_recursive_should_raise_error'
153: channel.gets_data "D0755 0 remote\n"
154: end
155:
=> 156: assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote") }
157: end
158:
159: def test_download_directory_should_create_directory_and_files_locally
<Net::SCP::Error> expected but was
<TypeError(<no implicit conversion of Net::SSH::Test::Socket into IO>)>
diff:
? Net::SCP::Err or
? TypeError(<no implicit conversion of SH Test::S cket into IO>)
===============================================================================
: (0.014343)
test_download_file_should_transfer_file: .: (0.018951)
test_download_file_with_metacharacters_in_name_should_escape_remote_file_name:.: (0.013821)
test_download_file_with_spaces_in_name_should_escape_remote_file_name:.: (0.013259)
test_download_io_should_transfer_data: .: (0.013748)
test_download_io_with_preserve_should_ignore_preserve:.: (0.007313)
test_download_io_with_recursive_should_raise_error: F
===============================================================================
Failure: test_download_io_with_recursive_should_raise_error(TestDownload)
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:117:in `test_download_io_with_recursive_should_raise_error'
114:
115: def test_download_io_with_recursive_should_raise_error
116: expect_scp_session "-f -r /path/to/remote.txt"
=> 117: assert_raises(Net::SCP::Error) { scp.download!("/path/to/remote.txt", StringIO.new, :recursive => true) }
118: end
119:
120: def test_download_io_with_preserve_should_ignore_preserve
<Net::SCP::Error> expected but was
<TypeError(<no implicit conversion of Net::SSH::Test::Socket into IO>)>
diff:
? Net::SCP::Err or
? TypeError(<no implicit conversion of SH Test::S cket into IO>)
===============================================================================
: (0.004369)
test_download_with_error_should_respond_with_error_text:F
===============================================================================
Failure: test_download_with_error_should_respond_with_error_text(TestDownload)
/build/1st/ruby-net-scp-1.2.1/test/test_download.rb:78:in `test_download_with_error_should_respond_with_error_text'
75: rescue
76: error = $!
77: end
=> 78: assert_equal Net::SCP::Error, error.class
79: assert_equal "SCP did not finish successfully (1): File not found: /path/to/remote.txt\n", error.message
80: end
81:
<Net::SCP::Error> expected but was
<TypeError>
diff:
? N et::SCP::Error
? Typ
===============================================================================
: (0.003042)
test_download_with_preserve_should_send_times: .: (0.007954)
test_download_with_progress_callback_should_invoke_callback:.: (0.020838)
TestSCP:
test_self_download_should_instatiate_scp_and_invoke_synchronous_download:.: (0.000880)
test_self_upload_should_instatiate_scp_and_invoke_synchronous_upload:.: (0.000502)
test_start_with_block_should_yield_scp_and_close_ssh_session:.: (0.000754)
test_start_without_block_should_return_scp_instance:.: (0.000697)
TestUpload:
test_upload_directory_should_recursively_create_and_upload_items:.: (0.031816)
test_upload_directory_with_preserve_should_send_times_for_all_items:.: (0.031928)
test_upload_directory_without_recursive_should_error:F
===============================================================================
Failure: test_upload_directory_without_recursive_should_error(TestUpload)
/build/1st/ruby-net-scp-1.2.1/test/test_upload.rb:159:in `test_upload_directory_without_recursive_should_error'
156: channel.gets_ok
157: end
158:
=> 159: assert_raises(Net::SCP::Error) { scp.upload!("/path/to/local", "/path/to/remote") }
160: end
161:
162: def test_upload_empty_directory_should_create_directory_and_finish
<Net::SCP::Error> expected but was
<TypeError(<no implicit conversion of Net::SSH::Test::Socket into IO>)>
diff:
? Net::SCP::Err or
? TypeError(<no implicit conversion of SH Test::S cket into IO>)
===============================================================================
: (0.006966)
test_upload_empty_directory_should_create_directory_and_finish:.: (0.009504)
test_upload_file_should_transfer_file: .: (0.012451)
test_upload_file_with_metacharacters_in_name_should_escape_remote_file_name:.: (0.028700)
test_upload_file_with_preserve_should_send_times: .: (0.013160)
test_upload_file_with_progress_callback_should_invoke_callback:.: (0.010733)
test_upload_file_with_spaces_in_name_should_escape_remote_file_name:.: (0.011028)
test_upload_io_should_transfer_data: .: (0.030160)
test_upload_io_with_mode_should_honor_mode_as_permissions:.: (0.022398)
test_upload_io_with_preserve_should_ignore_preserve:.: (0.014642)
test_upload_io_with_recursive_should_ignore_recursive:.: (0.021626)
test_upload_should_not_block: .: (0.009535)
Finished in 0.414744017 seconds.
------
31 tests, 58 assertions, 5 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
83.871% passed
------
74.74 tests/s, 139.85 assertions/s
rake aborted!
Command failed with status (1): [ruby -w "/usr/lib/ruby/vendor_ruby/rake/rake_test_loader.rb" "test/test_all.rb" "test/test_download.rb" "test/test_scp.rb" "test/test_upload.rb" -v]
Tasks: TOP => default
(See full trace by running task with --trace)
ERROR: Test "ruby2.3" failed. Exiting.
dh_auto_install: dh_ruby --install /build/1st/ruby-net-scp-1.2.1/debian/ruby-net-scp returned exit code 1
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 1
More information about the Pkg-ruby-extras-maintainers
mailing list