Normalize the scheduler db for better `swh db` compatibility
In the next version of swh.core, we expect all the swh.core.db based swh backends to register themselves in the swh.<package>.classes
entry point so the swh db
tools can easily handle the whole lifecycle of the backend's db easily (especially in integration tests like the docker env or the mirror deployment project).
So be it.
Will need a dependency bump on swh.core before merging.
Merge request reports
Activity
Jenkins job DSCH/gitlab-builds #253 succeeded in 6 min 16 sec.
See Console Output, Blue Ocean and Coverage Report for more details.- Resolved by Antoine R. Dumont
added 1 commit
- 5764a7aa - Declare scheduler backends in the swh.scheduler.classes entry point
Jenkins job DSCH/gitlab-builds #259 failed in 1 min 21 sec.
See Console Output, Blue Ocean and Coverage Report for more details.35 35 "swh.scheduler" = "swh.scheduler.cli" 36 36 "swh.scheduler.journal" = "swh.scheduler.cli.journal" 37 37 38 [project.entry-points."swh.scheduler.classes"] 39 "postgresql" = "swh.scheduler.backend:SchedulerBackend" 40 "remote" = "swh.scheduler.api.client:RemoteScheduler" 41 "temporary" = "swh.scheduler.backend:TemporarySchedulerBackend" If "local" is not present there, can we still use it (as per some code you kept here)?
(Note that it's been a while since it has been deprecated so might be, we could drop it altogether now. We no longer use "local" in our charts)
Edited by Antoine R. Dumont
added 12 commits
-
5764a7aa...da126619 - 11 commits from branch
swh/devel:master
- 772bfe56 - Declare scheduler backends in the swh.scheduler.classes entry point
-
5764a7aa...da126619 - 11 commits from branch
Jenkins job DSCH/gitlab-builds #280 failed in 7 min 19 sec.
See Console Output, Blue Ocean and Coverage Report for more details.added 1 commit
- a08abb96 - Declare scheduler backends in the swh.scheduler.classes entry point
Jenkins job DSCH/gitlab-builds #281 succeeded in 7 min 9 sec.
See Console Output, Blue Ocean and Coverage Report for more details.added 1 commit
- 8f341cfe - Replace remaining 'local' cls with 'postgresql'
Jenkins job DSCH/gitlab-builds #282 succeeded in 7 min 16 sec.
See Console Output, Blue Ocean and Coverage Report for more details.