Page MenuHomeSoftware Heritage

(ci: unstuck master build) search: cli: Rename --max-messages to --stop-after-objects
ClosedPublic

Authored by ardumont on Mar 27 2020, 7:13 AM.

Details

Summary

Following the journal migration (v0.0.27).

This will unstuck the current aborted build on master [1]

Similar to D2890
Related to D2798

[1] https://jenkins.softwareheritage.org/job/DSEA/job/tests/215/

Test Plan

tox

Diff Detail

Repository
rDSEA Archive search
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont retitled this revision from cli: Rename --max-messages to --stop-after-objects to swh-search: cli: Rename --max-messages to --stop-after-objects (ci: unstuck master build).Mar 27 2020, 7:14 AM
ardumont retitled this revision from swh-search: cli: Rename --max-messages to --stop-after-objects (ci: unstuck master build) to (ci: unstuck master build) swh-search: cli: Rename --max-messages to --stop-after-objects.Mar 27 2020, 7:36 AM
ardumont edited the summary of this revision. (Show Details)
ardumont retitled this revision from (ci: unstuck master build) swh-search: cli: Rename --max-messages to --stop-after-objects to (ci: unstuck master build) search: cli: Rename --max-messages to --stop-after-objects.Mar 27 2020, 7:46 AM
olasd requested changes to this revision.Mar 27 2020, 9:26 AM
olasd added a subscriber: olasd.

Thanks for trying to fix this. A few comments inline regarding the JournalClient usage pattern.

swh/search/cli.py
67–69

client.process does not need an outer loop, it handles that itself.

73–75

Please add a finally: client.close() clause so that the client properly shuts down (ref. swh.journal.cli)

This revision now requires changes to proceed.Mar 27 2020, 9:26 AM

Right, i forgot to check but i remembered something about that.
I'll also adapt the indexer's journal client which does something similar as this diff (without your remarks applied i mean)

Adapt according to review

Needs D2901 for the tests to go green

This revision is now accepted and ready to land.Mar 27 2020, 9:59 AM