[DRE-maint] Bug#996304: ruby-json-schema: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: Errno::ENOENT: No such file or directory @ rb_sysopen - http://foo.bar/

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:34:50 BST 2021


Source: ruby-json-schema
Version: 2.8.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-json-schema was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> Errno::ENOENT: No such file or directory @ rb_sysopen - http://foo.bar/
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:596:in `initialize'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:596:in `open'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:596:in `custom_open'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:582:in `rescue in initialize_data'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:577:in `initialize_data'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:55:in `initialize'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:255:in `new'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:255:in `validate!'
>     /<<PKGBUILDDIR>>/lib/json-schema/validator.rb:240:in `validate'
>     /<<PKGBUILDDIR>>/test/initialize_data_test.rb:80:in `test_parse_valid_uri_string'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:98:in `block (3 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:195:in `capture_exceptions'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:95:in `block (2 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:270:in `time_it'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:94:in `block in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:365:in `on_signal'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:211:in `with_info_handler'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:93:in `run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:1029:in `run_one_method'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:339:in `run_one_method'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:326:in `block (2 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:325:in `each'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:325:in `block in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:365:in `on_signal'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:352:in `with_info_handler'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:324:in `run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:164:in `block in __run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:164:in `map'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:164:in `__run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:141:in `run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:68:in `block in autorun'
> 
> 363 runs, 1596 assertions, 2 failures, 3 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/all_of_ref_schema_test.rb" "test/any_of_ref_schema_test.rb" "test/bad_schema_ref_test.rb" "test/caching_test.rb" "test/common_test_suite_test.rb" "test/custom_format_test.rb" "test/draft1_test.rb" "test/draft2_test.rb" "test/draft3_test.rb" "test/draft4_test.rb" "test/extended_schema_test.rb" "test/extends_nested_test.rb" "test/files_test.rb" "test/fragment_resolution_test.rb" "test/fragment_validation_with_ref_test.rb" "test/full_validation_test.rb" "test/initialize_data_test.rb" "test/list_option_test.rb" "test/load_ref_schema_test.rb" "test/merge_missing_values_test.rb" "test/min_items_test.rb" "test/one_of_test.rb" "test/relative_definition_test.rb" "test/ruby_schema_test.rb" "test/schema_reader_test.rb" "test/schema_validation_test.rb" "test/stringify_test.rb" "test/type_attribute_test.rb" "test/uri_parsing_test.rb" "test/uri_util_test.rb" "test/validator_schema_reader_test.rb" "test/support/test_helper.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-json-schema/ruby-json-schema_2.8.1-2+rebuild1633384561_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/63a9ebb8/attachment.sig>


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