Related to T2984
Details
- Reviewers
anlambert - Group Reviewers
Reviewers - Maniphest Tasks
- T2984: Port cgit lister to the new Lister API
- Commits
- rDLSe4a590fc7f3e: Port cgit lister to the new lister api
tox
Note:
- test inputs were left as-is
- tests were slightly modified due to the scheduler api change (for reading)
Diff Detail
- Repository
- rDLS Listers
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 18665 Build 28883: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 28882: arc lint + arc unit
Time | Test | |
---|---|---|
1,327 ms | Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.tests.test_cli::test_get_lister swh_scheduler_config = {'db': "dbname=scheduler user=postgres host=127.0.0.1 port=32432 options=''"}
def test_get_lister(swh_scheduler_config):
| |
1,327 ms | Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.tests.test_cli::test_get_lister_override def test_get_lister_override():
"""Overriding the lister configuration should populate its config
| |
185 ms | Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_lister::test_bitbucket_full_lister | |
199 ms | Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_lister::test_bitbucket_incremental_lister | |
273 ms | Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_lister::test_bitbucket_lister_rate_limit_hit | |
View Full Test Results (2 Failed · 126 Passed) |
Event Timeline
Build has FAILED
Patch application report for D4926 (id=17533)
Rebasing onto ff232f0d91...
Current branch diff-target is up to date.
Changes applied before test
commit 8bdb35311e8022abf4cb8065b034391b51fa6cb6 Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Fri Jan 22 15:39:49 2021 +0100 Port cgit lister to the new lister api Related to T2984
Link to build: https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/134/
See console output for more information: https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/134/console
Build is green
Patch application report for D4926 (id=17537)
Rebasing onto ff232f0d91...
Current branch diff-target is up to date.
Changes applied before test
commit 27feeb2122dd3125fcfe01df799bc8cfdea312ec Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Fri Jan 22 15:39:49 2021 +0100 Port cgit lister to the new lister api Related to T2984
See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/136/ for more details.
swh/lister/cgit/lister.py | ||
---|---|---|
39 | missing types for url and instance parameters | |
59 | Here instance should not be equal to None as it is used to create the internal lister id. Two possible solutions to ensure it:
| |
109 | It would be nice to compute a last_update value for the listed origins. On the main Web UI page of a cgit instance listing hosted repositories, there is an Idle column indicating | |
swh/lister/cgit/tests/test_lister.py | ||
11–13 | test name is ambiguous as get_pages is called in implementation. | |
27 | test should be renamed here | |
53 | return value of the run method should be used to test the number of pages and listed origins |
swh/lister/cgit/lister.py | ||
---|---|---|
109 | this is not in a scope of that diff, just throwing the idea here ;-) |
swh/lister/cgit/lister.py | ||
---|---|---|
59 | Sorry, I did not see the instructions above, that comment is not valid. |
swh/lister/tests/test_cli.py | ||
---|---|---|
73 ↗ | (On Diff #17578) | For those wondering, this test is no longer relevant as those listers are no longer exposing the conf_override parameter in their constructor. |
Build is green
Patch application report for D4926 (id=17578)
Rebasing onto 59c9abb916...
Current branch diff-target is up to date.
Changes applied before test
commit e4a590fc7f3e9f95c756e616437ee29cf734582f Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Fri Jan 22 15:39:49 2021 +0100 Port cgit lister to the new lister api Related to T2984
See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/155/ for more details.
swh/lister/cgit/lister.py | ||
---|---|---|
39 | lister url should not be optional, even if it is required in the task : it cannot function without one. | |
70 | add a warning on any error != than 200 that dumps response content, like the other listers, to ease debugging. | |
91 | Here I think the lister will stop without error if the site changes, but in this case we want it to fail clearly and not just end. |
swh/lister/cgit/lister.py | ||
---|---|---|
70 |