[DRE-maint] Bug#1091659: ruby-grape: FTBFS with ruby3.3: ERROR: Test "ruby3.3" failed: expected NoMethodError with message matching /^undefined method `x' for #<Object:0x[0-9a-fA-F]+>$/, got #<NoMethodError: undefined method `x' for an instance of Object> with backtrace:

Antonio Terceiro terceiro at debian.org
Sun Dec 29 11:43:09 GMT 2024


Source: ruby-grape
Version: 2.0.0-3
Severity: important
Justification: FTBFS
Tags: trixie sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.3

Hi,

We are about to enable building against ruby3.3 on unstable. During a test
rebuild, ruby-grape was found to fail to build in that situation. This bug
is being reported as important, but will be upgraded to serious soon.

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

Relevant part (hopefully):
>        expected NoMethodError with message matching /^undefined method `x' for #<Object:0x[0-9a-fA-F]+>$/, got #<NoMethodError: undefined method `x' for an instance of Object> with backtrace:
>          # ./spec/grape/endpoint_spec.rb:709:in `block (5 levels) in <top (required)>'
>          # ./lib/grape/endpoint.rb:58:in `call'
>          # ./lib/grape/endpoint.rb:58:in `block (2 levels) in generate_api_method'
>          # /usr/share/rubygems-integration/all/gems/activesupport-6.1.7.3/lib/active_support/notifications.rb:205:in `instrument'
>          # ./lib/grape/endpoint.rb:57:in `block in generate_api_method'
>          # ./lib/grape/endpoint.rb:328:in `execute'
>          # ./lib/grape/endpoint.rb:260:in `block in run'
>          # /usr/share/rubygems-integration/all/gems/activesupport-6.1.7.3/lib/active_support/notifications.rb:205:in `instrument'
>          # ./lib/grape/endpoint.rb:240:in `run'
>          # ./lib/grape/endpoint.rb:316:in `block in build_stack'
>          # ./lib/grape/middleware/base.rb:36:in `call!'
>          # ./lib/grape/middleware/base.rb:29:in `call'
>          # ./lib/grape/middleware/error.rb:39:in `block in call!'
>          # ./lib/grape/middleware/error.rb:38:in `catch'
>          # ./lib/grape/middleware/error.rb:38:in `call!'
>          # ./lib/grape/middleware/base.rb:29:in `call'
>          # /usr/share/rubygems-integration/all/gems/rack-2.2.7/lib/rack/head.rb:12:in `call'
>          # ./lib/grape/endpoint.rb:224:in `call!'
>          # ./lib/grape/endpoint.rb:218:in `call'
>          # ./lib/grape/router/route.rb:58:in `exec'
>          # ./lib/grape/router.rb:120:in `process_route'
>          # ./lib/grape/router.rb:74:in `block in identity'
>          # ./lib/grape/router.rb:94:in `transaction'
>          # ./lib/grape/router.rb:72:in `identity'
>          # ./lib/grape/router.rb:56:in `block in call'
>          # ./lib/grape/router.rb:136:in `with_optimization'
>          # ./lib/grape/router.rb:55:in `call'
>          # ./lib/grape/api/instance.rb:165:in `call'
>          # ./lib/grape/api/instance.rb:70:in `call!'
>          # ./lib/grape/api/instance.rb:65:in `call'
>          # ./lib/grape/api.rb:81:in `call'
>          # /usr/share/rubygems-integration/all/gems/rack-test-2.1.0/lib/rack/test.rb:360:in `process_request'
>          # /usr/share/rubygems-integration/all/gems/rack-test-2.1.0/lib/rack/test.rb:163:in `custom_request'
>          # /usr/share/rubygems-integration/all/gems/rack-test-2.1.0/lib/rack/test.rb:112:in `get'
>          # ./spec/grape/endpoint_spec.rb:712:in `block (5 levels) in <top (required)>'
>          # ./spec/grape/endpoint_spec.rb:711:in `block (4 levels) in <top (required)>'
>      # ./spec/grape/endpoint_spec.rb:711:in `block (4 levels) in <top (required)>'
> 
> Finished in 3.41 seconds (files took 0.86555 seconds to load)
> 2171 examples, 1 failure, 1 pending
> 
> Failed examples:
> 
> rspec ./spec/grape/endpoint_spec.rb:707 # Grape::Endpoint#method_missing when performing an undefined method of an instance inside the API raises NoMethodError but stripping the internals of the Object class
> 
> Randomized with seed 22839
> 
> /usr/bin/ruby3.3 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec ./spec/grape/api/custom_validations_spec.rb ./spec/grape/api/deeply_included_options_spec.rb ./spec/grape/api/defines_boolean_in_params_spec.rb ./spec/grape/api/documentation_spec.rb ./spec/grape/api/inherited_helpers_spec.rb ./spec/grape/api/instance_spec.rb ./spec/grape/api/invalid_format_spec.rb ./spec/grape/api/namespace_parameters_in_route_spec.rb ./spec/grape/api/nested_helpers_spec.rb ./spec/grape/api/optional_parameters_in_route_spec.rb ./spec/grape/api/parameters_modification_spec.rb ./spec/grape/api/patch_method_helpers_spec.rb ./spec/grape/api/recognize_path_spec.rb ./spec/grape/api/required_parameters_in_route_spec.rb ./spec/grape/api/required_parameters_with_invalid_method_spec.rb ./spec/grape/api/routes_with_requirements_spec.rb ./spec/grape/api/shared_helpers_exactly_one_of_spec.rb ./spec/grape/api/shared_helpers_spec.rb ./spec/grape/api_remount_spec.rb ./spec/grape/api_spec.rb ./spec/grape/dsl/callbacks_spec.rb ./spec/grape/dsl/desc_spec.rb ./spec/grape/dsl/headers_spec.rb ./spec/grape/dsl/helpers_spec.rb ./spec/grape/dsl/inside_route_spec.rb ./spec/grape/dsl/logger_spec.rb ./spec/grape/dsl/middleware_spec.rb ./spec/grape/dsl/parameters_spec.rb ./spec/grape/dsl/request_response_spec.rb ./spec/grape/dsl/routing_spec.rb ./spec/grape/dsl/settings_spec.rb ./spec/grape/dsl/validations_spec.rb ./spec/grape/endpoint/declared_spec.rb ./spec/grape/endpoint_spec.rb ./spec/grape/exceptions/base_spec.rb ./spec/grape/exceptions/body_parse_errors_spec.rb ./spec/grape/exceptions/invalid_accept_header_spec.rb ./spec/grape/exceptions/invalid_formatter_spec.rb ./spec/grape/exceptions/invalid_response_spec.rb ./spec/grape/exceptions/invalid_versioner_option_spec.rb ./spec/grape/exceptions/missing_group_type_spec.rb ./spec/grape/exceptions/missing_mime_type_spec.rb ./spec/grape/exceptions/missing_option_spec.rb ./spec/grape/exceptions/unknown_options_spec.rb ./spec/grape/exceptions/unknown_validator_spec.rb ./spec/grape/exceptions/unsupported_group_type_spec.rb ./spec/grape/exceptions/validation_errors_spec.rb ./spec/grape/exceptions/validation_spec.rb ./spec/grape/extensions/param_builders/hash_spec.rb ./spec/grape/extensions/param_builders/hash_with_indifferent_access_spec.rb ./spec/grape/extensions/param_builders/hashie/mash_spec.rb ./spec/grape/grape_spec.rb ./spec/grape/integration/global_namespace_function_spec.rb ./spec/grape/integration/rack_sendfile_spec.rb ./spec/grape/integration/rack_spec.rb ./spec/grape/loading_spec.rb ./spec/grape/middleware/auth/base_spec.rb ./spec/grape/middleware/auth/dsl_spec.rb ./spec/grape/middleware/auth/strategies_spec.rb ./spec/grape/middleware/base_spec.rb ./spec/grape/middleware/error_spec.rb ./spec/grape/middleware/exception_spec.rb ./spec/grape/middleware/formatter_spec.rb ./spec/grape/middleware/globals_spec.rb ./spec/grape/middleware/stack_spec.rb ./spec/grape/middleware/versioner/accept_version_header_spec.rb ./spec/grape/middleware/versioner/header_spec.rb ./spec/grape/middleware/versioner/param_spec.rb ./spec/grape/middleware/versioner/path_spec.rb ./spec/grape/middleware/versioner_spec.rb ./spec/grape/named_api_spec.rb ./spec/grape/parser_spec.rb ./spec/grape/path_spec.rb ./spec/grape/presenters/presenter_spec.rb ./spec/grape/railtie_spec.rb ./spec/grape/request_spec.rb ./spec/grape/util/inheritable_setting_spec.rb ./spec/grape/util/inheritable_values_spec.rb ./spec/grape/util/reverse_stackable_values_spec.rb ./spec/grape/util/stackable_values_spec.rb ./spec/grape/util/strict_hash_configuration_spec.rb ./spec/grape/validations/attributes_doc_spec.rb ./spec/grape/validations/instance_behaivour_spec.rb ./spec/grape/validations/multiple_attributes_iterator_spec.rb ./spec/grape/validations/params_scope_spec.rb ./spec/grape/validations/single_attribute_iterator_spec.rb ./spec/grape/validations/types/array_coercer_spec.rb ./spec/grape/validations/types/primitive_coercer_spec.rb ./spec/grape/validations/types/set_coercer_spec.rb ./spec/grape/validations/types_spec.rb ./spec/grape/validations/validators/all_or_none_spec.rb ./spec/grape/validations/validators/allow_blank_spec.rb ./spec/grape/validations/validators/at_least_one_of_spec.rb ./spec/grape/validations/validators/base_spec.rb ./spec/grape/validations/validators/coerce_spec.rb ./spec/grape/validations/validators/default_spec.rb ./spec/grape/validations/validators/exactly_one_of_spec.rb ./spec/grape/validations/validators/except_values_spec.rb ./spec/grape/validations/validators/mutual_exclusion_spec.rb ./spec/grape/validations/validators/presence_spec.rb ./spec/grape/validations/validators/regexp_spec.rb ./spec/grape/validations/validators/same_as_spec.rb ./spec/grape/validations/validators/values_spec.rb ./spec/grape/validations_spec.rb ./spec/integration/eager_load/eager_load_spec.rb ./spec/integration/multi_json/json_spec.rb ./spec/integration/multi_xml/xml_spec.rb ./spec/integration/rack/v2/headers_spec.rb ./spec/integration/rack/v3/headers_spec.rb --require spec_helper failed
> ERROR: Test "ruby3.3" failed: 


The full build log is available at
https://people.debian.org/~terceiro/ruby3.3/ruby-grape/ruby-grape_2.0.0-3+rebuild1733793916_amd64.build
-------------- 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/20241229/7894ced2/attachment-0001.sig>


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