Skip to content

Release

Release #950

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / OpenWPM failed Oct 13, 2023 in 0s

OpenWPM ❌

Tests failed

❌ junit-report.xml

10 tests were completed in 654s with 8 passed, 2 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 8✅ 2❌ 654s

❌ pytest

test.storage.test_arrow_cache
  ✅ test_arrow_cache
test.storage.test_storage_controller
  ❌ test_startup_and_shutdown
	mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a60469790>
  ❌ test_arrow_provider
	mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a5cd5f140>
test.storage.test_storage_providers
  ✅ test_local_arrow_storage_provider
  ✅ test_basic_access[memory_structured]
  ✅ test_basic_access[sqlite]
  ✅ test_basic_access[memory_arrow]
  ✅ test_basic_unstructured_storing[memory_unstructured]
  ✅ test_basic_unstructured_storing[leveldb]
  ✅ test_basic_unstructured_storing[local_gzip]

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.storage.test_storage_controller ► test_startup_and_shutdown

Failed test found in:
  junit-report.xml
Error:
  mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a60469790>
Raw output
mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a60469790>
test_values = ({'callstacks': {'browser_id': 356063174, 'call_stack': 'abwqxsstcsgx', 'request_id': 3435361344288119746, 'visit_id':.....}, {-1, 332241173894583725, 1846460608322940840, 2249450917035802587, 2352464635626999929, 2623508000777195408, ...})

    def test_startup_and_shutdown(mp_logger: MPLogger, test_values: dt_test_values) -> None:
        test_table, visit_ids = test_values
        structured = MemoryStructuredProvider()
        controller_handle = StorageControllerHandle(structured, None)
        controller_handle.launch()
        assert controller_handle.listener_address is not None
        cs = DataSocket(controller_handle.listener_address)
        for table, data in test_table.items():
            visit_id = data["visit_id"]
            cs.store_record(
                table, visit_id, data
            )  # cloning to avoid the modifications in store_record
    
        for visit_id in visit_ids:
            cs.finalize_visit_id(visit_id, True)
        cs.close()
        controller_handle.shutdown()
    
        handle = structured.handle
        handle.poll_queue()
        for table, data in test_table.items():
            if data["visit_id"] == INVALID_VISIT_ID:
                del data["visit_id"]
>           assert handle.storage[table] == [data]
E           AssertionError: assert [] == [{'browser_ve...362872605408}]
E             Right contains one more item: {'browser_version': 'cfqvkmxqulzp', 'manager_params': 'ggheifjplofc', 'openwpm_version': 'dflcrbhmwqxe', 'task_id': 6586408362872605408}
E             Full diff:
E               [
E             +  ,
E             -  {'browser_version': 'cfqvkmxqulzp',
E             -   'manager_params': 'ggheifjplofc',
E             -   'openwpm_version': 'dflcrbhmwqxe',
E             -   'task_id': 6586408362872605408},
E               ]

test/storage/test_storage_controller.py:40: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.storage.test_storage_controller ► test_arrow_provider

Failed test found in:
  junit-report.xml
Error:
  mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a5cd5f140>
Raw output
mp_logger = <openwpm.mp_logger.MPLogger object at 0x7f0a5cd5f140>
test_values = ({'callstacks': {'browser_id': 1877619947, 'call_stack': 'qgkvxodtgnpa', 'request_id': 280420867057798134, 'visit_id':..., ...}, {-1, 15464485877210958, 372527921128293740, 473911276524982463, 1333636499566659166, 1547568877661443295, ...})

    def test_arrow_provider(mp_logger: MPLogger, test_values: dt_test_values) -> None:
        test_table, visit_ids = test_values
        structured = MemoryArrowProvider()
        controller_handle = StorageControllerHandle(structured, None)
        controller_handle.launch()
    
        assert controller_handle.listener_address is not None
        cs = DataSocket(controller_handle.listener_address)
    
        for table, data in test_table.items():
            visit_id = data["visit_id"]
            cs.store_record(table, visit_id, data)
    
        for visit_id in visit_ids:
            cs.finalize_visit_id(visit_id, True)
        cs.close()
        controller_handle.shutdown()
    
        handle = structured.handle
        handle.poll_queue()
        for table, data in test_table.items():
>           t1 = handle.storage[table][0].to_pandas().drop(columns=["instance_id"])
E           IndexError: list index out of range

test/storage/test_storage_controller.py:64: IndexError