Skip to content

Otel

Otel #344

GitHub Actions / test/test_[i-o,q-r,t-z]* failed Jul 22, 2024 in 1s

32 passed, 7 failed and 0 skipped

Tests failed

❌ junit-report.xml

39 tests were completed in 1135s with 32 passed, 7 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 32✅ 7❌ 1135s

❌ pytest

test.test_js_instrument.TestJSInstrumentNonExistingWindowProperty
  ✅ test_instrument_object
test.test_js_instrument.TestJSInstrumentExistingWindowProperty
  ✅ test_instrument_object
test.test_js_instrument.TestJSInstrumentByPython
  ✅ test_instrument_object
test.test_js_instrument.TestJSInstrumentMockWindowProperty
  ✅ test_instrument_object
test.test_js_instrument.TestJSInstrument
  ✅ test_instrument_object
test.test_js_instrument.TestJSInstrumentRecursiveProperties
  ✅ test_instrument_object
test.test_js_instrument_py
  ✅ test_validate_good
  ✅ test_validate_bad__log_settings_missing
  ✅ test_validate_bad__log_settings_invalid
  ✅ test_validate_bad__not_a_list
  ✅ test_validate_bad__missing_object
  ✅ test_validated_bad__missing_instrumentedName
  ✅ test_merge_and_validate_multiple_overlap_properties_to_instrument_properties_to_exclude
  ✅ test_merge_and_validate_multiple_overlap_properties
  ✅ test_merge_when_log_settings_is_null
  ✅ test_merge_diff_instrumented_names
  ✅ test_merge_multiple_duped_properties
  ✅ test_merge_multiple_duped_properties_different_log_settings
  ✅ test_api_whole_module
  ✅ test_api_two_keys_in_shortcut
  ✅ test_api_instances_on_window
  ✅ test_api_instances_on_window_with_properties
  ✅ test_api_module_specific_properties
  ✅ test_api_passing_partial_log_settings
  ✅ test_api_collection_fingerprinting
  ✅ test_complete_pass
test.test_mp_logger
  ✅ test_multiprocess
  ✅ test_multiple_instances
  ✅ test_child_process_with_exception
  ✅ test_child_process_logging
test.test_task_manager
  ✅ test_failure_limit_value
  ❌ test_failure_limit_exceeded
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8894a36b90>
  ❌ test_failure_limit_reset
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893821ad0>
  ❌ test_assertion_error_propagation[False-expectation0]
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893904b10>
  ❌ test_assertion_error_propagation[True-expectation1]
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893882e50>
test.test_timer
  ❌ test_command_duration
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938dc810>
test.test_webdriver_utils
  ✅ test_parse_neterror
  ❌ test_parse_neterror_integration
	self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938ba250>
test.test_xvfb_browser
  ❌ test_display_shutdown
	task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ef6a0>

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_task_manager ► test_failure_limit_exceeded

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8894a36b90>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8894a36b90>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f886ac043d0>, block = True
timeout = 119.99999669299996

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f8894a1a0c0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_failure_limit_exceeded0'), log_path=Posix...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])

    def test_failure_limit_exceeded(task_manager_creator, default_params):
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        manager_params.failure_limit = 0
        manager, _ = task_manager_creator((manager_params, browser_params[:1]))
    
        with pytest.raises(CommandExecutionError):
>           manager.get("example.com")  # Selenium requires scheme prefix

/home/runner/work/OpenWPM/OpenWPM/test/test_task_manager.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:499: in get
    self.execute_command_sequence(command_sequence, index=index)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8894a36b90>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_task_manager ► test_failure_limit_reset

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893821ad0>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893821ad0>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f8893821950>, block = True
timeout = 119.999996022

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938e0360>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_failure_limit_reset0'), log_path=PosixPat...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])

    def test_failure_limit_reset(task_manager_creator, default_params):
        """Test that failure_count is reset on command sequence completion."""
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        manager_params.failure_limit = 1
        manager, _ = task_manager_creator((manager_params, browser_params[:1]))
>       manager.get("example.com")  # Selenium requires scheme prefix

/home/runner/work/OpenWPM/OpenWPM/test/test_task_manager.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:499: in get
    self.execute_command_sequence(command_sequence, index=index)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893821ad0>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_task_manager ► test_assertion_error_propagation[False-expectation0]

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893904b10>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893904b10>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f8893905590>, block = True
timeout = 119.99999655299996

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938e1d00>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_assertion_error_propagati0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
testing = False, expectation = <contextlib.nullcontext object at 0x7f886ac8d150>

    @pytest.mark.parametrize(
        "testing,expectation",
        [
            (False, does_not_raise()),
            (True, pytest.raises(AssertionError, match="From inside the command")),
        ],
    )
    def test_assertion_error_propagation(
        task_manager_creator, default_params, testing, expectation
    ):
        """Test that assertion errors bubble up through the TaskManager when running tests"""
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        manager_params.testing = testing
        manager, _ = task_manager_creator((manager_params, browser_params[:1]))
        cs = CommandSequence("http://example.com", blocking=True)
        cs.append_command(CrashingAssertionCommand())
        with expectation:
            with manager:
>               manager.execute_command_sequence(cs)

/home/runner/work/OpenWPM/OpenWPM/test/test_task_manager.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893904b10>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_task_manager ► test_assertion_error_propagation[True-expectation1]

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893882e50>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893882e50>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f8893883f90>, block = True
timeout = 119.99999666399992

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ec4a0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_assertion_error_propagati1'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
testing = True
expectation = <_pytest.python_api.RaisesContext object at 0x7f886ad33850>

    @pytest.mark.parametrize(
        "testing,expectation",
        [
            (False, does_not_raise()),
            (True, pytest.raises(AssertionError, match="From inside the command")),
        ],
    )
    def test_assertion_error_propagation(
        task_manager_creator, default_params, testing, expectation
    ):
        """Test that assertion errors bubble up through the TaskManager when running tests"""
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        manager_params.testing = testing
        manager, _ = task_manager_creator((manager_params, browser_params[:1]))
        cs = CommandSequence("http://example.com", blocking=True)
        cs.append_command(CrashingAssertionCommand())
        with expectation:
            with manager:
>               manager.execute_command_sequence(cs)

/home/runner/work/OpenWPM/OpenWPM/test/test_task_manager.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f8893882e50>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

During handling of the above exception, another exception occurred:

task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ec4a0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_assertion_error_propagati1'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
testing = True
expectation = <_pytest.python_api.RaisesContext object at 0x7f886ad33850>

    @pytest.mark.parametrize(
        "testing,expectation",
        [
            (False, does_not_raise()),
            (True, pytest.raises(AssertionError, match="From inside the command")),
        ],
    )
    def test_assertion_error_propagation(
        task_manager_creator, default_params, testing, expectation
    ):
        """Test that assertion errors bubble up through the TaskManager when running tests"""
        manager_params, browser_params = default_params
        manager_params.num_browsers = 1
        manager_params.testing = testing
        manager, _ = task_manager_creator((manager_params, browser_params[:1]))
        cs = CommandSequence("http://example.com", blocking=True)
        cs.append_command(CrashingAssertionCommand())
>       with expectation:
E       AssertionError: Regex pattern did not match.
E        Regex: 'From inside the command'
E        Input: ''

/home/runner/work/OpenWPM/OpenWPM/test/test_task_manager.py:82: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_timer ► test_command_duration

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938dc810>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938dc810>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f88938de610>, block = True
timeout = 119.99999671399996

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_command_duration0'), log_path=PosixPath('...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ed080>

    def test_command_duration(default_params, task_manager_creator):
        manager, db = task_manager_creator(default_params)
>       manager.get(url=TEST_URL, sleep=5)

/home/runner/work/OpenWPM/OpenWPM/test/test_timer.py:11: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:499: in get
    self.execute_command_sequence(command_sequence, index=index)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938dc810>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_webdriver_utils ► test_parse_neterror_integration

Failed test found in:
  junit-report.xml
Error:
  self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938ba250>
Raw output
self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938ba250>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
>           self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <multiprocess.queues.Queue object at 0x7f88938ba310>, block = True
timeout = 119.99999588200012

    def get(self, block=True, timeout=None):
        if self._closed:
            raise ValueError(f"Queue {self!r} is closed")
        if block and timeout is None:
            with self._rlock:
                res = self._recv_bytes()
            self._sem.release()
        else:
            if block:
                deadline = getattr(time,'monotonic',time.time)() + timeout
            if not self._rlock.acquire(block, timeout):
                raise Empty
            try:
                if block:
                    timeout = deadline - getattr(time,'monotonic',time.time)()
                    if not self._poll(timeout):
>                       raise Empty
E                       _queue.Empty

/home/runner/mamba/envs/openwpm/lib/python3.11/site-packages/multiprocess/queues.py:117: Empty

During handling of the above exception, another exception occurred:

default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_parse_neterror_integratio0'), log_path=Po...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f8894a18f40>

    def test_parse_neterror_integration(default_params, task_manager_creator):
        manager, db = task_manager_creator(default_params)
>       manager.get("http://website.invalid")

/home/runner/work/OpenWPM/OpenWPM/test/test_webdriver_utils.py:18: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:499: in get
    self.execute_command_sequence(command_sequence, index=index)
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:439: in execute_command_sequence
    agg_queue_size = self.storage_controller_handle.get_most_recent_status()
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:550: in get_most_recent_status
    return self.get_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <openwpm.storage.storage_controller.StorageControllerHandle object at 0x7f88938ba250>

    def get_status(self) -> int:
        """Get listener process status. If the status queue is empty, block."""
        try:
            self._last_status = self.status_queue.get(
                block=True, timeout=STATUS_TIMEOUT
            )
            self._last_status_received = time.time()
        except queue.Empty:
>           assert self._last_status_received is not None
E           AssertionError

/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:574: AssertionError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[i-o,q-r,t-z]*

pytest ► test.test_xvfb_browser ► test_display_shutdown

Failed test found in:
  junit-report.xml
Error:
  task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ef6a0>
Raw output
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7f88938ef6a0>
default_params = (ManagerParams(data_directory=PosixPath('/tmp/pytest-of-runner/pytest-0/test_display_shutdown0'), log_path=PosixPath('...'/tmp'), maximum_profile_size=None, recovery_tar=None, donottrack=False, tracking_protection=False, custom_params={})])

    def test_display_shutdown(task_manager_creator, default_params):
        """Test the XVFB display option to see if it runs and deletes the lockfile upon shutdown"""
        manager_params, browser_params = default_params
        for browser_param in browser_params:
            browser_param.display_mode = "xvfb"
        TEST_SITE = BASE_TEST_URL + "/test_pages/simple_a.html"
>       manager, db = task_manager_creator((manager_params, browser_params))

/home/runner/work/OpenWPM/OpenWPM/test/test_xvfb_browser.py:30: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/home/runner/work/OpenWPM/OpenWPM/test/conftest.py:80: in _create_task_manager
    manager = TaskManager(
/home/runner/work/OpenWPM/OpenWPM/openwpm/task_manager.py:167: in __init__
    self.storage_controller_handle.save_configuration(
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:481: in save_configuration
    sock = DataSocket(self.listener_address, "StorageControllerHandle")
/home/runner/work/OpenWPM/OpenWPM/openwpm/storage/storage_controller.py:398: in __init__
    self.socket.connect(*listener_address)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    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