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 0s

OpenWPM ❌

Tests failed

❌ junit-report.xml

17 tests were completed in 7331s with 0 passed, 16 failed and 1 skipped.

Test suite Passed Failed Skipped Time
pytest 16❌ 1⚪ 7331s

❌ pytest

test.test_http_instrumentation.TestHTTPInstrument
  ❌ test_worker_script_requests
	self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2d4c0>
  ❌ test_service_worker_requests
	self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2deb0>
test.test_http_instrumentation.TestPOSTInstrument
  ❌ test_record_post_data_x_www_form_urlencoded
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2e210>
  ❌ test_record_post_data_text_plain
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84cf20>
  ❌ test_record_post_data_multipart_formdata
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c710>
  ❌ test_record_post_data_ajax
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c080>
  ❌ test_record_post_data_ajax_no_key_value
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c470>
  ❌ test_record_post_data_ajax_no_key_value_base64_encoded
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84d3d0>
  ❌ test_record_post_formdata
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84f050>
  ❌ test_record_binary_post_data
	self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2d070>
  ⚪ test_record_file_upload
test.test_http_instrumentation
  ❌ test_page_visit[True]
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fd00c5c8e00>
  ❌ test_page_visit[False]
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fd00c447060>
  ❌ test_javascript_saving
	http_params = <function http_params.<locals>.parameterize at 0x7fd00c5ce200>
  ❌ test_document_saving
	http_params = <function http_params.<locals>.parameterize at 0x7fd00c5cd9e0>
  ❌ test_content_saving
	http_params = <function http_params.<locals>.parameterize at 0x7fd00c4df740>
  ❌ test_cache_hits_recorded
	http_params = <function http_params.<locals>.parameterize at 0x7fd00c4dd580>

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / OpenWPM

pytest ► test.test_http_instrumentation.TestHTTPInstrument ► test_worker_script_requests

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2d4c0>
Raw output
self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2d4c0>

    def test_worker_script_requests(self):
        """Check correct URL attribution for requests made by worker script"""
        test_url = utilities.BASE_TEST_URL + "/http_worker_page.html"
>       db = self.visit(test_url)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:599: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e89b9e0>
host = '127.0.0.1', port = 41291

    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.test_http_instrumentation.TestHTTPInstrument ► test_service_worker_requests

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2deb0>
Raw output
self = <test.test_http_instrumentation.TestHTTPInstrument object at 0x7fd00fb2deb0>

    def test_service_worker_requests(self):
        """Check correct URL attribution for requests made by service worker"""
        test_url = utilities.BASE_TEST_URL + "/http_service_worker_page.html"
>       db = self.visit(test_url)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:627: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e71b170>
host = '127.0.0.1', port = 46369

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_x_www_form_urlencoded

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2e210>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2e210>

    def test_record_post_data_x_www_form_urlencoded(self):
        encoding_type = "application/x-www-form-urlencoded"
>       db = self.visit("/post_request.html?encoding_type=" + encoding_type)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:706: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e762ea0>
host = '127.0.0.1', port = 41689

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_text_plain

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84cf20>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84cf20>

    def test_record_post_data_text_plain(self):
        encoding_type = "text/plain"
>       db = self.visit("/post_request.html?encoding_type=" + encoding_type)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:712: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e7fcbc0>
host = '127.0.0.1', port = 34561

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_multipart_formdata

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c710>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c710>

    def test_record_post_data_multipart_formdata(self):
        encoding_type = "multipart/form-data"
>       db = self.visit("/post_request.html?encoding_type=" + encoding_type)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:722: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e81ae40>
host = '127.0.0.1', port = 46347

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_ajax

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c080>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c080>
tmpdir = local('/tmp/pytest-of-runner/pytest-0/test_record_post_data_ajax0')

    def test_record_post_data_ajax(self, tmpdir):
        post_format = "object"
>       db = self.visit("/post_request_ajax.html?format=" + post_format)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:734: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e7f8c50>
host = '127.0.0.1', port = 42637

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_ajax_no_key_value

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c470>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84c470>

    def test_record_post_data_ajax_no_key_value(self):
        """Test AJAX payloads that are not in the key=value form."""
        post_format = "noKeyValue"
>       db = self.visit("/post_request_ajax.html?format=" + post_format)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:741: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e7e89e0>
host = '127.0.0.1', port = 33369

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_data_ajax_no_key_value_base64_encoded

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84d3d0>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84d3d0>

    def test_record_post_data_ajax_no_key_value_base64_encoded(self):
        """Test Base64 encoded AJAX payloads (no key=value form)."""
        post_format = "noKeyValueBase64"
>       db = self.visit("/post_request_ajax.html?format=" + post_format)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:748: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00e7e2450>
host = '127.0.0.1', port = 36833

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_post_formdata

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84f050>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00e84f050>

    def test_record_post_formdata(self):
        post_format = "formData"
>       db = self.visit("/post_request_ajax.html?format=" + post_format)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:756: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00c5a6c30>
host = '127.0.0.1', port = 44623

    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.test_http_instrumentation.TestPOSTInstrument ► test_record_binary_post_data

Failed test found in:
  junit-report.xml
Error:
  self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2d070>
Raw output
self = <test.test_http_instrumentation.TestPOSTInstrument object at 0x7fd00fb2d070>

    def test_record_binary_post_data(self):
        post_format = "binary"
>       db = self.visit("/post_request_ajax.html?format=" + post_format)

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:762: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/openwpmtest.py:42: in visit
    manager = task_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 0x7fd00c518ec0>
host = '127.0.0.1', port = 44401

    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.test_http_instrumentation ► test_page_visit[True]

Failed test found in:
  junit-report.xml
Error:
  task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fd00c5c8e00>
Raw output
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fd00c5c8e00>
http_params = <function http_params.<locals>.parameterize at 0x7fd00c5c9260>
delayed = True

    @pytest.mark.parametrize("delayed", [True, False])
    def test_page_visit(
        task_manager_creator: TaskManagerCreator, http_params: HttpParams, delayed: bool
    ) -> None:
        test_url = utilities.BASE_TEST_URL + "/http_test_page.html"
        manager_params, browser_params = http_params()
        if delayed:
            for browser_param in browser_params:
                browser_param.custom_params[
                    "pre_instrumentation_code"
                ] = """
                    const startTime = Date.now();
                    while (Date.now() - startTime < 5000) { // Delaying for 5s
                        console.log("delaying startup");
                    };
                """
    
>       tm, db = task_manager_creator((manager_params, browser_params))

/home/runner/work/OpenWPM/OpenWPM/test/test_http_instrumentation.py:833: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/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 0x7fd00c528f80>
host = '127.0.0.1', port = 46069

    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