Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci assets #156

Merged
merged 7 commits into from
Dec 9, 2024

flutter: refactor waiting for window to go away

9ebe15c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix ci assets #156

flutter: refactor waiting for window to go away
9ebe15c
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test results failed Dec 9, 2024 in 1s

22 passed, 1 failed and 1 skipped

Tests failed

❌ test-results-mir_demo_server-mir-team_dev/home/runner/work/mir-ci/mir-ci/mir-ci/mir_ci/junit-mir_demo_server-.xml

24 tests were completed in 294s with 22 passed, 1 failed and 1 skipped.

Test suite Passed Failed Skipped Time
pytest 22✅ 1❌ 1⚪ 294s

❌ pytest

tests.test_apps_can_run.TestAppsCanRun
  ✅ test_app_can_run[mir_demo_server-wpe-webkit-mir-kiosk]
  ✅ test_app_can_run[mir_demo_server-mir-kiosk-neverputt]
  ✅ test_app_can_run[mir_demo_server-mir-kiosk-scummvm]
  ✅ test_app_can_run[mir_demo_server-mir-kiosk-kodi]
  ✅ test_app_can_run[mir_demo_server-pluma]
  ✅ test_app_can_run[mir_demo_server-qterminal]
tests.test_display_configuration.TestDisplayConfiguration
  ✅ test_can_update_scale[mir_demo_server]
  ✅ test_can_update_position[mir_demo_server]
tests.test_drag_and_drop.TestDragAndDrop
  ✅ test_drag_and_drop[mir_demo_server]
tests.test_osk.TestOSK
  ✅ test_osk_typing[pluma-ubuntu-frame-osk-mir_demo_server-wayland]
  ⚪ test_osk_typing[pluma-ubuntu-frame-osk-mir_demo_server-zapper]
tests.test_scale.TestScale
  ✅ test_scale[1.0-mir_demo_server]
  ✅ test_scale[1.5-mir_demo_server]
  ❌ test_scale[2.0-mir_demo_server]
	self = <test_scale.TestScale object at 0x7fb3a1b23490>
tests.test_screencopy_bandwidth.TestScreencopyBandwidth
  ✅ test_active_app[asciinema-mir_demo_server]
  ✅ test_active_app[mir-kiosk-neverputt-mir_demo_server]
  ✅ test_compositor_alone[mir_demo_server]
  ✅ test_inactive_app[qterminal-mir_demo_server]
  ✅ test_inactive_app[pluma-mir_demo_server]
  ✅ test_inactive_app[mir-kiosk-kodi-mir_demo_server]
  ✅ test_app_dragged_around[mir_demo_server]
tests.test_server.TestServerCanRun
  ✅ test_server_can_run[mir_demo_server]
tests.test_tests.TestDisplayServer
  ✅ test_can_get_cgroup[mir_demo_server]
tests.test_vnc.TestVnc
  ✅ test_vnc[qterminal-mir_demo_server]

Annotations

Check failure on line 0 in test-results-mir_demo_server-mir-team_dev/home/runner/work/mir-ci/mir-ci/mir-ci/mir_ci/junit-mir_demo_server-.xml

See this annotation in the file changed.

@github-actions github-actions / Test results

pytest ► tests.test_scale.TestScale ► test_scale[2.0-mir_demo_server]

Failed test found in:
  test-results-mir_demo_server-mir-team_dev/home/runner/work/mir-ci/mir-ci/mir-ci/mir_ci/junit-mir_demo_server-.xml
Error:
  self = <test_scale.TestScale object at 0x7fb3a1b23490>
Raw output
self = <test_scale.TestScale object at 0x7fb3a1b23490>
robot_log = PosixPath('log.html')
server = <mir_ci.program.app.App object at 0x7fb3a1b17e10>, scale = 2.0
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-1/test_scale_2_0_mir_demo_server0')

    async def test_scale(self, robot_log, server, scale, tmp_path) -> None:
        extensions = ("all",)  # TODO no need to enable all extension
    
        server_instance = DisplayServer(
            server,
            add_extensions=extensions,
            env={"MIR_SERVER_X11_OUTPUT": "1024x768", "MIR_SERVER_DISPLAY_SCALE": str(scale)},
        )
    
        assets = collect_assets("wayland", ["kvm"], "scale")
    
        async with server_instance, server_instance.program(App(APP_PATH, AppType.deb)):
            tuple((tmp_path / k).symlink_to(v) for k, v in assets.items())
    
            robot = server_instance.program(
                App(("robot", "-d", tmp_path, "--log", robot_log, "--variable", f"SCALE:{scale}", tmp_path))
            )
    
            async with robot:
>               await robot.wait(120)

tests/test_scale.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <mir_ci.program.program.Program object at 0x7fb3a097cb50>, timeout = 120
term_timeout = 10

    async def wait(self, timeout=default_wait_timeout, term_timeout=default_term_timeout) -> None:
        if self.is_running():
            self.send_signals_task = asyncio.create_task(self.send_kill_signals(timeout, term_timeout))
        if self.process_end is not None:
            await self.process_end
            self.process_end = None
            print("\n" + format_output(self.name, self.output))
            assert self.process
            if self.process.returncode != 0:
                message = self.name
                if self.sigkill_sent:
                    message += " refused to terminate"
                else:
                    message += " closed with exit code " + str(self.process.returncode)
>               raise ProgramError(message)
E               mir_ci.program.program.ProgramError: robot refused to terminate

program/program.py:97: ProgramError