Fix db seeds for Solid Queue #249

Merged
raucao merged 1 commits from fix/seeds-active-job into master 2026-10-06 13:38:20 +00:00
Owner

Problem

db/seeds.rb still did require 'sidekiq/testing' and wrapped seeding in Sidekiq::Testing.inline!, but Sidekiq was removed from the bundle in the Solid Queue migration. rails db:setup therefore aborted with:

LoadError: cannot load such file -- sidekiq/testing

Fix

Run the jobs triggered while seeding inline via Active Job (ActiveJob::Base.queue_adapter = :inline), restoring the previous behavior with the adapter the app actually uses.

Notes

  • Prerequisite for the Docker Compose bootstrap PR, which runs db:setup.
  • CI does not load seeds, so this is CI-neutral.
## Problem `db/seeds.rb` still did `require 'sidekiq/testing'` and wrapped seeding in `Sidekiq::Testing.inline!`, but Sidekiq was removed from the bundle in the Solid Queue migration. `rails db:setup` therefore aborted with: ``` LoadError: cannot load such file -- sidekiq/testing ``` ## Fix Run the jobs triggered while seeding inline via Active Job (`ActiveJob::Base.queue_adapter = :inline`), restoring the previous behavior with the adapter the app actually uses. ## Notes - Prerequisite for the Docker Compose bootstrap PR, which runs `db:setup`. - CI does not load seeds, so this is CI-neutral.
raucao added 1 commit 2026-10-06 13:36:34 +00:00
Fix db seeds for Solid Queue
CI / Test (pull_request) Successful in 45s
Release Drafter / Update release notes draft (pull_request) Successful in 3s
911d2a5855
db/seeds.rb still required "sidekiq/testing" and wrapped seeding in
Sidekiq::Testing.inline!, but Sidekiq is no longer in the bundle after
the Solid Queue migration, so `rails db:setup` failed with a LoadError.

Run the jobs triggered while seeding inline via Active Job instead,
restoring the previous behavior with the adapter the app actually uses.
raucao force-pushed fix/seeds-active-job from 3833f75ec2 to 911d2a5855 2026-10-06 13:36:34 +00:00 Compare
raucao added the bugdev environment labels 2026-10-06 13:38:16 +00:00
raucao merged commit 465563d6a6 into master 2026-10-06 13:38:20 +00:00
raucao deleted branch fix/seeds-active-job 2026-10-06 13:38:21 +00:00
Sign in to join this conversation.