Page MenuHomeSoftware Heritage

Add support for replaying origin visits + more tests
ClosedPublic

Authored by vlorentz on Apr 5 2019, 2:53 PM.

Details

Summary

Adds tests for writing+replaying releases, revisions, directories, origin_visits

Depends on D1351.

It uses attr to describe our data model, which hypothesis reads to build
objects.

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

  • Add support for origin_visits
vlorentz retitled this revision from [WIP] Add tests for writing+replaying releases, revisions, and directories. to Add tests for writing+replaying releases, revisions, directories, origin_visits.Apr 5 2019, 4:54 PM
vlorentz retitled this revision from Add tests for writing+replaying releases, revisions, directories, origin_visits to Add support for replaying origin visits + more tests.Apr 5 2019, 5:28 PM
vlorentz edited the summary of this revision. (Show Details)
  • Use Hypothesis strategies from swh-model (D1360).
ardumont added inline comments.
swh/journal/tests/test_write_replay.py
67

GitDate

Bump required swh-model version.

olasd added a subscriber: olasd.
olasd added inline comments.
swh/journal/replay.py
67

Please use logger.error('Foo %s', args): that way arguments have a chance to end up in the structured logging infrastructure, and we avoid interpolating when the log level isn't high enough to output the message.

This revision is now accepted and ready to land.Apr 8 2019, 3:51 PM
This revision was landed with ongoing or failed builds.Apr 8 2019, 8:23 PM
This revision was automatically updated to reflect the committed changes.