Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 6 2021, 1:56 PM
Details
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7fb5c4b93ac8> def test_buffering_proxy_storage_revision_threshold_hit(sample_data) -> None: revision = sample_data.revision storage = get_storage_with_buffer_config(min_batch_size={"revision": 1,}) > s = storage.revision_add([revision]) .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py:304: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py:137: in object_add return self.flush() .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