Page MenuHomeSoftware Heritage

Make the replayer adapt from older formats.
ClosedPublic

Authored by vlorentz on Jul 18 2019, 10:21 AM.

Diff Detail

Repository
rDJNL Journal infrastructure
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda added a subscriber: douardda.

Ok with this, but it would make sense to have tests for these different configurations of 'old formats' I guess...

This revision is now accepted and ready to land.Jul 18 2019, 10:24 AM
This revision is now accepted and ready to land.Jul 18 2019, 10:50 AM
douardda added inline comments.
swh/journal/tests/test_replay.py
137–150

why don't we know at this point which version of the visits "format" are to be expected?

154

please add a simple doctring/comment to spot the difference with the other version of the test.

Or may be these 2 test functions could be factorized somehow?

This revision now requires changes to proceed.Jul 18 2019, 11:31 AM
swh/journal/tests/test_replay.py
137–150

It currently depends on the value of SWH_STORAGE_IN_MEMORY_ENABLE_ORIGIN_IDS.

swh/journal/tests/test_replay.py
137–150

Ok so this should either be mentioned as a comment in there, or (preferred solution I guess) tested with against both values of this flag.

Switch assertions on ENABLE_ORIGIN_IDS.

This revision is now accepted and ready to land.Jul 18 2019, 12:11 PM

remove code that wasn't supposed to be committed.

This revision was landed with ongoing or failed builds.Jul 18 2019, 12:30 PM
This revision was automatically updated to reflect the committed changes.