canonical / canonical/authd

e2e-tests sometimes fail to launch Ptyxis

Open
#1,699 3 comments 0 reactions 0 assignees View on GitHub
e2e-tests
Dominant language
Go
Stars
308
Forks
41
Avg merge
2d 4h
Merged PRs (30d)
58

Description

This happened in:
* https://authd-e2e-test-logs.adrian-dombeck.workers.dev/pr-1614/run-28933038903-1/resolute-authd-msentraid/log.html#s1-s15
* https://authd-e2e-test-logs.adrian-dombeck.workers.dev/pr-1706/run-28965214563-1/devel-authd-msentraid/log.html#s1-s16

```
TimeoutExpired: Command '['/home/runner/work/authd/authd/e2e-tests/resources/ssh.sh', '--', 'sudo -u ubuntu XDG_RUNTIME_DIR=/run/user/$(id -u ubuntu) DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u ubuntu)/bus -- sh -c "gtk-launch org.gnome.Ptyxis.desktop"']' timed out after 60 seconds
```

```
Traceback (most recent call last):
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/runner/work/authd/authd/e2e-tests/resources/SSH.py", line 72, in execute_as_current_user
return await self.execute_as_user(user, command, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/authd/authd/e2e-tests/resources/SSH.py", line 58, in execute_as_user
return await self.execute(command, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/authd/authd/e2e-tests/resources/SSH.py", line 26, in execute
result = ExecUtils.run(
^^^^^^^^^^^^^^
File "/home/runner/work/authd/authd/e2e-tests/resources/ExecUtils.py", line 30, in run
raise e
File "/home/runner/work/authd/authd/e2e-tests/resources/ExecUtils.py", line 26, in run
return subprocess.run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 550, in run
stdout, stderr = process.communicate(input, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 1209, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 2116, in _communicate
self._check_timeout(endtime, orig_timeout, stdout, stderr)
File "/usr/lib/python3.12/subprocess.py", line 1253, in _check_timeout
raise TimeoutExpired(
subprocess.TimeoutExpired: Command '['/home/runner/work/authd/authd/e2e-tests/resources/ssh.sh', '--', 'sudo -u ubuntu XDG_RUNTIME_DIR=/run/user/$(id -u ubuntu) DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u ubuntu)/bus -- sh -c "gtk-launch org.gnome.Ptyxis.desktop"']' timed out after 60 seconds
```

Contributor guide

Open the contributing guide

Research direction

Start with e2e-tests/resources/SSH.py and ExecUtils.py, then inspect the e2e-tests/resources/ssh.sh invocation shown in the timeout. Reproduce the Ptyxis launch through gtk-launch in the referenced e2e environment and determine why it exceeds 60 seconds. Done means the affected e2e tests launch Ptyxis reliably without TimeoutExpired.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, shell
Domain
desktop, operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.