#1102716 libruby3.3: failed to build with test errors

Package:
libruby3.3
Source:
libruby3.3
Description:
Libraries necessary to run Ruby 3.3
Submitter:
Russell Coker
Date:
2025-04-22 15:39:07 UTC
Severity:
normal
Tags:
#1102716#5
Date:
2025-04-12 09:43:25 UTC
From:
To:
I got the following test errors when trying to rebuild this package on a
system running Unstable:


[26614/26682] TestZlibGzipFile#test_sync = 0.00 s
[26615/26682] TestZlibGzipFile#test_orig_name = 0.00 s
[26616/26682] TestZlibGzipFile#test_crc = 0.00 s

  1) Failure:
TestTmpdir#test_world_writable [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/test_tmpdir.rb:31]:
expected: /\ATMPDIR is not writable/
actual: "".

  2) Failure:
TestProcess#test_execopts_uid [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/ruby/test_process.rb:2042]:
[ruby-core:47414].
Exception raised:
<#<Errno::EINVAL: Invalid argument - /home/etbe/libruby3.3/ruby3.3-3.3.8/ruby3.3>>
Backtrace:
  /home/etbe/libruby3.3/ruby3.3-3.3.8/test/ruby/test_process.rb:2044:in `system'
  /home/etbe/libruby3.3/ruby3.3-3.3.8/test/ruby/test_process.rb:2044:in `block (2 levels) in test_execopts_uid'.

  3) Failure:
TestGemSpecification#test_date_equals_time [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/rubygems/test_gem_specification.rb:1599]:
<2003-09-17 00:00:00 UTC> expected but was
<2003-09-16 00:00:00 UTC>.

  4) Failure:
TestFileExhaustive#test_test [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/ruby/test_file_exhaustive.rb:1541]:
/tmp/ruby-test20250412-58602-u0fdq0/suidfile.test.
<true> expected but was
<false>.

  5) Failure:
TestFileUtils#test_chown_R_with_root [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1615]:
exceptions on 1 threads:
#<Thread:0x00007f4f59d54c10 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/dir (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1924:in `block (2 levels) in chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2357:in `preorder_traverse'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1922:in `block in chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1921:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1921:in `chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1627:in `block in test_chown_R_with_root'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'


  6) Failure:
TestFileUtils#test_chown_dir_group_ownership_not_recursive [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1500]:
exceptions on 1 threads:
#<Thread:0x00007f4f693125f8 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/dir (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1905:in `block in chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1506:in `block in test_chown_dir_group_ownership_not_recursive'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'

  7) Failure:
TestFileUtils#test_chown_noop [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1460]:
exceptions on 1 threads:
#<Thread:0x00007f4f58453f68 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/a (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1905:in `block in chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1466:in `block in test_chown_noop'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'


  8) Failure:
TestFileUtils#test_chown_with_root [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1590]:
exceptions on 1 threads:
#<Thread:0x00007f4f6aa53000 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/a1 (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1905:in `block in chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1591:in `block (2 levels) in test_chown_with_root'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'


  9) Failure:
TestFileUtils#test_chown_R [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1520]:
exceptions on 1 threads:
#<Thread:0x00007f4f68760cf0 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/dir (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1924:in `block (2 levels) in chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2357:in `preorder_traverse'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1922:in `block in chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1921:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1921:in `chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1532:in `block in test_chown_R'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'

 10) Failure:
TestFileUtils#test_chown_dir_user_ownership_not_recursive_with_root [/home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1601]:
exceptions on 1 threads:
#<Thread:0x00007f4edea5e3d8 /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:20 dead>:
/home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown': Invalid argument @ apply2files - tmp/dir (Errno::EINVAL)
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:2219:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1905:in `block in chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `each'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/lib/fileutils.rb:1904:in `chown'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:1607:in `block in test_chown_dir_user_ownership_not_recursive_with_root'
        from /home/etbe/libruby3.3/ruby3.3-3.3.8/test/fileutils/test_fileutils.rb:22:in `block (2 levels) in assert_output_lines'


Finished tests in 2743.532758s, 9.7014 tests/s, 2313.4541 assertions/s.
26616 tests, 6347037 assertions, 10 failures, 0 errors, 166 skips

#1102716#10
Date:
2025-04-22 15:36:11 UTC
From:
To:
Hi,

Unfortunately, I cannot reproduce the test failures you mentioned
building it with sbuild in a clean chroot. The build log is attached for
reference.