Page MenuHomeSoftware Heritage

gitlab: Port to the new lister api
ClosedPublic

Authored by ardumont on Jan 23 2021, 4:00 PM.

Details

Summary

No evolution, plain portage.

Note:
The existing missing tests, eventual paper cuts, and authentication support will be addressed in subsequent diffs:

  • D4930: pagination test
  • D4932: incremental lister test
  • D4933: rate limit test
  • D4940: Support authentication

Related to T2987

Test Plan

tox

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D4929 (id=17539)

Rebasing onto ff232f0d91...

Current branch diff-target is up to date.
Changes applied before test
commit 4611d7d75123ffd6ed2517a677f2000b53939887
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Sat Jan 23 15:18:20 2021 +0100

    gitlab: Port to the new lister api

See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/137/ for more details.

ardumont edited the summary of this revision. (Show Details)
anlambert added a subscriber: anlambert.
anlambert added inline comments.
swh/lister/gitlab/lister.py
80

Lister parameters should be documented, notably that the url parameter corresponds to the v4 api path of gitlab.

swh/lister/gitlab/tests/test_lister.py
21–46

This should be removed I guess.

This revision is now accepted and ready to land.Jan 25 2021, 12:17 PM
This revision was automatically updated to reflect the committed changes.
ardumont added inline comments.
swh/lister/gitlab/tests/test_lister.py
21–46

indeed and it's done in the next diffs which finally add those equivalent test.
( kept those here to avoid forgetting about adding those back).