Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 3, 2025

Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.

This PR contains the following updates:

Package Type Update Change
mcr.microsoft.com/devcontainers/python final major 1-3.11-bullseye -> 2-3.11-bullseye

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

codecov bot commented Sep 3, 2025

❌ 3 Tests Failed:

Tests completed Failed Passed Skipped
284 3 281 11
View the top 3 failed test(s) by shortest run time
tests.aignostics.application.cli_test::test_cli_run_list_verbose_limit_1
Stack Traces | 1.34s run time
runner = <typer.testing.CliRunner object at 0x7f81e97c7c50>

    def test_cli_run_list_verbose_limit_1(runner: CliRunner) -> None:
        """Check run list command runs successfully."""
        result = runner.invoke(cli, ["application", "run", "list", "--verbose", "--limit", "1"])
        assert result.exit_code == 0
        output = normalize_output(result.stdout)
        assert "Application Runs:" in output
>       assert "Item Status Counts:" in output
E       assert 'Item Status Counts:' in 'Application Runs:================================================================================Run ID: 869c90b2-5e18-4176-ad9f-5f72786d0376App Version: he-tme:v1.0.0-beta.5Status: RUNNINGTriggered at: 2025-09-03 20:53:41 UTCOrganization: org_4x6lxFWuZBjCBSEJError: Failed to get item statuses for run with ID \'869c90b2-5e18-4176-ad9f-5f72786d0376\': (500)Reason: Internal Server ErrorHTTP response headers: HTTPHeaderDict({\'date\': \'Wed, 03 Sep 2025 20:53:48 GMT\', \'server\': \'envoy\', \'x-trace-id\': \'60b8d24bfc208858fcc9ff4011eb8c71\', \'content-length\': \'80\', \'content-type\': \'application/json\', \'x-envoy-upstream-service-time\': \'32\', \'vary\': \'Accept-Encoding\'})HTTP response body: {"detail":"Internal Server Error","trace_id":"60b8d24bfc208858fcc9ff4011eb8c71"}--------------------------------------------------------------------------------Listed \'1\' run(s).'

.../aignostics/application/cli_test.py:263: AssertionError
tests.aignostics.application.cli_test::test_cli_run_submit_and_describe_and_cancel_and_download_and_delete
Stack Traces | 3.38s run time
runner = <typer.testing.CliRunner object at 0x7ff09c4715b0>
tmp_path = PosixPath('.../pytest-2/popen-gw2/test_cli_run_submit_and_descri0')

    def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete(runner: CliRunner, tmp_path: Path) -> None:
        """Check run submit command runs successfully."""
        csv_content = "reference;checksum_base64_crc32c;resolution_mpp;width_px;height_px;staining_method;tissue;disease;"
        csv_content += "platform_bucket_url\n"
        csv_content += ";5onqtA==;0.26268186053789266;7447;7196;H&E;LUNG;LUNG_CANCER;gs:.../bucket/test"
        csv_path = tmp_path / "dummy.csv"
        csv_path.write_text(csv_content)
    
        result = runner.invoke(cli, ["application", "run", "submit", HETA_APPLICATION_ID, str(csv_path)])
        output = normalize_output(result.stdout)
        assert re.search(
            r"Submitted run with id '[0-9a-f-]+' for '",
            output,
        ), f"Output '{output}' doesn't match expected pattern"
        assert result.exit_code == 0
    
        # Extract run ID from the output
        run_id_match = re.search(r"Submitted run with id '([0-9a-f-]+)' for '", output)
        assert run_id_match, f"Failed to extract run ID from output '{output}'"
        run_id = run_id_match.group(1)
    
        # Test the describe command with the extracted run ID
        describe_result = runner.invoke(cli, ["application", "run", "describe", run_id])
>       assert describe_result.exit_code == 0
E       assert 1 == 0
E        +  where 1 = <Result SystemExit(1)>.exit_code

.../aignostics/application/cli_test.py:181: AssertionError
tests.aignostics.application.gui_test::test_gui_cli_to_run_cancel
Stack Traces | 13.4s run time
args = ()
kwargs = {'runner': <typer.testing.CliRunner object at 0x7fed372caf90>, 'silent_logging': None, 'user': <nicegui.testing.user.User object at 0x7fed387dafd0>}

    async def wrapped_test(*args, **kwargs):
        with Client.auto_index_client:
>           return await original_test(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

..../test-3-13/lib/python3.13.../nicegui/testing/user_plugin.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.../aignostics/application/gui_test.py:106: in test_gui_cli_to_run_cancel
    await assert_notified(user, "Application run cancelled!")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

user = <nicegui.testing.user.User object at 0x7fed387dafd0>
expected_notification = 'Application run cancelled!', wait_seconds = 5

    async def assert_notified(user: User, expected_notification: str, wait_seconds: int = 5) -> str:
        """Check if the user receives a notification within the specified time.
    
        This utility function helps test GUI notifications by waiting for a specific
        notification message to appear in the user's notification messages.
    
        Args:
            user: The nicegui User instance for testing.
            expected_notification: The notification text to look for (partial match).
            wait_seconds: Maximum time to wait for the notification (default: 5).
    
        Returns:
            str: The oldest matching notification message found.
    
        Raises:
            pytest.fail: If no matching notification is found within the wait time.
        """
        for _ in range(wait_seconds):
            matching_messages = [msg for msg in user.notify.messages if expected_notification in msg]
            if matching_messages:
                return matching_messages[0]
            await sleep(1)
    
        recent_messages = user.notify.messages[-10:] if len(user.notify.messages) > 10 else user.notify.messages
        total_count = len(user.notify.messages)
>       pytest.fail(
            f"No notification containing '{expected_notification}' was found within {wait_seconds} seconds. "
            f"Total messages: {total_count}. Recent messages: {recent_messages}"
        )
E       Failed: No notification containing 'Application run cancelled!' was found within 5 seconds. Total messages: 2. Recent messages: ["Canceling application run with id '8face05f-5d6a-4c68-8ca0-9eb7b868ece4' ...", 'Failed to cancel application run: Failed to cancel application run with ID \'8face05f-5d6a-4c68-8ca0-9eb7b868ece4\': (500)\nReason: Internal Server Error\nHTTP response headers: HTTPHeaderDict({\'date\': \'Wed, 03 Sep 2025 20:53:52 GMT\', \'server\': \'envoy\', \'x-trace-id\': \'4cf29579d0a73027962167c431171cdc\', \'content-length\': \'80\', \'content-type\': \'application/json\', \'x-envoy-upstream-service-time\': \'435\', \'vary\': \'Accept-Encoding\'})\nHTTP response body: {"detail":"Internal Server Error","trace_id":"4cf29579d0a73027962167c431171cdc"}\n.']

tests/conftest.py:90: Failed

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

sonarqubecloud bot commented Sep 3, 2025

@renovate renovate bot changed the title chore(deps): update mcr.microsoft.com/devcontainers/python docker tag to v2 chore(deps): update mcr.microsoft.com/devcontainers/python docker tag to v2 - autoclosed Sep 20, 2025
@renovate renovate bot closed this Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants