Skip to content

Release

Release #951

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

OpenWPM ❌

Tests failed

❌ junit-report.xml

3 tests were completed in 1381s with 0 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 3❌ 1381s

❌ pytest

test.extension.test_logging
  ❌ test_extension_logging
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd7a61120>
  ❌ test_extension_logging
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49598a0>
test.extension.test_startup_timeout
  ❌ test_extension_startup_timeout
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49f05e0>

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.extension.test_logging ► test_extension_logging

Failed test found in:
  junit-report.xml
Error:
  task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd7a61120>
Raw output
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd7a61120>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_extension_logging0'), log_path=PosixPath(...e to webpack name mangling\n            loggingDB.logWarn("This is a test message from the extension"); \n        '})])
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_extension_logging0')

    def test_extension_logging(task_manager_creator, default_params, tmp_path):
        test_msg = "This is a test message from the extension"
        log_path = tmp_path / "openwpm.log"
        manager_params, browser_params = default_params
        manager_params.log_path = log_path
        for browser_param in browser_params:
            browser_param.custom_params[
                "pre_instrumentation_code"
            ] = f"""
                // Weird name needed due to webpack name mangling
                loggingDB.logWarn("{test_msg}");
            """
    
>       task_manager, _ = task_manager_creator((manager_params, browser_params))

/home/runner/work/OpenWPM/OpenWPM/test/extension/test_logging.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
    manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
    self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:446: in save_configuration
    sock = DataSocket(self.listener_address)
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:364: in __init__
    self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.socket_interface.ClientSocket object at 0x7fefd7ac44d0>
host = '127.0.0.1', port = 44523

    def connect(self, host, port):
        if self.verbose:
            print("Connecting to: %s:%i" % (host, port))
>       self.sock.connect((host, port))
E       ConnectionRefusedError: [Errno 111] Connection refused

/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.extension.test_logging ► test_extension_logging

Failed test found in:
  junit-report.xml
Error:
  task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49598a0>
Raw output
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49598a0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_extension_logging1'), log_path=PosixPath(...e to webpack name mangling\n            loggingDB.logWarn("This is a test message from the extension"); \n        '})])
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_extension_logging1')

    def test_extension_logging(task_manager_creator, default_params, tmp_path):
        test_msg = "This is a test message from the extension"
        log_path = tmp_path / "openwpm.log"
        manager_params, browser_params = default_params
        manager_params.log_path = log_path
        for browser_param in browser_params:
            browser_param.custom_params[
                "pre_instrumentation_code"
            ] = f"""
                // Weird name needed due to webpack name mangling
                loggingDB.logWarn("{test_msg}");
            """
    
>       task_manager, _ = task_manager_creator((manager_params, browser_params))

/home/runner/work/OpenWPM/OpenWPM/test/extension/test_logging.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
    manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
    self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:446: in save_configuration
    sock = DataSocket(self.listener_address)
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:364: in __init__
    self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.socket_interface.ClientSocket object at 0x7fefd49d18b0>
host = '127.0.0.1', port = 45253

    def connect(self, host, port):
        if self.verbose:
            print("Connecting to: %s:%i" % (host, port))
>       self.sock.connect((host, port))
E       ConnectionRefusedError: [Errno 111] Connection refused

/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.extension.test_startup_timeout ► test_extension_startup_timeout

Failed test found in:
  junit-report.xml
Error:
  task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49f05e0>
Raw output
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fefd49f05e0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_extension_startup_timeout0'), log_path=Po... - startTime < 20000) { // Delaying for 20s\n            console.log("delaying startup");\n           };\n        '})])

    def test_extension_startup_timeout(task_manager_creator, default_params):
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        for browser_param in browser_params:
            browser_param.custom_params[
                "pre_instrumentation_code"
            ] = """
               const startTime = Date.now();
               while (Date.now() - startTime < 20000) { // Delaying for 20s
                console.log("delaying startup");
               };
            """
        with pytest.raises(BrowserConfigError) as error:
>           tm, _ = task_manager_creator((manager_params, browser_params[:1]))

/home/runner/work/OpenWPM/OpenWPM/test/extension/test_startup_timeout.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
    manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:149: in __init__
    self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:446: in save_configuration
    sock = DataSocket(self.listener_address)
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:364: in __init__
    self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.socket_interface.ClientSocket object at 0x7fefd4a0f5f0>
host = '127.0.0.1', port = 37231

    def connect(self, host, port):
        if self.verbose:
            print("Connecting to: %s:%i" % (host, port))
>       self.sock.connect((host, port))
E       ConnectionRefusedError: [Errno 111] Connection refused

/home/runner/work/OpenWPM/OpenWPM/openwpm/socket_interface.py:127: ConnectionRefusedError