Page MenuHomeSoftware Heritage

http_client: Add max_matching_nodes parameter to visit_nodes()
ClosedPublic

Authored by vlorentz on Sep 29 2022, 3:43 PM.

Diff Detail

Repository
rDGRPH Compressed graph representation
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Sep 29 2022, 3:44 PM
Harbormaster failed remote builds in B31924: Diff 30952!

Build is green

Patch application report for D8579 (id=30952)

Rebasing onto 8549673d02...

First, rewinding head to replay your work on top of it...
Applying: http_client: Add max_matching_nodes parameter to visit_nodes()
Changes applied before test
commit 92f4da382d83df4c6bf77401340ddefd54c63b61
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Thu Sep 29 15:39:27 2022 +0200

    http_client: Add max_matching_nodes parameter to visit_nodes()

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

anlambert added inline comments.
swh/graph/http_naive_client.py
200

Should it not be yield from res instead ?

swh/graph/http_naive_client.py
200

er I guess, but it's functionally equivalent to return res from a function instead of yield from res from a generator when res is an iterator; that's why generators have the same type signature as a function returning an iterator

anlambert added inline comments.
swh/graph/http_naive_client.py
200

Ack, I was not sure about that fact.

This revision is now accepted and ready to land.Sep 30 2022, 2:37 PM
This revision was landed with ongoing or failed builds.Sep 30 2022, 3:18 PM
This revision was automatically updated to reflect the committed changes.