HomeSoftware Heritage

to_disk: raise an AssertionError if content has an unexpected status.

Description

to_disk: raise an AssertionError if content has an unexpected status.

Although that will be fixed in the next version of swh-storage,
the current one returns a None status for skipped content, which
causes surprising behavior from the cooker (as it reuse the content
of the previous file in place of the current one).

Additionally, even though it shouldn't happen, if a content is
missing completely (ie. neither know nor skipped), it's still
possible to have a None status.

Details

Provenance
vlorentzAuthored on Sep 4 2020, 10:26 AM
vlorentzPushed on Sep 8 2020, 1:54 PM
Differential Revision
D3882: to_disk: raise an AssertionError if content has an unexpected status.
Parents
rDVAUff8e6c8c1478: Tell pytest not to recurse in dotdirs.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14946
Build 23027: test-and-buildJenkins console · Jenkins