Skip to content

Commit d0e65dd

Browse files
committed
ci: fix failure, again
for some reason, having upgraded the OS environment to ubuntu 22.04 from 20.04, the tests were failing. specifically the mainloop example tests were running into an unexpected failure when trying to setup their conext objects. when they tried to do so, the PA client library was returning an error of value `-1`, corresponding to an "access" error. researching the problem turned up discussions of other people encountering audio issues after upgrading their systems, and the solutions from one particular discussion seemed to revolve around pipewire, but through experimentation i discovered that pipewire was not actually installed within the ci environment, and installing it, along with `pipewire-pulse` and `pipewire-media-session`, including performing the suggested fix, made no difference. eventually my experiments led to the solution being applied in this commit, which actually worked, obviously. for some reason running the application directly as a deamon just doesn't work anymore in this new environment, it starts but we get this access error from our test application. however starting the user systemd service instead makes all the difference. i've left an additional status query in there for future debugging purposes.
1 parent 96de022 commit d0e65dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ jobs:
7070
sudo apt-get install pulseaudio libpulse-mainloop-glib0 libpulse-dev
7171
7272
- name: Start PulseAudio
73-
run: pulseaudio -D --start
73+
run: |
74+
systemctl --user start pulseaudio
75+
systemctl --user status pulseaudio
7476
7577
- name: Check toolchain versions
7678
run: |

0 commit comments

Comments
 (0)