We are testing Bulkrax with Hyrax 5/Fedora 6 using @dlpierce's PR on the Hyrax repo that enables Valkyrie support for Bulkrax with Fedora 6.
In preliminary testing, we are able to create new works and filesets and to update existing works via Bulkrax import.
Updating a fileset via Bulkrax import does not work, however. The import completes without errors visible in the UI, but no new version of the associated file is created. The Bulkrax logs show a warning on ContentUpdateEventJob, which seems to be shunted into a retry loop:
WARN: {"context":"Job raised exception","job":{"retry":true,"queue":"ingest","wrapped":"ContentUpdateEventJob","args":[{"job_class":"ContentUpdateEventJob","job_id":"bcdf2aac-f8e8-42c9-80b7-f900a7104a17","provider_job_id":null,"queue_name":"ingest","priority":null,"arguments":[{"_aj_globalid":"gid://scholarspace/Hyrax::ValkyrieGlobalIdProxy/9066dfc6-0737-4751-8fea-e2c45dd5a7a3"},null],"executions":0,"exception_executions":{},"locale":"en","timezone":"UTC","enqueued_at":"2026-01-07T20:13:45.143665799Z","scheduled_at":null}],"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","jid":"7c015c13aabfa686fda0b298","created_at":1767816825.1437492,"enqueued_at":1767879473.9773996,"error_message":"undefined method `log_profile_event' for nil","error_class":"NoMethodError","failed_at":1767816829.6058261,"retry_count":12,"retried_at":1767878307.7305832}}
2026-01-08T13:37:54.019Z pid=1 tid=ey2l WARN: NoMethodError: undefined method `log_profile_event' for nil
2026-01-08T13:37:54.019Z pid=1 tid=ey2l WARN: /app/scholarspace/vendor/bundle/ruby/3.3.0/bundler/gems/hyrax-66d749a9bfbf/app/jobs/content_event_job.rb:21:in `log_user_event'
/app/scholarspace/vendor/bundle/ruby/3.3.0/bundler/gems/hyrax-66d749a9bfbf/app/jobs/event_job.rb:20:in `perform'
/app/scholarspace/vendor/bundle/ruby/3.3.0/bundler/gems/hyrax-66d749a9bfbf/app/jobs/content_event_job.rb:10:in `perform'
Could the root of the issue lie in the file_set_update method of Bulkrax::ValkyrieObjectFactory? See lines 514 and 515: an array of files and parameters (presumably for updating) is returned in 514, but it doesn't look like these values are passed into the transaction at line 515.
I'm wondering if a call to Hyrax::Transactions.with_step_args should be applied to the transactions object, as in the Bulkrax::ValkyrieObjectFactory.work_update method. But that's just a guess, and my ignorance of theTransactions and ChangeSet functionality keeps me from seeing how to patch this.
We are testing Bulkrax with Hyrax 5/Fedora 6 using @dlpierce's PR on the Hyrax repo that enables Valkyrie support for Bulkrax with Fedora 6.
In preliminary testing, we are able to create new works and filesets and to update existing works via Bulkrax import.
Updating a fileset via Bulkrax import does not work, however. The import completes without errors visible in the UI, but no new version of the associated file is created. The Bulkrax logs show a warning on
ContentUpdateEventJob, which seems to be shunted into a retry loop:Could the root of the issue lie in the
file_set_updatemethod ofBulkrax::ValkyrieObjectFactory? See lines 514 and 515: an array of files and parameters (presumably for updating) is returned in 514, but it doesn't look like these values are passed into the transaction at line 515.I'm wondering if a call to
Hyrax::Transactions.with_step_argsshould be applied to the transactions object, as in theBulkrax::ValkyrieObjectFactory.work_updatemethod. But that's just a guess, and my ignorance of theTransactionsandChangeSetfunctionality keeps me from seeing how to patch this.