Page MenuHomeSoftware Heritage

lister-phabricator: Pagination error
Closed, MigratedEdits Locked

Description

Pagination is buggy because of a type error.

@anlambert spotted it and is working on the fix

swh-lister_1                  | [2019-09-12 13:51:05,111: ERROR/ForkPoolWorker-1] Task swh.lister.phabricator.tasks.FullPhabricatorLister[f4077261-59d1-4daf-bcfd-b23e3eb9ae14] raised unexpected: TypeError("'<=' not supported between instances of 'str' and 'int'")
swh-lister_1                  | Traceback (most recent call last):
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
swh-lister_1                  |     R = retval = fun(*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/scheduler/task.py", line 45, in __call__
swh-lister_1                  |     return super().__call__(*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
swh-lister_1                  |     return self.run(*args, **kwargs)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/phabricator/tasks.py", line 12, in list_phabricator_full
swh-lister_1                  |     PhabricatorLister(**lister_args).run()
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/indexing_lister.py", line 234, in run
swh-lister_1                  |     for i in ingest_indexes():
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/indexing_lister.py", line 223, in ingest_indexes
swh-lister_1                  |     self.disable_deleted_repo_tasks(index, next_index, keep_these)
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/indexing_lister.py", line 183, in disable_deleted_repo_tasks
swh-lister_1                  |     if not self.is_within_bounds(end, None, self.max_index):
swh-lister_1                  |   File "/srv/softwareheritage/venv/lib/python3.7/site-packages/swh/lister/core/lister_base.py", line 187, in is_within_bounds
swh-lister_1                  |     ret = inner <= upper
swh-lister_1                  | TypeError: '<=' not supported between instances of 'str' and 'int'

(Assigned @anlambert as he is working on the fix, thanks)