Skip to content

Otel

Otel #1060

GitHub Actions / test/test_[s]* failed Feb 21, 2024 in 1s

14 passed, 3 failed and 0 skipped

Tests failed

❌ junit-report.xml

17 tests were completed in 465s with 14 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
pytest 14✅ 3❌ 465s

❌ pytest

test.test_simple_commands
  ✅ test_get_site_visits_table_valid[headless]
  ✅ test_get_site_visits_table_valid[xvfb]
  ❌ test_get_http_tables_valid[headless]
	http_params = <function http_params.<locals>.parameterize at 0x7fef4a88b7e0>
  ✅ test_get_http_tables_valid[xvfb]
  ✅ test_browse_site_visits_table_valid[headless]
  ✅ test_browse_site_visits_table_valid[xvfb]
  ✅ test_browse_http_table_valid[headless]
  ✅ test_browse_http_table_valid[xvfb]
  ✅ test_browse_wrapper_http_table_valid[headless]
  ❌ test_browse_wrapper_http_table_valid[xvfb]
	http_params = <function http_params.<locals>.parameterize at 0x7fef4a82d3a0>
  ❌ test_save_screenshot_valid[headless]
	http_params = <function http_params.<locals>.parameterize at 0x7fef66a9e840>
  ✅ test_save_screenshot_valid[xvfb]
  ✅ test_dump_page_source_valid[headless]
  ✅ test_dump_page_source_valid[xvfb]
  ✅ test_recursive_dump_page_source_valid[headless]
  ✅ test_recursive_dump_page_source_valid[xvfb]
test.test_storage_vectors
  ✅ test_js_profile_cookies

Annotations

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[s]*

pytest ► test.test_simple_commands ► test_get_http_tables_valid[headless]

Failed test found in:
  junit-report.xml
Error:
  http_params = <function http_params.<locals>.parameterize at 0x7fef4a88b7e0>
Raw output
http_params = <function http_params.<locals>.parameterize at 0x7fef4a88b7e0>
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fef4a88b2e0>
display_mode = 'headless'

    @pytest.mark.parametrize("display_mode", scenarios)
    def test_get_http_tables_valid(http_params, task_manager_creator, display_mode):
        """Check that get works and populates http tables correctly."""
        # Run the test crawl
        manager_params, browser_params = http_params(display_mode)
        manager, db = task_manager_creator((manager_params, browser_params))
    
        # Set up two sequential get commands to two URLS
        cs_a = command_sequence.CommandSequence(url_a)
        cs_a.get(sleep=1)
        cs_b = command_sequence.CommandSequence(url_b)
        cs_b.get(sleep=1)
    
        manager.execute_command_sequence(cs_a)
        manager.execute_command_sequence(cs_b)
        manager.close()
    
        qry_res = db_utils.query_db(db, "SELECT visit_id, site_url FROM site_visits")
    
        # Construct dict mapping site_url to visit_id
        visit_ids = dict()
        for row in qry_res:
            visit_ids[row[1]] = row[0]
    
        qry_res = db_utils.query_db(
            db,
            "SELECT visit_id FROM http_requests WHERE url = ?",
            (url_a,),
        )
>       assert qry_res[0][0] == visit_ids[url_a]
E       IndexError: list index out of range

/home/runner/work/OpenWPM/OpenWPM/test/test_simple_commands.py:156: IndexError

Check failure on line 0 in junit-report.xml

See this annotation in the file changed.

@github-actions github-actions / test/test_[s]*

pytest ► test.test_simple_commands ► test_browse_wrapper_http_table_valid[xvfb]

Failed test found in:
  junit-report.xml
Error:
  http_params = <function http_params.<locals>.parameterize at 0x7fef4a82d3a0>
Raw output
http_params = <function http_params.<locals>.parameterize at 0x7fef4a82d3a0>
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fef4a82c900>
display_mode = 'xvfb'

    @pytest.mark.parametrize("display_mode", scenarios)
    def test_browse_wrapper_http_table_valid(
        http_params, task_manager_creator, display_mode
    ):
        """Check that TaskManager.browse() wrapper works and populates
        http tables correctly.
    
        NOTE: Since the browse command is choosing links randomly, there is a
              (very small -- 2*0.5^20) chance this test will fail with valid
              code.
        """
        # Run the test crawl
        manager_params, browser_params = http_params(display_mode)
>       manager, db = task_manager_creator((manager_params, browser_params))

/home/runner/work/OpenWPM/OpenWPM/test/test_simple_commands.py:312: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/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 0x7fef66a8daf0>
host = '127.0.0.1', port = 40957

    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 / test/test_[s]*

pytest ► test.test_simple_commands ► test_save_screenshot_valid[headless]

Failed test found in:
  junit-report.xml
Error:
  http_params = <function http_params.<locals>.parameterize at 0x7fef66a9e840>
Raw output
http_params = <function http_params.<locals>.parameterize at 0x7fef66a9e840>
task_manager_creator = <function task_manager_creator.<locals>._create_task_manager at 0x7fef66a9d8a0>
display_mode = 'headless'

    @pytest.mark.parametrize("display_mode", scenarios)
    def test_save_screenshot_valid(http_params, task_manager_creator, display_mode):
        """Check that 'save_screenshot' works"""
        # Run the test crawl
        manager_params, browser_params = http_params(display_mode)
        manager, _ = task_manager_creator((manager_params, browser_params))
    
        cs = command_sequence.CommandSequence(url_a)
        cs.get(sleep=1)
        cs.save_screenshot("test")
        cs.screenshot_full_page("test_full")
        manager.execute_command_sequence(cs)
        manager.close()
    
        # Check that viewport image is not blank
        pattern = os.path.join(manager_params.data_directory, "screenshots", "*-*-test.png")
        screenshot = glob.glob(pattern)[0]
        im = Image.open(screenshot)
        bands = im.split()
        is_blank = all(band.getextrema() == (255, 255) for band in bands)
        assert not is_blank
    
        # Check that full page screenshot is not blank
        pattern = os.path.join(
            manager_params.data_directory, "screenshots", "*-*-test_full.png"
        )
>       screenshot = glob.glob(pattern)[0]
E       IndexError: list index out of range

/home/runner/work/OpenWPM/OpenWPM/test/test_simple_commands.py:409: IndexError