Source: ruby-jbuilder Version: 2.10.0-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: debian-r...@lists.debian.org Usertags: ruby3.0
Hi, We are about to enable building against ruby3.0 on unstable. During a test rebuild, ruby-jbuilder 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): > /usr/bin/ruby3.0 /usr/bin/gem2deb-test-runner > > ┌──────────────────────────────────────────────────────────────────────────────┐ > │ Checking Rubygems dependency resolution on ruby3.0 > │ > └──────────────────────────────────────────────────────────────────────────────┘ > > GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-jbuilder/usr/share/rubygems-integration/all:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0 > ruby3.0 -e gem\ \"jbuilder\" > > ┌──────────────────────────────────────────────────────────────────────────────┐ > │ Run tests for ruby3.0 from debian/ruby-tests.rake > │ > └──────────────────────────────────────────────────────────────────────────────┘ > > RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-jbuilder/usr/lib/ruby/vendor_ruby:. > GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-jbuilder/usr/share/rubygems-integration/all:/var/lib/gems/3.0.0:/usr/local/lib/ruby/gems/3.0.0:/usr/lib/ruby/gems/3.0.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0:/usr/share/rubygems-integration/3.0.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0 > ruby3.0 -S rake -f debian/ruby-tests.rake > /usr/bin/ruby3.0 -w -I"test" > /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb > "test/jbuilder_dependency_tracker_test.rb" "test/jbuilder_generator_test.rb" > "test/jbuilder_template_test.rb" "test/jbuilder_test.rb" > "test/scaffold_api_controller_generator_test.rb" > "test/scaffold_controller_generator_test.rb" -v > /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/core_ext/hash/except.rb:12: > warning: method redefined; discarding old except > /usr/lib/ruby/vendor_ruby/tzinfo/ruby_core_support.rb:163: warning: > Object#taint is deprecated and will be removed in Ruby 3.2 > /usr/lib/ruby/vendor_ruby/tzinfo/ruby_core_support.rb:163: warning: > Object#tainted? is deprecated and will be removed in Ruby 3.2 > Run options: -v --seed 5207 > > # Running: > > JbuilderGeneratorTest#test_index_content = 0.02 s = . > JbuilderGeneratorTest#test_timestamps_are_not_generated_in_partial_with_--no-timestamps > = 0.02 s = . > JbuilderGeneratorTest#test_views_are_generated = 0.00 s = . > ScaffoldApiControllerGeneratorTest#test_controller_content = 0.33 s = . > ScaffoldApiControllerGeneratorTest#test_dont_use_require_and_permit_if_there_are_no_attributes > = 0.18 s = . > JbuilderTemplateTest#test_basic_template = 0.54 s = . > JbuilderTemplateTest#test_empty_array_of_partials_from_nil_collection = 0.00 > s = . > JbuilderTemplateTest#test_array_of_partials_under_key = 0.02 s = . > JbuilderTemplateTest#test_nil_partial_collection_by_name = 0.00 s = . > JbuilderTemplateTest#test_partial_collection_by_name_with_string_local = 0.00 > s = . > JbuilderTemplateTest#test_partial_by_name_with_nested_locals = 0.00 s = . > JbuilderTemplateTest#test_partial_collection_by_options = 0.00 s = . > JbuilderTemplateTest#test_partial_for_Active_Model = 0.01 s = . > JbuilderTemplateTest#test_array_root_caching = 0.00 s = . > JbuilderTemplateTest#test_conditional_object_fragment_caching = 0.00 s = . > JbuilderTemplateTest#test_failing_to_cache_root_after_JSON_structures_have_been_defined > = 0.00 s = . > JbuilderTemplateTest#test_object_fragment_caching = 0.01 s = . > JbuilderTemplateTest#test_partial_by_name_with_top-level_locals = 0.00 s = . > JbuilderTemplateTest#test_partial_collection_by_name_with_symbol_local = 0.00 > s = . > JbuilderTemplateTest#test_nil_partial_collection_by_options = 0.00 s = . > JbuilderTemplateTest#test_object_fragment_caching_with_expiry = 0.01 s = . > JbuilderTemplateTest#test_partial_by_options_containing_nested_locals = 0.00 > s = . > JbuilderTemplateTest#test_partial_by_options_containing_top-level_locals = > 0.00 s = . > JbuilderTemplateTest#test_empty_array_of_partials_under_key_from_nil_collection > = 0.00 s = . > JbuilderTemplateTest#test_cache_instrumentation = 0.00 s = . > JbuilderTemplateTest#test_object_root_caching = 0.00 s = . > JbuilderTemplateTest#test_array_of_partials = 0.01 s = . > JbuilderTemplateTest#test_camelized_keys = 0.00 s = . > JbuilderTemplateTest#test_empty_fragment_caching = 0.00 s = . > JbuilderTemplateTest#test_array_fragment_caching = 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_partial_in_indirect_collection_calls > = 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_partial_with_options_(1.9_style) = > 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_dependency_via_direct_partial!_call_with_parens > = 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_dependency_via_direct_partial!_call > = 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_explicit_depedency = 0.00 s = . > JbuilderDependencyTrackerTest#test_detects_partial_with_options_(1.8_style) = > 0.00 s = . > JbuilderTest#test_key_format!_with_no_parameter = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_from_array_when_child_array_is_empty > = 0.00 s = . > JbuilderTest#test_empty_block_handling = 0.01 s = . > JbuilderTest#test_ignore_nil!_without_a_parameter = 0.00 s = . > JbuilderTest#test_throws_MergeError_when_trying_to_merge_hash_with_array = > 0.00 s = . > JbuilderTest#test_nil! = 0.00 s = . > JbuilderTest#test_throws_MergeError_when_trying_to_merge_array_with_non-empty_hash > = 0.00 s = . > JbuilderTest#test_arrays_are_additive = 0.00 s = . > JbuilderTest#test_nested_jbuilder_objects = 0.00 s = . > JbuilderTest#test_empty_attributes_respond_to_empty? = 0.00 s = . > JbuilderTest#test_throws_NullError_when_trying_to_add_properties_to_null_using_block_syntax > = 0.00 s = . > JbuilderTest#test_default_ignore_nil! = 0.00 s = . > JbuilderTest#test_dynamically_set_a_key/nested_child_with_block = 0.00 s = . > JbuilderTest#test_key_format!_with_parameter_not_as_an_array = 0.00 s = . > JbuilderTest#test_support_merge!_method_in_a_block = 0.00 s = . > JbuilderTest#test_throws_NullError_when_trying_to_add_properties_to_null = > 0.00 s = . > JbuilderTest#test_array_nested_inside_array = 0.00 s = . > JbuilderTest#test_ignore_nil!_with_parameter = 0.00 s = . > JbuilderTest#test_initialize_via_options_hash = 0.00 s = . > JbuilderTest#test_key_format!_with_parameter = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_from_array = 0.00 s = . > JbuilderTest#test_nested_blocks_are_additive = 0.00 s = . > JbuilderTest#test_nesting_single_child_with_inline_extract = 0.00 s = . > JbuilderTest#test_it_allows_using_next_in_array_block_to_skip_value = 0.00 s > = . > JbuilderTest#test_single_key_with_nil_value = 0.00 s = . > JbuilderTest#test_query_like_object = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_from_array_with_inline_loop_on_root > = 0.00 s = . > JbuilderTest#test_do_not_use_default_key_formatter_directly = 0.00 s = . > JbuilderTest#test_top-level_array = 0.00 s = . > JbuilderTest#test_array_nested_inside_nested_hash = 0.00 s = . > JbuilderTest#test_null!_in_a_block = 0.00 s = . > JbuilderTest#test_array!_casts_array-like_objects_to_array_before_merging = > 0.00 s = . > JbuilderTest#test_handles_nil-collections_as_empty_arrays = 0.00 s = . > JbuilderTest#test_single_key_with_false_value = 0.00 s = . > JbuilderTest#test_directly_set_an_array_nested_in_another_array = 0.00 s = . > JbuilderTest#test_extracting_from_object_using_call_style = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_with_block = 0.00 s = . > JbuilderTest#test_extract_attributes_directly_from_array = 0.00 s = . > JbuilderTest#test_nested_jbuilder_object_via_set! = 0.00 s = . > JbuilderTest#test_respects_JSON_encoding_customizations = 0.03 s = F > > > Failure: > JbuilderTest#test_respects_JSON_encoding_customizations > [/<<PKGBUILDDIR>>/test/jbuilder_test.rb:741]: > --- expected > +++ actual > @@ -1 +1 @@ > -"2018-05-13T11:51:00.485-04:00" > +"2018-05-13 11:51:00 -0400" > > > rails test <<PKGBUILDDIR>>/test/jbuilder_test.rb:737 > > JbuilderTest#test_blocks_are_additive_via_extract_syntax = 0.00 s = . > JbuilderTest#test_dynamically_sets_a_collection = 0.00 s = . > JbuilderTest#test_key_format!_with_multiple_steps = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_from_a_non-Enumerable_that_responds_to_#map > = 0.00 s = . > JbuilderTest#test_nesting_multiple_children_from_array_with_inline_loop = > 0.00 s = . > JbuilderTest#test_nesting_multiple_chilren_from_a_non-Enumerable_that_responds_to_#map_with_inline_loop > = 0.00 s = . > JbuilderTest#test_throws_MergeError_when_trying_to_merge_invalid_objects = > 0.00 s = . > JbuilderTest#test_single_key = 0.00 s = . > JbuilderTest#test_multiple_keys = 0.00 s = . > JbuilderTest#test_null! = 0.00 s = . > JbuilderTest#test_support_merge!_method = 0.00 s = . > JbuilderTest#test_default_key_format! = 0.00 s = . > JbuilderTest#test_extracting_from_hash = 0.00 s = . > JbuilderTest#test_empty_top-level_array = 0.00 s = . > JbuilderTest#test_throws_ArrayError_when_trying_to_add_a_key_to_an_array = > 0.00 s = . > JbuilderTest#test_key_format!_with_lambda/proc = 0.00 s = . > JbuilderTest#test_blocks_are_additive = 0.00 s = . > JbuilderTest#test_key_format!_propagates_to_child_elements = 0.00 s = . > JbuilderTest#test_dynamically_set_a_key/value = 0.00 s = . > JbuilderTest#test_nesting_single_child_with_block = 0.00 s = . > JbuilderTest#test_key_format!_resets_after_child_element = 0.00 s = . > JbuilderTest#test_extracting_from_object = 0.00 s = . > ScaffoldControllerGeneratorTest#test_controller_content = 0.27 s = . > ScaffoldControllerGeneratorTest#test_dont_use_require_and_permit_if_there_are_no_attributes > = 0.22 s = . > > Finished in 1.744577s, 57.3205 runs/s, 149.0332 assertions/s. > 100 runs, 260 assertions, 1 failures, 0 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/jbuilder_dependency_tracker_test.rb" "test/jbuilder_generator_test.rb" > "test/jbuilder_template_test.rb" "test/jbuilder_test.rb" > "test/scaffold_api_controller_generator_test.rb" > "test/scaffold_controller_generator_test.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-jbuilder/ruby-jbuilder_2.10.0-1+rebuild1633383692_amd64.build.txt
signature.asc
Description: PGP signature