Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 29 2021, 10:28 AM
Details
sample_data = <swh.storage.tests.storage_data.StorageData object at 0x7f4721504390> def test_buffering_proxy_storage_snapshot_threshold_not_hit(sample_data) -> None: snapshots = sample_data.snapshots threshold = 10 assert len(snapshots) < threshold storage = get_storage_with_buffer_config( min_batch_size={"snapshot": threshold,} # configuration set ) s = storage.snapshot_add(snapshots) assert s == {} snapshot_ids = [r.id for r in snapshots] missing_snapshots = storage.snapshot_missing(snapshot_ids) assert list(missing_snapshots) == snapshot_ids > s = storage.flush() .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_buffer.py:421: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/storage/buffer.py:156: in flush stats = add_fn(list(batch)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <swh.storage.in_memory.InMemoryStorage object at 0x7f4721504d68> snapshots = [Snapshot(branches=ImmutableDict({b'master': SnapshotBranch(target=b'\x01\xa7\x11O6\xfd\xdd^\xf2Q\x1b,\xad\xda#zh\xad\...tType.SNAPSHOT: 'snapshot'>), b'dangling': None}), id=b'\xdb\x99\xfd\xa2[C\xdc\\\xd9\x06%\xeeK\x07Du\x17\x99\xc9\x17')] def snapshot_add(self, snapshots: List[Snapshot]) -> Dict: > if not self._allow_overwrite: E AttributeError: 'InMemoryStorage' object has no attribute '_allow_overwrite' .tox/py3/lib/python3.7/site-packages/swh/storage/cassandra/storage.py:668: AttributeError