HomeSoftware Heritage

converters: normalize timestamps using swh.model

Description

converters: normalize timestamps using swh.model

To make sure corruptions such as T680 don't happen again, use the same
normalization function as swh.model before inserting timestamps into our
database.

This makes swh.storage reject non-integer timestamp values as well.

Update tests to reflect this change.

Details

Provenance
olasdAuthored on Feb 14 2017, 7:14 PM
olasdPushed on Feb 14 2017, 7:17 PM
Parents
rDSTOc6abed2ca3b7: sql/archiver: get the count of objects in each archive
Branches
Unknown
Tags
Unknown
Build Status
Buildable 667
Build 899: Software Heritage Python tests