[DRE-maint] Bug#996117: ruby-active-model-serializers: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError: wrong number of arguments (given 2, expected 3)
Antonio Terceiro
terceiro at debian.org
Mon Oct 11 13:41:59 BST 2021
Source: ruby-active-model-serializers
Version: 0.10.10-1
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-active-model-serializers 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):
> ArgumentError: wrong number of arguments (given 2, expected 3)
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:710:in `get_entry_value'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/cache.rb:330:in `fetch'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/concerns/caching.rb:234:in `fetch'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/concerns/caching.rb:225:in `block in fetch_attributes'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/concerns/caching.rb:224:in `fetch'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/concerns/caching.rb:224:in `fetch_attributes'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer.rb:404:in `attributes_hash'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer.rb:371:in `serializable_hash'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/collection_serializer.rb:27:in `block in serializable_hash'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/collection_serializer.rb:26:in `map'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model/serializer/collection_serializer.rb:26:in `serializable_hash'
> /<<PKGBUILDDIR>>/lib/active_model_serializers/adapter/attributes.rb:14:in `serializable_hash'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/serializable_resource.rb:10:in `serializable_hash'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:71:in `block (3 levels) in notify'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:24:in `block (3 levels) in instrument_rendering'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:81:in `block in notify_render'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `block in instrument'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:180:in `instrument'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:80:in `notify_render'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:23:in `block (2 levels) in instrument_rendering'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:99:in `tag_logger'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:22:in `block in instrument_rendering'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `instance_exec'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
> /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:139:in `run_callbacks'
> /<<PKGBUILDDIR>>/debian/ruby-active-model-serializers/usr/lib/ruby/vendor_ruby/active_model_serializers/logging.rb:70:in `block (2 levels) in notify'
> /<<PKGBUILDDIR>>/test/cache_test.rb:712:in `render_object_with_cache'
> /<<PKGBUILDDIR>>/test/cache_test.rb:195:in `test_cache_expiration_in_collection_on_update_of_record'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:98:in `block (3 levels) in run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:195:in `capture_exceptions'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:95:in `block (2 levels) in run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:272:in `time_it'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:94:in `block in run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:367:in `on_signal'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:211:in `with_info_handler'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest/test.rb:93:in `run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:1029:in `run_one_method'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:341:in `run_one_method'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:328:in `block (2 levels) in run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:327:in `each'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:327:in `block in run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:367:in `on_signal'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:354:in `with_info_handler'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:326:in `run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:164:in `block in __run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:164:in `map'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:164:in `__run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:141:in `run'
> /usr/lib/ruby/gems/3.0.0/gems/minitest-5.14.2/lib/minitest.rb:68:in `block in autorun'
>
> rails test /<<PKGBUILDDIR>>/test/cache_test.rb:181
>
> ActiveModelSerializers::CacheTest#test_cached_false_without_cache_store = 0.00 s = .
> ActiveModelSerializers::CacheTest#test_cache_key_interpolation_with_updated_at_when_cache_key_is_not_defined_on_object = 0.00 s = .
> ActionController::Serialization::JsonApi::DeserializationTest#test_deserialization = 0.03 s = .
> ActionController::Serialization::JsonApi::DeserializationTest#test_deserialization_of_relationship_only_object = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_root_and_no_serializers = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_resource_with_serializer = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_root = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_serializer_option_not_passed_to_each_serializer = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_resource_with_name_and_no_serializers = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_root_default = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_root_with_no_serializers = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_empty_resources_with_serializer = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_resource_with_nil_name_and_no_serializers = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_resource_without_name_and_no_serializers = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_has_object_reader_serializer_interface = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_json_key_with_root = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_respond_to_each = 0.00 s = .
> ActiveModel::Serializer::CollectionSerializerTest#test_each_object_should_be_serialized_with_appropriate_serializer = 0.00 s = .
> ActiveModelSerializers::Adapter::JsonApi::FieldsTest#test_fields_attributes = 0.00 s = .
> ActiveModelSerializers::Adapter::JsonApi::FieldsTest#test_fields_relationships = 0.00 s = .
> ActiveModelSerializers::Adapter::JsonApi::FieldsTest#test_fields_included = 0.00 s = .
>
> Finished in 2.426803s, 221.6909 runs/s, 361.7929 assertions/s.
> 538 runs, 878 assertions, 0 failures, 19 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/adapter_selector_test.rb" "test/action_controller/explicit_serializer_test.rb" "test/action_controller/json/include_test.rb" "test/action_controller/json_api/deserialization_test.rb" "test/action_controller/json_api/errors_test.rb" "test/action_controller/json_api/fields_test.rb" "test/action_controller/json_api/linked_test.rb" "test/action_controller/json_api/transform_test.rb" "test/action_controller/lookup_proc_test.rb" "test/action_controller/namespace_lookup_test.rb" "test/action_controller/serialization_scope_name_test.rb" "test/action_controller/serialization_test.rb" "test/active_model_serializers/adapter_for_test.rb" "test/active_model_serializers/json_pointer_test.rb" "test/active_model_serializers/logging_test.rb" "test/active_model_serializers/model_test.rb" "test/active_model_serializers/test/serializer_test.rb" "test/active_record_test.rb" "test/adapter/attributes_test.rb" "test/adapter/deprecation_test.rb" "test/adapter/json/belongs_to_test.rb" "test/adapter/json/collection_test.rb" "test/adapter/json/fields_test.rb" "test/adapter/json/has_many_test.rb" "test/adapter/json/transform_test.rb" "test/adapter/json_api/belongs_to_test.rb" "test/adapter/json_api/collection_test.rb" "test/adapter/json_api/errors_test.rb" "test/adapter/json_api/fields_test.rb" "test/adapter/json_api/has_many_explicit_serializer_test.rb" "test/adapter/json_api/has_many_test.rb" "test/adapter/json_api/has_one_test.rb" "test/adapter/json_api/include_data_if_sideloaded_test.rb" "test/adapter/json_api/json_api_test.rb" "test/adapter/json_api/linked_test.rb" "test/adapter/json_api/links_test.rb" "test/adapter/json_api/parse_test.rb" "test/adapter/json_api/relationship_test.rb" "test/adapter/json_api/resource_meta_test.rb" "test/adapter/json_api/toplevel_jsonapi_test.rb" "test/adapter/json_api/transform_test.rb" "test/adapter/json_api/type_test.rb" "test/adapter/json_test.rb" "test/adapter/null_test.rb" "test/adapter/polymorphic_test.rb" "test/adapter_test.rb" "test/array_serializer_test.rb" "test/cache_test.rb" "test/collection_serializer_test.rb" "test/generators/scaffold_controller_generator_test.rb" "test/generators/serializer_generator_test.rb" "test/lint_test.rb" "test/logger_test.rb" "test/poro_test.rb" "test/serializable_resource_test.rb" "test/serializers/association_macros_test.rb" "test/serializers/associations_test.rb" "test/serializers/attribute_test.rb" "test/serializers/attributes_test.rb" "test/serializers/configuration_test.rb" "test/serializers/fieldset_test.rb" "test/serializers/meta_test.rb" "test/serializers/options_test.rb" "test/serializers/read_attribute_for_serialization_test.rb" "test/serializers/reflection_test.rb" "test/serializers/root_test.rb" "test/serializers/serialization_test.rb" "test/serializers/serializer_for_test.rb" "test/serializers/serializer_for_with_namespace_test.rb" -v]
>
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed:
The build full is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-active-model-serializers/ruby-active-model-serializers_0.10.10-1+rebuild1633375036_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/20211011/42bfc9b8/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list