Skip to content

Build of 907/merge by @ekemeyer #562

Build of 907/merge by @ekemeyer

Build of 907/merge by @ekemeyer #562

GitHub Actions / JUnit Test Report failed Aug 23, 2024 in 0s

386 tests run, 330 passed, 26 skipped, 30 failed.

Annotations

Check failure on line 7 in spec/models/ams/all_members_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/ams/all_members_spec.rb.AMS::AllMembers an @asset with nested members #all_members returns a list of all members

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/ams/all_members_spec.rb:7:in `block (2 levels) in <top (required)>'

Check failure on line 7 in spec/models/ams/all_members_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/ams/all_members_spec.rb.AMS::AllMembers an @asset with nested members #all_members with the :only param passed only returns classes specified by :only param

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/ams/all_members_spec.rb:7:in `block (2 levels) in <top (required)>'

Check failure on line 111 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Instantiation Document with Essence Tracks creates a DigitalInstantiation

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:66:in `apply_depositor_metadata'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:55:in `call_valkyrie'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:30:in `call'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:111:in `block (4 levels) in <top (required)>'

Check failure on line 111 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Instantiation Document with Essence Tracks creates an associated EssenceTrack

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:66:in `apply_depositor_metadata'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:55:in `call_valkyrie'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/change_depositor_service.rb:30:in `call'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:111:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests the Asset and the Contributions

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests the Asset and the Digital Instantiations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests the Asset and the Physical Instantiations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests the Essence Tracks of Digital and Physical Instantiations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests Admin Data

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation ingests Annotations

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation propagates additional batch items as part of the batch

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 43 in spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb.AAPB::BatchIngest::PBCoreXMLItemIngester#ingest given a PBCore Description Document with Contributors, Digital Instantiations, and a Physical Instantiation given a PBCore Description Document that alread exists raises an exception

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/acl_index_listener.rb:19:in `on_object_acl_updated'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/access_control_list.rb:171:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/grant_edit_to_depositor.rb:15:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:53:in `process_action'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:37:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `all?'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:36:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/action_taken_service.rb:13:in `handle_action_taken'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:52:in `handle_additional_sipity_workflow_action_processing'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:22:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_action_service.rb:7:in `run'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:67:in `run_workflow_action!'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:46:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/workflow/workflow_factory.rb:24:in `create'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/services/hyrax/listeners/workflow_listener.rb:28:in `on_object_deposited'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `call'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:46:in `block in publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:38:in `block in process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `each'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:34:in `process'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/bus.rb:45:in `publish'
/usr/local/bundle/gems/dry-events-1.0.1/lib/dry/events/publisher.rb:207:in `publish'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:90:in `publish_changes'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/steps/save.rb:53:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:99:in `block in call'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `each'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `inject'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/hyrax/transactions/transaction.rb:97:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `block in call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do/mixin.rb:40:in `call'
/usr/local/bundle/gems/dry-monads-1.6.0/lib/dry/monads/do.rb:131:in `call'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:82:in `ingest_klass'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:98:in `ingest_asset!'
./app/services/aapb/batch_ingest/pbcore_xml_item_ingester.rb:18:in `ingest'
./spec/services/aapb/batch_ingest/pbcore_xml_item_ingester_spec.rb:43:in `block (4 levels) in <top (required)>'

Check failure on line 138 in spec/models/asset_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/asset_spec.rb.Asset#destroy destroys child PhysicalInstantiations, DigitalInstantiations, and associated AdminData

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/asset_spec.rb:138:in `block (3 levels) in <top (required)>'

Check failure on line 40 in spec/services/ams/export/delivery/aapb_delivery_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/delivery/aapb_delivery_spec.rb.AMS::Export::Delivery::AAPBDelivery#ingester returns an AMS::AAPBRemoteIngester instance configured with ENV vars

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:14:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:17:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:21:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:26:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:31:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:40:in `block (3 levels) in <top (required)>'

Check failure on line 55 in spec/services/ams/export/delivery/aapb_delivery_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/delivery/aapb_delivery_spec.rb.AMS::Export::Delivery::AAPBDelivery#deliver calls AAPBRemoteIngester#run!

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:14:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:17:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:21:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:26:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:55:in `block (3 levels) in <top (required)>'

Check failure on line 55 in spec/services/ams/export/delivery/aapb_delivery_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/delivery/aapb_delivery_spec.rb.AMS::Export::Delivery::AAPBDelivery#deliver updates the :last_pushed value to the current time for each asset

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:14:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:17:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:21:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:26:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:55:in `block (3 levels) in <top (required)>'

Check failure on line 55 in spec/services/ams/export/delivery/aapb_delivery_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/delivery/aapb_delivery_spec.rb.AMS::Export::Delivery::AAPBDelivery#deliver populates the #notification_data with the remote ingest output

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:14:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:17:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:21:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:26:in `block (2 levels) in <top (required)>'
./spec/services/ams/export/delivery/aapb_delivery_spec.rb:55:in `block (3 levels) in <top (required)>'

Check failure on line 13 in spec/services/ams/export/results/assets_csv_results_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/results/assets_csv_results_spec.rb.AMS::Export::Results::AssetsCSVResults#filepath points to a file containing Asset CSV Results

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block (2 levels) in define_list_strategy_method'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `times'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `each'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `map'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:32:in `block in define_list_strategy_method'
./spec/services/ams/export/results/assets_csv_results_spec.rb:5:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/assets_csv_results_spec.rb:6:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/assets_csv_results_spec.rb:10:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/assets_csv_results_spec.rb:13:in `block (3 levels) in <top (required)>'

Check failure on line 14 in spec/models/ams/csv_export_extension_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/ams/csv_export_extension_spec.rb.AMS::CsvExportExtension#csv_row_for(:physical_instantiation) when the SolrDocument represents an PhysicalInstantiation returns Asset data as a CSV row

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/ams/csv_export_extension_spec.rb:14:in `block (2 levels) in <top (required)>'

Check failure on line 14 in spec/models/ams/csv_export_extension_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/ams/csv_export_extension_spec.rb.AMS::CsvExportExtension#csv_row_for(:digital_instantiation) when the SolrDocument represents an DigitalInstantiation returns Asset data as a CSV row

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/ams/csv_export_extension_spec.rb:14:in `block (2 levels) in <top (required)>'

Check failure on line 14 in spec/models/ams/csv_export_extension_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/ams/csv_export_extension_spec.rb.AMS::CsvExportExtension#csv_row_for(:asset) when the SolrDocument represents an Asset returns Asset data as a CSV row

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/models/ams/csv_export_extension_spec.rb:14:in `block (2 levels) in <top (required)>'

Check failure on line 25 in spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb.AMS::Export::Results::DigitalInstantiationsCSVResults#filepath points to a file containing Asset CSV Results

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:7:in `block (4 levels) in <top (required)>'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:6:in `initialize'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:6:in `new'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:6:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:16:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:19:in `block (3 levels) in <top (required)>'
./spec/services/ams/export/results/digial_instantiations_csv_results_spec.rb:25:in `block (3 levels) in <top (required)>'

Check failure on line 11 in spec/services/ams/export/search/physical_instantiations_search_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/export/search/physical_instantiations_search_spec.rb.AMS::Export::Search::PhysicalInstantiationsSearch solr_documents returns all of the PhysicalInstantiation Solr documents that are members of the the Asset_Resources records returned by the search params

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/export/search/physical_instantiations_search_spec.rb:16:in `block (4 levels) in <top (required)>'
./spec/services/ams/export/search/physical_instantiations_search_spec.rb:11:in `times'
./spec/services/ams/export/search/physical_instantiations_search_spec.rb:11:in `each'
./spec/services/ams/export/search/physical_instantiations_search_spec.rb:11:in `map'
./spec/services/ams/export/search/physical_instantiations_search_spec.rb:11:in `block (3 levels) in <top (required)>'

Check failure on line 9 in spec/features/admin/admin_sets/add_multiple_userrole_as_viewer_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/features/admin/admin_sets/add_multiple_userrole_as_viewer_spec.rb.AssignMultipleRolesAsViewer. Add Viewer permissions to user (Role) Assign set of user (role) as Viewer to AdminSet

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: index_document["#{type_id.underscore}_ssim"] = resource.try(type_id.to_sym) unless resource.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_resource_indexer.rb:31:in `block (2 levels) in to_solr'
./app/indexers/asset_resource_indexer.rb:28:in `each'
./app/indexers/asset_resource_indexer.rb:28:in `block in to_solr'
<internal:kernel>:90:in `tap'
./app/indexers/asset_resource_indexer.rb:13:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:50:in `solr_document'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:44:in `block in persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `map'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:43:in `persist'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/lib/valkyrie/indexing/solr/indexing_adapter.rb:21:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:54:in `save'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/ar_resource.rb:71:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/features/admin/admin_sets/add_multiple_userrole_as_viewer_spec.rb:9:in `block (3 levels) in <top (required)>'

Check failure on line 80 in spec/services/ams/migrations/audit/auditing_service_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/services/ams/migrations/audit/auditing_service_spec.rb.AMS::Migrations::Audit::AuditingService when an AMS1Asset and AMS2Asset donna match #report adds the comparison report to the report's mismatches data

undefined method `empty?' for nil:NilClass
Raw output
Failure/Error: solr_doc[solr_name(type_id.underscore, :symbol)] = object.try(type_id.to_sym) unless object.try(type_id.to_sym).empty?

NoMethodError:
  undefined method `empty?' for nil:NilClass
./app/indexers/asset_indexer.rb:33:in `block (2 levels) in generate_solr_document'
./app/indexers/asset_indexer.rb:30:in `each'
./app/indexers/asset_indexer.rb:30:in `block in generate_solr_document'
<internal:kernel>:90:in `tap'
./app/indexers/asset_indexer.rb:15:in `generate_solr_document'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:42:in `to_solr'
/usr/local/bundle/bundler/gems/hyrax-943c760886df/app/models/concerns/hyrax/human_readable_type.rb:17:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/permissions.rb:29:in `to_solr'
/usr/local/bundle/gems/hydra-access-controls-12.1.0/app/models/concerns/hydra/access_controls/embargoable.rb:37:in `to_solr'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:52:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `block in update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:235:in `update_index'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/indexing.rb:75:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `block in _create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:44:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/contains_association.rb:9:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/basic_contains_association.rb:13:in `insert_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:286:in `block in save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `each'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:277:in `save_collection_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:135:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:245:in `_create_record'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:179:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `block in create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:40:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:50:in `save'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:315:in `save_belongs_to_association'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:140:in `block in define_autosave_association_callbacks'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `instance_eval'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/callbacks.rb:241:in `create_or_update'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/persistence.rb:44:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/validations.rb:56:in `save!'
/usr/local/bundle/gems/active-fedora-14.0.1/lib/active_fedora/associations/builder/orders.rb:50:in `save!'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/configuration.rb:18:in `block in initialize'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/evaluation.rb:18:in `create'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:12:in `block in result'
<internal:kernel>:90:in `tap'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy/create.rb:9:in `result'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory.rb:43:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:29:in `block in run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/factory_runner.rb:28:in `run'
/usr/local/bundle/gems/factory_bot-4.11.1/lib/factory_bot/strategy_syntax_method_registrar.rb:20:in `block in define_singular_strategy_method'
./spec/services/ams/migrations/audit/auditing_service_spec.rb:4:in `block (2 levels) in <top (required)>'
./spec/services/ams/migrations/audit/auditing_service_spec.rb:7:in `block (2 levels) in <top (required)>'
./spec/services/ams/migrations/audit/auditing_service_spec.rb:80:in `block (4 levels) in <top (required)>'