This allows us to support reading the journal from the beginning,
ignoring messages with the old schema.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDSCH86ada443d290: journal client: Filter out status messages without type
added a unit test for the new behavior, and refactored a previous one.
Diff Detail
Diff Detail
- Repository
- rDSCH Scheduling utilities
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
Patch application report for D5067 (id=18080)
Could not rebase; Attempt merge onto cf32e37649...
Updating cf32e37..86ada44 Fast-forward swh/scheduler/journal_client.py | 20 ++++++++---------- swh/scheduler/tests/test_journal_client.py | 34 ++++++++++++++++++++++++++---- 2 files changed, 39 insertions(+), 15 deletions(-)
Changes applied before test
commit 86ada443d2900e820356727149a1f7b0fa6e6bff Author: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Tue Feb 9 10:36:23 2021 +0100 journal client: Filter out status messages without type This allows us to support reading the journal from the beginning, ignoring messages with the old schema. commit cdb1775f247401ec24f8bb5dac7f9f2b40005bca Author: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Tue Feb 9 10:33:19 2021 +0100 Simplify max_date() The built-in `max` function can take an iterable directly, no need to reimplement it.
See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/302/ for more details.