Source: ruby-responders Version: 3.0.1-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-responders 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-responders/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\ \"responders\" > > ┌──────────────────────────────────────────────────────────────────────────────┐ > │ Run tests for ruby3.0 from debian/ruby-tests.rake > │ > └──────────────────────────────────────────────────────────────────────────────┘ > > RUBYLIB=. > GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-responders/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/action_controller/respond_with_api_test.rb" > "test/action_controller/respond_with_test.rb" > "test/action_controller/verify_requested_format_test.rb" > "test/responders/collection_responder_test.rb" > "test/responders/controller_method_test.rb" > "test/responders/flash_responder_test.rb" > "test/responders/http_cache_responder_test.rb" "test/test_helper.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 34640 > > # Running: > > ControllerMethodTest#test_foo_responder_gets_added = 0.04 s = . > ControllerMethodTest#test_bar_responder_gets_added = 0.00 s = . > NamespacedFlashResponderTest#test_sets_the_flash_message_based_on_the_current_controller > = 0.04 s = . > NamespacedFlashResponderTest#test_does_not_fallbacks_to_non_namespaced_controller_flash_message_if_disabled > = 0.01 s = . > NamespacedFlashResponderTest#test_fallbacks_to_non_namespaced_controller_flash_message > = 0.00 s = . > NamespacedFlashResponderTest#test_sets_the_flash_message_based_on_namespace_actions > = 0.00 s = . > NamespacedFlashResponderTest#test_does_not_fallbacks_to_namespaced_actions_if_disabled > = 0.00 s = . > VerifyRequestedFormatTest#test_strict_mode_calls_action_with_right_format = > 0.01 s = . > VerifyRequestedFormatTest#test_strict_mode_respects_only_option = 0.00 s = . > VerifyRequestedFormatTest#test_strict_mode_shouldnt_call_action = 0.00 s = . > HttpCacheResponderTest#test_does_not_set_cache_for_new_records = 0.00 s = . > HttpCacheResponderTest#test_does_not_use_cache_if_http_cache_is_false = 0.01 > s = . > HttpCacheResponderTest#test_work_with_an_empty_array = 0.02 s = . > HttpCacheResponderTest#test_works_for_nested_resources = 0.00 s = . > HttpCacheResponderTest#test_does_not_use_cache_unless_get_requests = 0.00 s = > . > HttpCacheResponderTest#test_returns_not_modified_if_return_is_cache_is_still_valid > = 0.00 s = . > HttpCacheResponderTest#test_does_not_set_cache_unless_get_requests = 0.01 s = > . > HttpCacheResponderTest#test_it_does_not_set_body_etag_for_single_resource = > 0.00 s = . > HttpCacheResponderTest#test_does_not_set_cache_if_http_cache_is_false = 0.00 > s = . > HttpCacheResponderTest#test_last_modified_at_is_set_with_single_resource_on_get > = 0.00 s = . > HttpCacheResponderTest#test_does_not_set_cache_for_collection = 0.00 s = . > HttpCacheResponderTest#test_refreshes_last_modified_if_cache_is_expired = > 0.01 s = . > CollectionResponderTest#test_collection_with_single_resource = 0.00 s = . > CollectionResponderTest#test_collection_respects_only_symbols = 0.00 s = . > CollectionResponderTest#test_collection_respects_isolated_namespace = 0.00 s > = . > CollectionResponderTest#test_collection_with_namespaced_resource = 0.00 s = . > CollectionResponderTest#test_collection_respects_uncountable_resource = 0.00 > s = . > CollectionResponderTest#test_collection_with_nested_resource = 0.00 s = . > CollectionResponderTest#test_collection_respects_location_option = 0.00 s = . > LocationResponderTest#test_redirects_to_block_location_on_success = 0.01 s = . > LocationResponderTest#test_redirects_to_plain_string = 0.00 s = . > LocationResponderTest#test_renders_page_on_fail = 0.00 s = . > PolymorhicFlashResponderTest#test_polymorhic_respond_with = 0.00 s = . > RespondWithAPITest#test_api_controller_without_view_rendering = 0.01 s = F > > > Failure: > RespondWithAPITest#test_api_controller_without_view_rendering > [/<<PKGBUILDDIR>>/test/action_controller/respond_with_api_test.rb:31]: > --- expected > +++ actual > @@ -1 +1 @@ > -"[{\"name\":\"Foo\",\"id\":1},{\"name\":\"Bar\",\"id\":2}]" > +"[\"#<struct Customer name=\\\"Foo\\\", id=1>\",\"#<struct Customer > name=\\\"Bar\\\", id=2>\"]" > > > rails test <<PKGBUILDDIR>>/test/action_controller/respond_with_api_test.rb:25 > > FlashResponderTest#test_sets_flash_message_with_resource_name = 0.00 s = . > FlashResponderTest#test_does_not_set_flash_message_on_get_requests = 0.02 s = > . > FlashResponderTest#test_sets_html_using_actions_scope = 0.00 s = . > FlashResponderTest#test_sets_flash_message_can_be_set_to_now_only_on_failure > = 0.00 s = . > FlashResponderTest#test_sets_flash_message_for_the_current_controller = 0.00 > s = . > FlashResponderTest#test_sets_success_flash_message_on_non_get_requests = 0.01 > s = . > FlashResponderTest#test_sets_message_based_on_alert_key_with_custom_keys = > 0.00 s = . > FlashResponderTest#test_sets_message_based_on_notice_key_with_custom_keys = > 0.00 s = . > FlashResponderTest#test_sets_failure_flash_message_on_not_get_requests = 0.02 > s = . > FlashResponderTest#test_never_set_flash_now = 0.00 s = . > FlashResponderTest#test_sets_html_using_controller_scope = 0.00 s = . > FlashResponderTest#test_sets_now_flash_message_on_javascript_requests = 0.02 > s = . > FlashResponderTest#test_sets_flash_now_on_failure_by_default = 0.00 s = . > FlashResponderTest#test_does_not_set_flash_message_to_now_with_errors_and_redirect > = 0.00 s = . > FlashResponderTest#test_sets_flash_message_with_interpolation_options = 0.00 > s = . > FlashResponderTest#test_sets_flash_message_even_if_block_is_given = 0.02 s = . > FlashResponderTest#test_does_not_set_flash_if_flash_false_is_given = 0.00 s = > . > FlashResponderTest#test_does_not_overwrite_the_flash_if_already_set = 0.00 s > = . > FlashResponderTest#test_escapes_html_interpolations = 0.01 s = . > FlashResponderTest#test_sets_message_based_on_alert_key = 0.00 s = . > FlashResponderTest#test_sets_flash_message_can_be_set_to_now = 0.00 s = . > FlashResponderTest#test_sets_flash_message_can_be_set_to_now_only_on_success > = 0.00 s = . > FlashResponderTest#test_sets_message_based_on_notice_key = 0.01 s = . > ControllerMethodInheritanceTest#test_responder_is_inherited = 0.00 s = . > RespondWithControllerTest#test_using_resource = 0.02 s = . > RespondWithControllerTest#test_using_resource_for_delete_with_html_redirects_on_failure > = 0.03 s = . > RespondWithControllerTest#test_using_resource_for_put_with_html_rerender_on_failure > = 0.04 s = . > RespondWithControllerTest#test_respond_as_responder_entry_point = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_patch_with_html_rerender_on_failure > = 0.03 s = . > RespondWithControllerTest#test_using_hash_resource = 0.01 s = F > > > Failure: > RespondWithControllerTest#test_using_hash_resource > [/<<PKGBUILDDIR>>/test/action_controller/respond_with_test.rb:192]: > Expected false to be truthy. > > rails test <<PKGBUILDDIR>>/test/action_controller/respond_with_test.rb:182 > > RespondWithControllerTest#test_using_hash_resource_with_post = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_put_with_xml_yields_unprocessable_entity_on_failure > = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_patch_with_html_rerender_on_failure_even_on_method_override > = 0.03 s = . > RespondWithControllerTest#test_using_resource_with_js_simply_tries_to_render_the_template > = 0.01 s = . > RespondWithControllerTest#test_first_in_respond_to_has_higher_priority = 0.00 > s = . > RespondWithControllerTest#test_using_resource_for_delete_with_json_yields_no_content_on_success > = 0.01 s = . > RespondWithControllerTest#test_using_resource_for_patch_with_html_redirects_on_success > = 0.03 s = . > RespondWithControllerTest#test_using_resource_with_rendering_options = 0.00 s > = . > RespondWithControllerTest#test_using_options_with_template = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_put_with_html_rerender_on_failure_even_on_method_override > = 0.04 s = . > RespondWithControllerTest#test_using_resource_with_block = 0.03 s = . > RespondWithControllerTest#test_using_resource_for_post_with_xml_yields_unprocessable_entity_on_failure > = 0.07 s = . > RespondWithControllerTest#test_using_resource_for_put_with_json_yields_unprocessable_entity_on_failure > = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_parent_for_post = 0.03 s = > . > RespondWithControllerTest#test_using_resource_for_delete_with_xml_yields_no_content_on_success > = 0.00 s = . > RespondWithControllerTest#test_clear_respond_to = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_post_with_xml_yields_created_on_success > = 0.02 s = . > RespondWithControllerTest#test_using_resource_with_overwrite_block = 0.00 s = > . > RespondWithControllerTest#test_respond_with_shouldnt_modify_original_hash = > 0.01 s = . > RespondWithControllerTest#test_error_is_raised_if_no_respond_to_is_declared_and_respond_with_is_called > = 0.00 s = . > RespondWithControllerTest#test_using_hash_resource_with_js_raises_an_error_if_template_cant_be_found > = 0.00 s = . > RespondWithControllerTest#test_using_invalid_resource_with_template = 0.02 s > = . > RespondWithControllerTest#test_using_resource_for_post_with_json_yields_unprocessable_entity_on_failure > = 0.03 s = . > RespondWithControllerTest#test_using_resource_for_put_with_html_redirects_on_success > = 0.04 s = . > RespondWithControllerTest#test_using_resource_with_responder = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_put_with_xml_yields_no_content_on_success > = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_action = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_parent_for_get = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_collection = 0.01 s = . > RespondWithControllerTest#test_no_double_render_is_raised = 0.00 s = . > RespondWithControllerTest#test_raises_missing_renderer_if_an_api_behavior_with_no_renderer > = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_status_and_location = 0.02 > s = . > RespondWithControllerTest#test_using_resource_with_status_and_location_with_invalid_resource > = 0.00 s = . > RespondWithControllerTest#test_using_resource_with_set_responder = 0.02 s = . > RespondWithControllerTest#test_not_acceptable = 0.00 s = . > RespondWithControllerTest#test_using_resource_for_post_with_html_rerender_on_failure > = 0.05 s = . > RespondWithControllerTest#test_using_resource_for_post_with_html_redirects_on_success > = 0.02 s = . > RespondWithControllerTest#test_using_resource_for_put_with_json_yields_no_content_on_success > = 0.00 s = . > RespondWithControllerTest#test_block_inside_respond_with_is_rendered = 0.00 s > = . > RespondWithControllerTest#test_using_resource_for_delete_with_html_redirects_on_success > = 0.04 s = . > > Finished in 1.120134s, 92.8461 runs/s, 210.6892 assertions/s. > 104 runs, 236 assertions, 2 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/action_controller/respond_with_api_test.rb" > "test/action_controller/respond_with_test.rb" > "test/action_controller/verify_requested_format_test.rb" > "test/responders/collection_responder_test.rb" > "test/responders/controller_method_test.rb" > "test/responders/flash_responder_test.rb" > "test/responders/http_cache_responder_test.rb" "test/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-responders/ruby-responders_3.0.1-1+rebuild1633393227_amd64.build.txt
signature.asc
Description: PGP signature