Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_buffer::test_buffer_flush_stats
Failed

TEST RESULT

Run At
Apr 6 2021, 1:56 PM
Details
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb5c4a8bc18> def test_buffer_flush_stats(sample_data) -> None: storage = get_storage_with_buffer_config() s = storage.content_add(sample_data.contents) assert s == {} s = storage.skipped_content_add(sample_data.skipped_contents) assert s == {} s = storage.directory_add(sample_data.directories) assert s == {} s = storage.revision_add(sample_data.revisions) assert s == {} s = storage.release_add(sample_data.releases) assert s == {} s = storage.snapshot_add(sample_data.snapshots) assert s == {} # Flush all the things > s = storage.flush() .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py:155: in flush stats = add_fn(list(batch)) .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:484: in revision_add revisions = list(set(revisions)) <attrs generated hash swh.model.model.Revision>:15: in __hash__ self.extra_headers, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = ImmutableDict({'checksums': {'sha1': 'tarball-sha1', 'sha256': 'tarball-sha256'}, 'signed-off-by': 'some-dude'}) def __hash__(self): > return hash(tuple(sorted(self.data))) E TypeError: unhashable type: 'dict' .tox/py3/lib/python3.7/site-packages/swh/model/collections.py:49: TypeError