Revision 5b3e6c9f70f94f4ae7440de453fd75cd1d3bbeb6 authored by Nicolas Dandrimont on 04 February 2021, 08:56:03 UTC, committed by Nicolas Dandrimont on 04 February 2021, 13:37:12 UTC
This is mostly a consistency addition, considering that most (if not
all) loaders will only add a single snapshot.

The common pattern of loading objects in topological order (content >
directory > revision > release > snapshot), then flushing the storage,
is now fully consistent; Without this addition, the snapshot addition
would reach the backend storage before all other objects are added,
leading to potential inconsistencies if the flush of other object types
fails.
1 parent 18967ed
Raw File
conftest.py
# Copyright (C) 2020  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information

pytest_plugins = ["swh.storage.pytest_plugin", "swh.core.db.pytest_plugin"]
back to top