Deploy and run those:
- gnu lister
- phabricator listers (Full, Incremental) with instances:
- swh (default one: https://forge.softwareheritage.org)
- main (https://secure.phabricator.org)
Steps:
- [ ] D1572: Update defaults.yaml to reference the new listers
- [x] Tag swh-lister (v0.0.24)
- [x] Check the debian build package is fine on jenkins [1]
- [x] Deploy latest listers
- [x] Initialize the db with phabricator/gnu lister models [2]
- [x] Give read-only access to new db to guest user
- [x] Insert new task types (list-gnu, list-phab, list-phab-incremental) [3]
- [ ] Insert new tasks:
- [ ] 1 recurring list-gnu task
- [ ] 2 recurring list-phab (instances: forge.swh.org, secure.phab.com)
- [ ] 2 recurring list-phab-incremental (instances: forge.swh.org, secure.phab.com)
[1] https://jenkins.softwareheritage.org/view/Debian%20packages/job/debian/job/packages/job/DLS/job/gbp-buildpackage/
[2] Initialize db stanza:
```
$ workon swh
$ swh lister db-init --db-url postgres://swh-lister:<redacted>@belvedere.internal.softwareheritage.org:5432/swh-lister gnu
INFO:swh.lister.cli:Initializing lister gnu
INFO:swh.lister.cli:Creating tables for gnu
$ swh lister db-init --db-url postgres://swh-lister:<redacted>@belvedere.internal.softwareheritage.org:5432/swh-lister phabricator
INFO:swh.lister.cli:Initializing lister phabricator
INFO:swh.lister.cli:Creating tables for phabricator
```
[3] Initialize task-type stanza:
```
$ SCHEDULER_API_URL=http://saatchi.internal.softwareheritage.org:5008/
$ swh scheduler --url $SCHEDULER_API_URL task-type add \
list-gnu-full "swh.lister.gnu.tasks.GNUListerTask" "Full GNU Lister" \
--default-interval '90 days' \
--backoff-factor 1
$ swh scheduler --url $SCHEDULER_API_URL task-type add \
list-phabricator-full "swh.lister.phabricator.tasks.FullPhabricatorLister" "Full Phabricator instance Lister" \
--default-interval '90 days' \
--backoff-factor 1
$ swh scheduler --url $SCHEDULER_API_URL task-type add \
list-phabricator-incremental "swh.lister.phabricator.tasks.IncrementalPhabricatorLister" "Incremental Phabricator instance Lister" \
--default-interval '1 week' \
--backoff-factor 1
```